Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AzCLI Command --enable-auto-update DOES NOT WORKING!!!! #30564

Open
JohnMayorga18 opened this issue Dec 22, 2024 · 1 comment
Open

AzCLI Command --enable-auto-update DOES NOT WORKING!!!! #30564

JohnMayorga18 opened this issue Dec 22, 2024 · 1 comment
Assignees
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team Compute az vm/vmss/image/disk/snapshot customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@JohnMayorga18
Copy link

Describe the bug

When I create a new VM via AzCLI using the parameter "--enable-auto-update" the PowerShell get an error message that say "windowsConfiguration" and I can't create the VM with automatic windows updates.

Related command

az group create --name "mydemo2" --location "westus2"
az vm create --name "mivm" --resource-group "mydemo2" --location "westus2" --admin-username "JohnMayorga18" --admin-password "J_873695102563" --enable-auto-update true

Errors

windowsConfiguration


Image

Issue script & Debug output

cli.knack.cli: Command arguments: ['vm', 'create', '--name', 'mivm', '--resource-group', 'mydemo2', '--location', 'westus2', '--admin-username', 'JohnMayorga18', '--admin-password', 'J_873695102563', '--enable-auto-update', 'true', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x015539D8>, <function OutputProducer.on_global_arguments at 0x01693578>, <function CLIQuery.on_global_arguments at 0x01698078>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'vm': ['azure.cli.command_modules.vm']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: vm 0.864 58 281
cli.azure.cli.core: Total (1) 0.864 58 281
cli.azure.cli.core: Loaded 58 groups, 281 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : vm create
cli.azure.cli.core: Command table: vm create
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03638348>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\JohnMayorga18.azure\commands\2024-12-21.21-18-22.vm_create.712.log'.
az_command_data_logger: command args: vm create --name {} --resource-group {} --location {} --admin-username {} --admin-password {} --enable-auto-update {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x03660028>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x03660078>, <function register_cache_arguments..add_cache_arguments at 0x036870C8>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x03687118>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x016935C8>, <function CLIQuery.handle_query_parameter at 0x016980C8>, <function register_ids_argument..parse_ids_arguments at 0x03687078>]
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\JohnMayorga18\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\JohnMayorga18.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 1d9b213e-df38-499c-bee9-4db64bf4596d
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '03c79910-c00b-11ef-9ea3-9cfbb314e28b'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --admin-username --admin-password --enable-auto-update --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': ''
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 HTTP/1.1" 200 326
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '326'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15996,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43991'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-served-by': 'ad2db354-02f2-401a-aeb0-40b53cc80fab_133761371659580294'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'aa9608f5-3c28-40d8-bcf2-451806c6e3dd'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '43a4320c-2932-44cc-81a2-b04100e89de6'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTHEAST:20241222T021818Z:43a4320c-2932-44cc-81a2-b04100e89de6'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: E33B688015524859A205C38EB546550D Ref B: BN1AA2051013037 Ref C: 2024-12-22T02:18:18Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 02:18:18 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: [
{
"location": "westus2",
"name": "20348.2966.241205",
"id": "/Subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/Providers/Microsoft.Compute/Locations/westus2/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-azure-edition/Versions/20348.2966.241205"
}
]
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: fd668182-52a6-4871-9b67-84b49b541511
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions/20348.2966.241205?api-version=2024-07-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '03c79910-c00b-11ef-9ea3-9cfbb314e28b'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --admin-username --admin-password --enable-auto-update --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '
'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions/20348.2966.241205?api-version=2024-07-01 HTTP/1.1" 200 1245
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '1245'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/GetVMImageFromLocation3Min;12996,Microsoft.Compute/GetVMImageFromLocation30Min;73991'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-served-by': '80bdb36f-13a3-4037-9e14-9dedbffa13ae_133761448835897310'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '1c6c380a-7779-413c-8c02-c991179fcacb'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '4b6cb3dd-adf2-43bf-af43-bfaa59e294be'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T021820Z:4b6cb3dd-adf2-43bf-af43-bfaa59e294be'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 0D0050A89E384BCD9EF4E625344C59DF Ref B: BN1AA2051015019 Ref C: 2024-12-22T02:18:19Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 02:18:19 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
"properties": {
"hyperVGeneration": "V2",
"architecture": "x64",
"replicaType": "Managed",
"replicaCount": 10,
"disallowed": {
"vmDiskType": "Unmanaged"
},
"automaticOSUpgradeProperties": {
"automaticOSUpgradeSupported": false
},
"imageDeprecationStatus": {
"imageState": "Active"
},
"features": [
{
"name": "SecurityType",
"value": "TrustedLaunchAndConfidentialVmSupported"
},
{
"name": "IsAcceleratedNetworkSupported",
"value": "True"
},
{
"name": "DiskControllerTypes",
"value": "SCSI, NVMe"
},
{
"name": "IsHibernateSupported",
"value": "True"
}
],
"osDiskImage": {
"operatingSystem": "Windows",
"sizeInGb": 127
},
"dataDiskImages": [],
"goLiveDate": "2024-12-10T00:00:00+00:00"
},
"location": "westus2",
"name": "20348.2966.241205",
"id": "/Subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/Providers/Microsoft.Compute/Locations/westus2/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-azure-edition/Versions/20348.2966.241205"
}
cli.azure.cli.command_modules.vm._validators: storage profile 'StorageProfile.ManagedPirImage'
cli.azure.cli.command_modules.vm._validators: no subnet specified. Attempting to find an existing Vnet and subnet...
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 13667d1e-ab2b-4995-abe7-c64c31ef0ba0
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/mydemo2/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '03c79910-c00b-11ef-9ea3-9cfbb314e28b'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --admin-username --admin-password --enable-auto-update --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': ''
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/mydemo2/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 HTTP/1.1" 200 12
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '12'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '99f3fe20-d233-4f6b-b984-a54f5caa5d4d'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '99f3fe20-d233-4f6b-b984-a54f5caa5d4d'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T021821Z:99f3fe20-d233-4f6b-b984-a54f5caa5d4d'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: EB8F838756B84D858532292A8876343D Ref B: BN1AA2051014033 Ref C: 2024-12-22T02:18:21Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 02:18:21 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"value":[]}
cli.azure.cli.command_modules.vm._validators: no suitable subnet found. One will be created.
cli.azure.cli.command_modules.vm._validators: new NSG will be created
cli.azure.cli.command_modules.vm._validators: new public IP address will be created
cli.azure.cli.command_modules.vm._validators: new NIC will be created
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 4ca89acd-be8d-4678-9e56-69b168c31884
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '03c79910-c00b-11ef-9ea3-9cfbb314e28b'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --admin-username --admin-password --enable-auto-update --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '
'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 HTTP/1.1" 200 326
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '326'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15995,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43990'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-served-by': 'ad2db354-02f2-401a-aeb0-40b53cc80fab_133761371659580294'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'dbcac777-e75b-4b52-8f51-0eb11b3955ab'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '73aa963f-4c2f-40d5-8960-4a3a990b0b31'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T021823Z:73aa963f-4c2f-40d5-8960-4a3a990b0b31'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 2CB30D30F4EC4777AD36FCE47F4D26C7 Ref B: BN1AA2051015031 Ref C: 2024-12-22T02:18:22Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 02:18:22 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: [
{
"location": "westus2",
"name": "20348.2966.241205",
"id": "/Subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/Providers/Microsoft.Compute/Locations/westus2/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-azure-edition/Versions/20348.2966.241205"
}
]
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 4bfc1b85-cab2-4323-b897-bb071975b95d
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions/20348.2966.241205?api-version=2024-07-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '03c79910-c00b-11ef-9ea3-9cfbb314e28b'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --admin-username --admin-password --enable-auto-update --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': ''
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions/20348.2966.241205?api-version=2024-07-01 HTTP/1.1" 200 1245
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '1245'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/GetVMImageFromLocation3Min;12995,Microsoft.Compute/GetVMImageFromLocation30Min;73990'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-served-by': '80bdb36f-13a3-4037-9e14-9dedbffa13ae_133761448835897310'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '980b0ff4-e030-4c0d-a706-24f12dbf32eb'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'cf30c12d-9e29-482d-9391-ef0d8faf2605'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTHEAST:20241222T021825Z:cf30c12d-9e29-482d-9391-ef0d8faf2605'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 17B01D36B5B340768B56E50588EA2F1B Ref B: BN1AA2051013049 Ref C: 2024-12-22T02:18:23Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 02:18:24 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
"properties": {
"hyperVGeneration": "V2",
"architecture": "x64",
"replicaType": "Managed",
"replicaCount": 10,
"disallowed": {
"vmDiskType": "Unmanaged"
},
"automaticOSUpgradeProperties": {
"automaticOSUpgradeSupported": false
},
"imageDeprecationStatus": {
"imageState": "Active"
},
"features": [
{
"name": "SecurityType",
"value": "TrustedLaunchAndConfidentialVmSupported"
},
{
"name": "IsAcceleratedNetworkSupported",
"value": "True"
},
{
"name": "DiskControllerTypes",
"value": "SCSI, NVMe"
},
{
"name": "IsHibernateSupported",
"value": "True"
}
],
"osDiskImage": {
"operatingSystem": "Windows",
"sizeInGb": 127
},
"dataDiskImages": [],
"goLiveDate": "2024-12-10T00:00:00+00:00"
},
"location": "westus2",
"name": "20348.2966.241205",
"id": "/Subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/Providers/Microsoft.Compute/Locations/westus2/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-azure-edition/Versions/20348.2966.241205"
}
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe
msal.authority: openid_config("https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/3afe84d6-828e-4528-b8fa-1230fb2563fe/kerberos', 'tenant_region_scope': 'SA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: e10c98b2-bc69-4791-b558-795283077086
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '03c79910-c00b-11ef-9ea3-9cfbb314e28b'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --admin-username --admin-password --enable-auto-update --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '
'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 HTTP/1.1" 200 326
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '326'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15994,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43989'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-served-by': 'ad2db354-02f2-401a-aeb0-40b53cc80fab_133761371659580294'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '9eb3afda-955a-4322-82c1-0ec63103f775'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '248'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3748'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '24bae8fd-2a11-4180-8f6e-4d43e22b6308'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T021826Z:24bae8fd-2a11-4180-8f6e-4d43e22b6308'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 52117821FFAB4C90BC3E60771E54F2B5 Ref B: BN1AA2051014009 Ref C: 2024-12-22T02:18:26Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 02:18:26 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: [
{
"location": "westus2",
"name": "20348.2966.241205",
"id": "/Subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/Providers/Microsoft.Compute/Locations/westus2/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-azure-edition/Versions/20348.2966.241205"
}
]
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 17a026c4-13b0-4abe-8a5e-29e76c583926
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions/20348.2966.241205?api-version=2024-07-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '03c79910-c00b-11ef-9ea3-9cfbb314e28b'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --location --admin-username --admin-password --enable-auto-update --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.7 (Windows-10-10.0.19045-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/providers/Microsoft.Compute/locations/westus2/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-azure-edition/versions/20348.2966.241205?api-version=2024-07-01 HTTP/1.1" 200 1245
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '1245'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-resource': 'Microsoft.Compute/GetVMImageFromLocation3Min;12994,Microsoft.Compute/GetVMImageFromLocation30Min;73989'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-served-by': '80bdb36f-13a3-4037-9e14-9dedbffa13ae_133761448835897310'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'e5961193-63e0-419f-99fe-feb01607defa'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '248'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3748'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'dc2392d0-69ac-4552-877c-22b94259e510'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T021827Z:dc2392d0-69ac-4552-877c-22b94259e510'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: AC306FF559454D9A9A304BB10AECF084 Ref B: BN1AA2051014025 Ref C: 2024-12-22T02:18:26Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 02:18:26 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {
"properties": {
"hyperVGeneration": "V2",
"architecture": "x64",
"replicaType": "Managed",
"replicaCount": 10,
"disallowed": {
"vmDiskType": "Unmanaged"
},
"automaticOSUpgradeProperties": {
"automaticOSUpgradeSupported": false
},
"imageDeprecationStatus": {
"imageState": "Active"
},
"features": [
{
"name": "SecurityType",
"value": "TrustedLaunchAndConfidentialVmSupported"
},
{
"name": "IsAcceleratedNetworkSupported",
"value": "True"
},
{
"name": "DiskControllerTypes",
"value": "SCSI, NVMe"
},
{
"name": "IsHibernateSupported",
"value": "True"
}
],
"osDiskImage": {
"operatingSystem": "Windows",
"sizeInGb": 127
},
"dataDiskImages": [],
"goLiveDate": "2024-12-10T00:00:00+00:00"
},
"location": "westus2",
"name": "20348.2966.241205",
"id": "/Subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/Providers/Microsoft.Compute/Locations/westus2/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-azure-edition/Versions/20348.2966.241205"
}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/vm/custom.py", line 1105, in create_vm
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/vm/_template_builder.py", line 589, in build_vm_resource
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/vm/_template_builder.py", line 363, in _build_os_profile
KeyError: 'windowsConfiguration'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", line 109, in handle_template_based_exception
AttributeError: 'KeyError' object has no attribute 'inner_exception'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 733, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 725, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", line 114, in handle_template_based_exception
knack.util.CLIError: 'windowsConfiguration'

cli.azure.cli.core.azclierror: 'windowsConfiguration'
az_command_data_logger: 'windowsConfiguration'
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x03638488>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 12.281 seconds (init: 0.513, invoke: 11.768)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3916 in cache file under C:\Users\JohnMayorga18.azure\telemetry\20241221211833101
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\JohnMayorga18.azure C:\Users\JohnMayorga18.azure\telemetry\20241221211833101"
telemetry.process: Return from creating process 4540
telemetry.main: Finish creating telemetry upload process.

Expected behavior

Creating a virtual Machine in Azure on the WestUS2 region similarly with the AzurePortal Configuration WindowsOSConfiguration->AutoUpdate->AlwaysReboot->True


Image

Environment Summary

azure-cli 2.67.0

core 2.67.0
telemetry 1.1.0

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\JohnMayorga18.azure\cliextensions'

Python (Windows) 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 02:44:45) [MSC v.1941 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

I have guided myself with that MsLearnArticle that says values {boolean} "true" and "false" can be accepted on the console here is the reference and I tried with (and without doble quotes the options) "True", "true","TRUE","False","false","FALSE","Yes","yes","y","Y","YES","No","no","n","N" with any result ONLY THAT ERROR "windowsConfiguration".


I would like that the AzCLI-Documentation team reference the reasons that error is occurring or I can create that VM via AzCLI with that option for OSConfigAutoUpdates (or disabling).


Image

@JohnMayorga18 JohnMayorga18 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 22, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 22, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Compute az vm/vmss/image/disk/snapshot labels Dec 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Dec 22, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 22, 2024
@yonzhan yonzhan added this to the Backlog milestone Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team Compute az vm/vmss/image/disk/snapshot customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants