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 --patch-mode DOES NOT WORKING!!!! #30565

Open
JohnMayorga18 opened this issue Dec 22, 2024 · 2 comments
Open

AzCLI Command --patch-mode DOES NOT WORKING!!!! #30565

JohnMayorga18 opened this issue Dec 22, 2024 · 2 comments
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 Similar-Issue
Milestone

Comments

@JohnMayorga18
Copy link

Describe the bug

When I create a new VM via AzCLI using the parameter "--patch-mode" the PowerShell get an error message that say "windowsConfiguration" and I can't create the VM enabling windows updates.

Related command

az group create --name "mydemo3" --location "westus2"
az vm create --name "mivm" --resource-group "mydemo3" --location "westus2" --admin-username "JohnMayorga18" --admin-password "J_873695102563" --patch-mode "AutomaticByOS" --enable-hotpatching true

Errors

windowsConfiguration


Image

Issue script & Debug output

cli.knack.cli: Command arguments: ['vm', 'create', '--name', 'mivm', '--resource-group', 'mydemo3', '--location', 'westus2', '--admin-username', 'JohnMayorga18', '--admin-password', 'J_873695102563', '--patch-mode', 'AutomaticByOS', '--enable-hotpatching', '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 0x01372A28>, <function OutputProducer.on_global_arguments at 0x015AF5C8>, <function CLIQuery.on_global_arguments at 0x015B90C8>]
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.857 58 281
cli.azure.cli.core: Total (1) 0.857 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 0x0357A398>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\JohnMayorga18.azure\commands\2024-12-21.22-18-37.vm_create.15088.log'.
az_command_data_logger: command args: vm create --name {} --resource-group {} --location {} --admin-username {} --admin-password {} --patch-mode {} --enable-hotpatching {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0359F078>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0359F0C8>, <function register_cache_arguments..add_cache_arguments at 0x035C8118>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x035C8168>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x015AF618>, <function CLIQuery.handle_query_parameter at 0x015B9118>, <function register_ids_argument..parse_ids_arguments at 0x035C80C8>]
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: 107bcec1-97b0-4062-80d5-4f837ad6d8c6
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': '6e950cd9-c013-11ef-8939-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 --patch-mode --enable-hotpatching --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;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43966'
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': 'c77638ee-6b6d-40a7-925c-835e6d70f6f4'
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': '86025692-05ac-4298-8e37-5e81a796cfae'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T031834Z:86025692-05ac-4298-8e37-5e81a796cfae'
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: DB5213290F414585A8D79F1DF904E6FF Ref B: BN1AA2051015025 Ref C: 2024-12-22T03:18:33Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 03:18:33 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: 17805993-8e3c-48ef-a935-bcc3e6cb8978
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': '6e950cd9-c013-11ef-8939-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 --patch-mode --enable-hotpatching --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;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73966'
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': 'ff6530fb-c0a0-45de-aa56-a86c98aca34f'
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': 'e48c3ad9-2124-4460-a3f7-affb2e3287ae'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T031836Z:e48c3ad9-2124-4460-a3f7-affb2e3287ae'
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: D8D30978D7CF482E8C0FCF8686FB4FCE Ref B: BN1AA2051012051 Ref C: 2024-12-22T03:18:34Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 03:18:36 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: 444de0a6-9164-4a03-a47c-b6a5c9ba2ab2
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/d69592e3-8249-4ad8-b951-d15b3edd066d/resourceGroups/mydemo3/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': '6e950cd9-c013-11ef-8939-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 --patch-mode --enable-hotpatching --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/mydemo3/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': '826ee8e6-3520-4a5a-8d8f-ed15a8a1dcbe'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '826ee8e6-3520-4a5a-8d8f-ed15a8a1dcbe'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T031837Z:826ee8e6-3520-4a5a-8d8f-ed15a8a1dcbe'
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: 29AC6C3201BE424D8743E9713D06C373 Ref B: BN1AA2051015021 Ref C: 2024-12-22T03:18:37Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 03:18:37 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: ba3a738b-5aae-493d-a9ac-468a0c19e263
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': '6e950cd9-c013-11ef-8939-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 --patch-mode --enable-hotpatching --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;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43965'
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': '64a9425e-0895-4265-a687-b4d604f00c3a'
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': 'a3d236da-0d43-41ee-a55a-79dadffbf265'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTHEAST:20241222T031839Z:a3d236da-0d43-41ee-a55a-79dadffbf265'
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: 9E7FB962EFFF4C09B88C0CAAF6176228 Ref B: BN1AA2051012033 Ref C: 2024-12-22T03:18:38Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 03:18:39 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: 727c3919-ee20-462c-b38a-cdbe0b169d78
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': '6e950cd9-c013-11ef-8939-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 --patch-mode --enable-hotpatching --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;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73965'
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': '89f25a67-bf17-44ac-9a23-72bcce972766'
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': 'ecd9b872-acbe-419f-9b73-57839b0e9190'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T031840Z:ecd9b872-acbe-419f-9b73-57839b0e9190'
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: FF87E97FF9954931B5A177681D5D4472 Ref B: BN1AA2051012009 Ref C: 2024-12-22T03:18:40Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 03:18:40 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: 4e85cfd8-e844-4d1e-9c46-478cf1be0e04
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': '6e950cd9-c013-11ef-8939-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 --patch-mode --enable-hotpatching --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;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43964'
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': 'f9b6189e-8d83-4c44-8404-022cf34adae3'
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': '691c4dd7-55f7-4986-9c9b-fd3b1597866a'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T031842Z:691c4dd7-55f7-4986-9c9b-fd3b1597866a'
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: 5F089230955842C7AE06867595092BD6 Ref B: BN1AA2051014049 Ref C: 2024-12-22T03:18:41Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 03:18:42 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: 90b04e00-76aa-4d23-9a87-798e99170d54
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': '6e950cd9-c013-11ef-8939-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 --patch-mode --enable-hotpatching --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;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73964'
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': 'ec47aab8-c94e-4c1d-beab-54bf7ae9a05c'
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': '81f789da-ded8-4cfe-ace1-d2770099093b'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BRAZILSOUTH:20241222T031843Z:81f789da-ded8-4cfe-ace1-d2770099093b'
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: 4DA6330812BB430AA9196ED6E4B6824B Ref B: BN1AA2051012029 Ref C: 2024-12-22T03:18:43Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Sun, 22 Dec 2024 03:18:43 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 371, 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 0x0357A4D8>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 13.753 seconds (init: 0.531, invoke: 13.222)
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 3929 in cache file under C:\Users\JohnMayorga18.azure\telemetry\20241221221849674
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\20241221221849674"
telemetry.process: Return from creating process 8596
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) "AutomaticByOS","automaticbyos","AUTOMATICBYOS","AutomaticByPlatform","automaticbyplatform","AUTOMATICBYPLATFORM","ImageDefault","imagedefault","IMAGEDEFAULT","Manual","manual","MANUAL" 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
@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
@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 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
Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.

@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 Similar-Issue
Projects
None yet
Development

No branches or pull requests

4 participants