Skip to content

az create container now broken with os-typeΒ #30439

@Dusty-Meg

Description

@Dusty-Meg

Describe the bug

az container create is now throwing an error that osType is null.
This was not a mandatory field before but this error has caused it to be an mandatory field.

#30260
This PR changed
src/azure-cli/azure/cli/command_modules/container/custom.py
Line 84 to default to 'Linux' to now default to None which does not seem to be a valid value.

Related command

az container create

Errors

ERROR: (InvalidOsType) The 'osType' for container group '' is invalid. The value must be one of 'Windows,Linux'

Issue script & Debug output

2024-11-28T14:38:39.7069668Z ##[section]Starting: Create Service Users Worker Service Container Instance
2024-11-28T14:38:39.7081138Z ==============================================================================
2024-11-28T14:38:39.7081421Z Task : Azure CLI
2024-11-28T14:38:39.7081605Z Description : Run Azure CLI commands against an Azure subscription in a PowerShell Core/Shell script when running on Linux agent or PowerShell/PowerShell Core/Batch script when running on Windows agent.
2024-11-28T14:38:39.7082152Z Version : 2.248.1
2024-11-28T14:38:39.7082482Z Author : Microsoft Corporation
2024-11-28T14:38:39.7082687Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-cli
2024-11-28T14:38:39.7082925Z ==============================================================================
2024-11-28T14:38:40.2672197Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" --version"
2024-11-28T14:39:06.2240506Z azure-cli 2.67.0
2024-11-28T14:39:06.2244271Z
2024-11-28T14:39:06.2245402Z core 2.67.0
2024-11-28T14:39:06.2246177Z telemetry ..0
2024-11-28T14:39:06.2246467Z
2024-11-28T14:39:06.2247092Z Extensions:
2024-11-28T14:39:06.2247741Z azure-devops .0.
2024-11-28T14:39:06.2248046Z
2024-11-28T14:39:06.2248689Z Dependencies:
2024-11-28T14:39:06.2249307Z msal .3.0
2024-11-28T14:39:06.2249975Z azure-mgmt-resource 23..
2024-11-28T14:39:06.2250257Z
2024-11-28T14:39:06.2250919Z Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
2024-11-28T14:39:06.2251670Z Extensions directory 'C:\Program Files\Common Files\AzureCliExtensionDirectory'
2024-11-28T14:39:06.2252025Z
2024-11-28T14:39:06.2252792Z Python (Windows) 3.2.7 (tags/v3.2.7:0b05ead, Oct *** 2024, 03:06:4) [MSC v.94 64 bit (AMD64)]
2024-11-28T14:39:06.2253191Z
2024-11-28T14:39:06.2253836Z Legal docs and information: aka.ms/AzureCliLegal
2024-11-28T14:39:06.2254159Z
2024-11-28T14:39:06.2254405Z
2024-11-28T14:39:06.2255005Z Your CLI is up-to-date.
2024-11-28T14:39:06.2272744Z Setting AZURE_CONFIG_DIR env variable to: D:\a_temp.azclitask
2024-11-28T14:39:06.2284595Z Setting active cloud to: AzureCloud
2024-11-28T14:39:06.2448725Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" cloud set -n AzureCloud"
2024-11-28T14:40:11.0835361Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" login --service-principal -u *** "--password=
" --tenant *** --allow-no-subscriptions"
2024-11-28T14:40:12.8737556Z [
2024-11-28T14:40:12.8758101Z {
2024-11-28T14:40:12.8759219Z "cloudName": "AzureCloud",
2024-11-28T14:40:12.8796701Z "homeTenantId": "",
2024-11-28T14:40:12.8873685Z "id": "
",
2024-11-28T14:40:12.8889810Z "isDefault": ,
2024-11-28T14:40:12.9888697Z "managedByTenants": [],
2024-11-28T14:40:13.0244394Z "name": "
",
2024-11-28T14:40:13.0251595Z "state": "Enabled",
2024-11-28T14:40:13.0252891Z "tenantId": "",
2024-11-28T14:40:13.0272374Z "user": {
2024-11-28T14:40:13.0273654Z "name": "
",
2024-11-28T14:40:13.0275578Z "type": "servicePrincipal"
2024-11-28T14:40:13.0279122Z }
2024-11-28T14:40:13.0287098Z },
2024-11-28T14:40:13.0331642Z {
2024-11-28T14:40:13.0335143Z "cloudName": "AzureCloud",
2024-11-28T14:40:13.0336641Z "homeTenantId": "",
2024-11-28T14:40:13.0337692Z "id": "
",
2024-11-28T14:40:13.0345806Z "isDefault": ,
2024-11-28T14:40:13.0347253Z "managedByTenants": [],
2024-11-28T14:40:13.0349162Z "name": "
",
2024-11-28T14:40:13.0370495Z "state": "Enabled",
2024-11-28T14:40:13.0376475Z "tenantId": "",
2024-11-28T14:40:13.0377500Z "user": {
2024-11-28T14:40:13.0378652Z "name": "
",
2024-11-28T14:40:13.0379538Z "type": "servicePrincipal"
2024-11-28T14:40:13.0380322Z }
2024-11-28T14:40:13.0383663Z },
2024-11-28T14:40:13.0386691Z {
2024-11-28T14:40:13.0387577Z "cloudName": "AzureCloud",
2024-11-28T14:40:13.0388508Z "homeTenantId": "",
2024-11-28T14:40:13.0391616Z "id": "
",
2024-11-28T14:40:13.0392549Z "isDefault": ,
2024-11-28T14:40:13.0393348Z "managedByTenants": [],
2024-11-28T14:40:13.0394782Z "name": "
",
2024-11-28T14:40:13.0395630Z "state": "Enabled",
2024-11-28T14:40:13.0396475Z "tenantId": "",
2024-11-28T14:40:13.0398578Z "user": {
2024-11-28T14:40:13.0426451Z "name": "
",
2024-11-28T14:40:13.0429371Z "type": "servicePrincipal"
2024-11-28T14:40:13.0430256Z }
2024-11-28T14:40:13.0431021Z },
2024-11-28T14:40:13.0445815Z {
2024-11-28T14:40:13.0488266Z "cloudName": "AzureCloud",
2024-11-28T14:40:13.0502173Z "homeTenantId": "",
2024-11-28T14:40:13.0503956Z "id": "
",
2024-11-28T14:40:13.0511716Z "isDefault": ,
2024-11-28T14:40:13.0513233Z "managedByTenants": [],
2024-11-28T14:40:13.0514670Z "name": "
",
2024-11-28T14:40:13.0540033Z "state": "Enabled",
2024-11-28T14:40:13.0548457Z "tenantId": "",
2024-11-28T14:40:13.0549902Z "user": {
2024-11-28T14:40:13.0550830Z "name": "
",
2024-11-28T14:40:13.0559366Z "type": "servicePrincipal"
2024-11-28T14:40:13.0682464Z }
2024-11-28T14:40:13.0685106Z }
2024-11-28T14:40:13.0688066Z ]
2024-11-28T14:40:13.0689365Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" account set --subscription "
2024-11-28T14:40:14.1156760Z [command]C:\Windows\System32\WindowsPowerShell\v
.0\powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\azureclitaskscript73280472028.ps***'"
2024-11-28T14:40:14.9093861Z DEBUG: cli.knack.cli: Command arguments: ['container', 'create', '-g', '-uks', '--name', '', '--debug', '--image', '', '--cpu', '', '--memory', '', '--registry-login-server', '.azurecr.io', '--registry-username', '', '--registry-password', '', '--vnet', '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/', '--subnet', '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks/vnet-internal-service--uks/subnets/', '--ports', '80', '--environment-variables', '=', '=', '=', '=', '=', '=', '=', '=', '=', 'TokenConversionOptions__Audience=', 'Logging__LogLevel__Default=', '=ClaimValue-Language-en-GB', '--secure-environment-variables', '=', '=', '=', '=', '=', 'ApplicationInsights__InstrumentationKey=']
2024-11-28T14:40:14.9098388Z DEBUG: cli.knack.cli: init debug log:
2024-11-28T14:40:14.9125282Z Cannot enable color.
2024-11-28T14:40:14.9126333Z DEBUG: cli.knack.cli: Event: Cli.PreExecute []
2024-11-28T14:40:14.9127326Z DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0000026C733B3B00>, <function OutputProducer.on_global_arguments at 0x0000026C73550860>, <function CLIQuery.on_global_arguments at 0x0000026C73575C60>]
2024-11-28T14:40:14.9128307Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
2024-11-28T14:40:14.9129098Z DEBUG: cli.azure.cli.core: Modules found from index for 'container': ['azure.cli.command_modules.container']
2024-11-28T14:40:14.9129891Z DEBUG: cli.azure.cli.core: Loading command modules:
2024-11-28T14:40:14.9130639Z DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
2024-11-28T14:40:15.4580310Z DEBUG: cli.azure.cli.core: container 0.547 2 7
2024-11-28T14:40:15.4581501Z DEBUG: cli.azure.cli.core: Total (
) 0.547 2 7
2024-11-28T14:40:15.4591943Z DEBUG: cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
2024-11-28T14:40:15.4601708Z DEBUG: cli.azure.cli.core: Loading extensions:
2024-11-28T14:40:15.4602963Z DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory
2024-11-28T14:40:15.4603965Z DEBUG: cli.azure.cli.core: Total (0) 0.000 0 0
2024-11-28T14:40:15.4604994Z DEBUG: cli.azure.cli.core: Loaded 2 groups, 7 commands.
2024-11-28T14:40:15.4605857Z DEBUG: cli.azure.cli.core: Found a match in the command table.
2024-11-28T14:40:15.4606653Z DEBUG: cli.azure.cli.core: Raw command : container create
2024-11-28T14:40:15.4607454Z DEBUG: cli.azure.cli.core: Command table: container create
2024-11-28T14:40:15.4608383Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000026C75722480>]
2024-11-28T14:40:15.4610163Z DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'D:\a_temp.azclitask\commands\2024-
-28.4-40-5.container_create.200.log'.
2024-11-28T14:40:15.4611216Z INFO: az_command_data_logger: command args: container create -g {} --name {} --debug --image {} --cpu {} --memory {} --registry-login-server {} --registry-username {} --registry-password {} --vnet {} --subnet {} --ports {} --environment-variables {} {} {} {} {} {} {} {} {} {} {} {} --secure-environment-variables {} {} {} {} {} {}
2024-11-28T14:40:15.4612193Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000026C75747B00>]
2024-11-28T14:40:16.0784837Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
2024-11-28T14:40:16.0786725Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000026C757A9EE0>, <function register_cache_arguments..add_cache_arguments at 0x0000026C757AA020>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x0000026C757AA0C0>]
2024-11-28T14:40:16.0833660Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
2024-11-28T14:40:16.0834603Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
2024-11-28T14:40:16.0844866Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000026C73550900>, <function CLIQuery.handle_query_parameter at 0x0000026C73575D00>, <function register_ids_argument..parse_ids_arguments at 0x0000026C757A9F80>]
2024-11-28T14:40:16.1471045Z DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ResourceManagementClient
2024-11-28T14:40:16.1658464Z DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='D:\a\_temp\.azclitask\service_principal_entries.bin', encrypt=True
2024-11-28T14:40:16.1680299Z DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='D:\a\_temp\.azclitask\msal_token_cache.bin', encrypt=True
2024-11-28T14:40:16.1686752Z DEBUG: cli.azure.cli.core.auth.binary_cache: load: D:\a_temp.azclitask\msal_http_cache.bin
2024-11-28T14:40:16.1695385Z DEBUG: urllib3.util.retry: Converted retries value: *** -> Retry(total=
, connect=None, read=None, redirect=None, status=None)
2024-11-28T14:40:16.1699241Z DEBUG: msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/b67a75a0-4937-4a2f-976***-5f36c6895a5c
2024-11-28T14:40:16.1702712Z DEBUG: msal.authority: openid_config("https://login.microsoftonline.com/b67a75a0-4937-4a2f-976***-5f36c6895a5c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/b67a75a0-4937-4a2f-976***-5f36c6895a5c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/***/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/b67a75a0-4937-4a2f-976***-5f36c6895a5c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/***/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/***/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
2024-11-28T14:40:16.1705653Z DEBUG: msal.application: Broker enabled? None
2024-11-28T14:40:16.2621276Z DEBUG: cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
2024-11-28T14:40:16.2622679Z DEBUG: cli.azure.cli.core.auth.msal_credentials: ServicePrincipalCredential.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
2024-11-28T14:40:16.2629379Z DEBUG: msal.application: Cache hit an AT
2024-11-28T14:40:16.2634944Z DEBUG: msal.telemetry: Generate or reuse correlation_id: ***
2024-11-28T14:40:16.2636191Z DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/***/resourcegroups/***?api-version=2022-09-0
'
2024-11-28T14:40:16.2637327Z DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET'
2024-11-28T14:40:16.2638193Z DEBUG: cli.azure.cli.core.sdk.policies: Request headers:
2024-11-28T14:40:16.2639398Z DEBUG: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
2024-11-28T14:40:16.2640356Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'ae
4846c-ad96-ef-806-6045bdcf744f'
2024-11-28T14:40:16.2641318Z DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'container create'
2024-11-28T14:40:16.2642552Z DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '-g --name --debug --image --cpu --memory --registry-login-server --registry-username --registry-password --vnet --subnet --ports --environment-variables --secure-environment-variables'
2024-11-28T14:40:16.2643897Z DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/
.3
.0 Python/3.2.7 (Windows-209Server-***0.0.***7763-SP0) VSTS
_Release__8576_34795_2'
2024-11-28T14:40:16.2644968Z DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '
'
2024-11-28T14:40:16.2645835Z DEBUG: cli.azure.cli.core.sdk.policies: Request body:
2024-11-28T14:40:16.2646698Z DEBUG: cli.azure.cli.core.sdk.policies: This request has no body
2024-11-28T14:40:16.2662016Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (
): management.azure.com:443
2024-11-28T14:40:16.3822312Z DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/
/resourcegroups/s?api-version=2022-09-0 HTTP/." 200 422
2024-11-28T14:40:16.3832462Z DEBUG: cli.azure.cli.core.sdk.policies: Response status: 200
2024-11-28T14:40:16.3835472Z DEBUG: cli.azure.cli.core.sdk.policies: Response headers:
2024-11-28T14:40:16.3838122Z DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
2024-11-28T14:40:16.3839678Z DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
2024-11-28T14:40:16.3840983Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '422'
2024-11-28T14:40:16.3842345Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
2024-11-28T14:40:16.3843738Z DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-
'
2024-11-28T14:40:16.3845074Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
2024-11-28T14:40:16.3846503Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
2024-11-28T14:40:16.3847997Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '
'
2024-11-28T14:40:16.3849495Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '
'
2024-11-28T14:40:16.3851078Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'UKSOUTH:2024
28T440*****'
2024-11-28T14:40:16.3852652Z DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=3536000; includeSubDomains'
2024-11-28T14:40:16.3854058Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
2024-11-28T14:40:16.3855403Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
2024-11-28T14:40:16.3856929Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: D50760E4B9F54EAA969BFF3EF20E653F Ref B: DB3EDGE20
2 Ref C: 2024--28T4:40:6Z'
2024-11-28T14:40:16.3858485Z DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 28 Nov 2024 4:40:6 GMT'
2024-11-28T14:40:16.3866808Z DEBUG: cli.azure.cli.core.sdk.policies: Response content:
2024-11-28T14:40:16.3869877Z DEBUG: cli.azure.cli.core.sdk.policies: {"id":"/subscriptions/
/resourceGroups/
","name":"
","type":"Microsoft.Resources/resourceGroups","location":"uksouth","tags":{"business_criticality":"Low","environment":"","organization":"","portal":"Internal Services","region":"uksouth"},"properties":{"provisioningState":"Succeeded"}}
2024-11-28T14:40:16.3874073Z DEBUG: cli.azure.cli.core.commands.validators: using location 'uksouth' from resource group ''
2024-11-28T14:40:16.3875018Z DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ContainerInstanceManagementClient
2024-11-28T14:40:16.3878569Z DEBUG: urllib3.util.retry: Converted retries value: *** -> Retry(total=
, connect=None, read=None, redirect=None, status=None)
2024-11-28T14:40:16.3879683Z DEBUG: msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/b67a75a0-4937-4a2f-976***-5f36c6895a5c
2024-11-28T14:40:16.3884494Z DEBUG: msal.authority: openid_config("https://login.microsoftonline.com/***/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/***/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/***/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/***/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/***/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
2024-11-28T14:40:16.3887374Z DEBUG: msal.application: Broker enabled? None
2024-11-28T14:40:16.3905768Z DEBUG: urllib3.util.retry: Converted retries value: *** -> Retry(total=, connect=None, read=None, redirect=None, status=None)
2024-11-28T14:40:16.3909563Z DEBUG: msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/

2024-11-28T14:40:16.3912629Z DEBUG: msal.authority: openid_config("https://login.microsoftonline.com/***/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/***/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/***/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/***/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/***/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
2024-11-28T14:40:16.3915596Z DEBUG: msal.application: Broker enabled? None
2024-11-28T14:40:16.4380832Z DEBUG: cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
2024-11-28T14:40:16.4388806Z DEBUG: cli.azure.cli.core.auth.msal_credentials: ServicePrincipalCredential.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
2024-11-28T14:40:16.4390315Z DEBUG: msal.application: Cache hit an AT
2024-11-28T14:40:16.4391631Z DEBUG: msal.telemetry: Generate or reuse correlation_id:***
2024-11-28T14:40:16.4393154Z DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.Network/virtualNetworks/***/subnets/***?api-version=2022-0***-0***'
2024-11-28T14:40:16.4394437Z DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET'
2024-11-28T14:40:16.4395414Z DEBUG: cli.azure.cli.core.sdk.policies: Request headers:
2024-11-28T14:40:16.4396370Z DEBUG: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
2024-11-28T14:40:16.4397398Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'ae4846c-ad96-ef-806-6045bdcf744f'
2024-11-28T14:40:16.4398403Z DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'container create'
2024-11-28T14:40:16.4399574Z DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '-g --name --debug --image --cpu --memory --registry-login-server --registry-username --registry-password --vnet --subnet --ports --environment-variables --secure-environment-variables'
2024-11-28T14:40:16.4400970Z DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/
.3***.0 Python/3.2.7 (Windows-209Server-0.0.7763-SP0) VSTS__Release__8576_34795_2'
2024-11-28T14:40:16.4402114Z DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '
'
2024-11-28T14:40:16.4403017Z DEBUG: cli.azure.cli.core.sdk.policies: Request body:
2024-11-28T14:40:16.4403932Z DEBUG: cli.azure.cli.core.sdk.policies: This request has no body
2024-11-28T14:40:16.4407600Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (
): management.azure.com:443
2024-11-28T14:40:16.6762351Z DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/
/resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/?api-version=2022-0**-0*** HTTP/." 200 909
2024-11-28T14:40:16.6772319Z DEBUG: cli.azure.cli.core.sdk.policies: Response status: 200
2024-11-28T14:40:16.6773307Z DEBUG: cli.azure.cli.core.sdk.policies: Response headers:
2024-11-28T14:40:16.6774485Z DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
2024-11-28T14:40:16.6776001Z DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
2024-11-28T14:40:16.6776907Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '909'
2024-11-28T14:40:16.6777691Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
2024-11-28T14:40:16.6778680Z DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-
'
2024-11-28T14:40:16.6779461Z DEBUG: cli.azure.cli.core.sdk.policies: 'ETag': 'W/"4d454a76-ef
a-4bea-b3b8-2eba99594ccd"'
2024-11-28T14:40:16.6780294Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'b6a02b0***-3576-47cf-a6fc-89be7dc5d9ab'
2024-11-28T14:40:16.6781113Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '664d689d-f6de-4a76-9dbf-65da52672a30'
2024-11-28T14:40:16.6781985Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-arm-service-request-id': 'abee7f9-4be-4b8***-b8c4-fc47b824e9ad'
2024-11-28T14:40:16.6782837Z DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=3536000; includeSubDomains'
2024-11-28T14:40:16.6783666Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
2024-11-28T14:40:16.6784464Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
2024-11-28T14:40:16.6785367Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'UKSOUTH:2024
28T4406Z:664d689d-f6de-4a76-9dbf-65da52672a30'
2024-11-28T14:40:16.6786205Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
2024-11-28T14:40:16.6786961Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
2024-11-28T14:40:16.6787855Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 38F59D57D2347D92A5D0C280BF2A6 Ref B: DB3EDGE33 Ref C: 2024--28T4:40:6Z'
2024-11-28T14:40:16.6788769Z DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 28 Nov 2024 4:40:5 GMT'
2024-11-28T14:40:16.6789525Z DEBUG: cli.azure.cli.core.sdk.policies: Response content:
2024-11-28T14:40:16.6792394Z DEBUG: cli.azure.cli.core.sdk.policies: {"name":"
","id":"/subscriptions/
/resourceGroups/
/providers/Microsoft.Network/virtualNetworks//subnets/","etag":"W/"4d454a76-efa-4bea-b3b8-2eba99594ccd"","properties":{"provisioningState":"Succeeded","addressPrefix":"0.0..0/24","serviceAssociationLinks":[{"name":"acisal","id":"/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets//serviceAssociationLinks/acisal","etag":"W/"4d454a76-efa-4bea-b3b8-2eba99594ccd"","type":"Microsoft.Network/virtualNetworks/subnets/serviceAssociationLinks","properties":{"provisioningState":"Succeeded","linkedResourceType":"Microsoft.ContainerInstance/containerGroups","enabledForArmDeployments":,"allowDelete":,"locations":["uksouth"]}}],"serviceEndpoints":[{"provisioningState":"Succeeded","service":"Microsoft.Storage","locations":["uksouth","ukwest"]}],"delegations":[{"name":"delegation","id":"/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets//delegations/delegation","etag":"W/"4d454a76-efa-4bea-b3b8-2eba99594ccd"","properties":{"provisioningState":"Succeeded","serviceName":"Microsoft.ContainerInstance/containerGroups","actions":["Microsoft.Network/virtualNetworks/subnets/action"]},"type":"Microsoft.Network/virtualNetworks/subnets/delegations"}],"privateEndpointNetworkPolicies":"Enabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}
2024-11-28T14:40:16.6850294Z INFO: cli.azure.cli.command_modules.container.custom: Using existing subnet "
" in resource group ""
2024-11-28T14:40:16.6858173Z DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ContainerInstanceManagementClient
2024-11-28T14:40:16.6869578Z DEBUG: urllib3.util.retry: Converted retries value: *** -> Retry(total=
, connect=None, read=None, redirect=None, status=None)
2024-11-28T14:40:16.6876009Z DEBUG: msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/b67a75a0-4937-4a2f-976***-5f36c6895a5c
2024-11-28T14:40:17.4480513Z DEBUG: msal.authority: openid_config("https://login.microsoftonline.com/b67a75a0-4937-4a2f-976***-5f36c6895a5c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/b67a75a0-4937-4a2f-976***-5f36c6895a5c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/***/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/***/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/***/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/***/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/***/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
2024-11-28T14:40:17.4483204Z DEBUG: msal.application: Broker enabled? None
2024-11-28T14:40:17.4483911Z DEBUG: cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
2024-11-28T14:40:17.4484740Z DEBUG: cli.azure.cli.core.auth.msal_credentials: ServicePrincipalCredential.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
2024-11-28T14:40:17.4485432Z DEBUG: msal.application: Cache hit an AT
2024-11-28T14:40:17.4486087Z DEBUG: msal.telemetry: Generate or reuse correlation_id: 239e4bb-746-4ec4-8c3b-eddf4954bf76
2024-11-28T14:40:17.4487037Z DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.ContainerInstance/containerGroups/***?api-version=2024-05-0***-preview'
2024-11-28T14:40:17.4487946Z DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'PUT'
2024-11-28T14:40:17.4488566Z DEBUG: cli.azure.cli.core.sdk.policies: Request headers:
2024-11-28T14:40:17.4489204Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json'
2024-11-28T14:40:17.4489859Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '3495'
2024-11-28T14:40:17.4491392Z DEBUG: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
2024-11-28T14:40:17.4492110Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'ae4846c-ad96-ef-806-6045bdcf744f'
2024-11-28T14:40:17.4492799Z DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'container create'
2024-11-28T14:40:17.4493729Z DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '-g --name --debug --image --cpu --memory --registry-login-server --registry-username --registry-password --vnet --subnet --ports --environment-variables --secure-environment-variables'
2024-11-28T14:40:17.4494735Z DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.67.0 (MSI) azsdk-python-core/
.3***.0 Python/3.2.7 (Windows-209Server-0.0.7763-SP0) VSTS_f7_Release__8576_34795_2'
2024-11-28T14:40:17.4495527Z DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '
'
2024-11-28T14:40:17.4496167Z DEBUG: cli.azure.cli.core.sdk.policies: Request body:
2024-11-28T14:40:17.4500433Z DEBUG: cli.azure.cli.core.sdk.policies: {"properties": {"containers": [{"name": "
", "properties": {"image": "", "ports": [{"protocol": "TCP", "port": 80}], "environmentVariables": [{"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "", "value": ""}, {"name": "Logging__LogLevel__Default", "value": ""}, {"name": "", "value": ""}, {"name": "", "secureValue": ""}, {"name": "", "secureValue": ""}, {"name": "", "secureValue": ""}, {"name": "", "secureValue": ""}, {"name": "", "secureValue": "https:///tfp/pxdevtest.onmicrosoft.com/B2C__ExternalMessagesSignIn"}, {"name": "", "secureValue": ""}], "resources": {"requests": {"memoryInGB": .0, "cpu": .0}}, "configMap": {"keyValuePairs": {}}}}], "imageRegistryCredentials": [{"server": ".azurecr.io", "username": "", "password": ""}], "ipAddress": {"ports": [{"protocol": "TCP", "port": 80}], "type": "Private", "autoGeneratedDomainNameLabelScope": "Unsecure"}, "subnetIds": [{"id": "/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/"}]}, "location": "uksouth", "tags": {}}
2024-11-28T14:40:17.4503164Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (
): management.azure.com:443
2024-11-28T14:40:17.4504208Z DEBUG: urllib3.connectionpool: https://management.azure.com:443 "PUT /subscriptions/
/resourceGroups//providers/Microsoft.ContainerInstance/containerGroups/?api-version=2024-05-0**-preview HTTP/." 400 42
2024-11-28T14:40:17.4505118Z DEBUG: cli.azure.cli.core.sdk.policies: Response status: 400
2024-11-28T14:40:17.4505730Z DEBUG: cli.azure.cli.core.sdk.policies: Response headers:
2024-11-28T14:40:17.4506435Z DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
2024-11-28T14:40:17.4507080Z DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
2024-11-28T14:40:17.4507703Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '42'
2024-11-28T14:40:17.4508350Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
2024-11-28T14:40:17.4509499Z DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-
'
2024-11-28T14:40:17.4510178Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-resource-requests-pt5m': '99'
2024-11-28T14:40:17.4510935Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-resource-requests-pt
h': '99'
2024-11-28T14:40:17.4511677Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'uksouth:9b077ae6-e59b-4
b7-acfb-7940879363'
2024-11-28T14:40:17.4512427Z DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=3536000; includeSubDomains'
2024-11-28T14:40:17.4513142Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '99'
2024-11-28T14:40:17.4513867Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-writes': '2999'
2024-11-28T14:40:17.4514594Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '47feff
6-7837-4d7f-be5c-d9f39
a8ac2b'
2024-11-28T14:40:17.4515390Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'UKWEST:202428T4406Z:47feff6-7837-4d7f-be5c-d9f39a8ac2b'
2024-11-28T14:40:17.4516132Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
2024-11-28T14:40:17.4516789Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
2024-11-28T14:40:17.4517528Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 57
270405D624229925D87D58D2B283F Ref B: DB3EDGE3209 Ref C: 2024--28T4:40:6Z'
2024-11-28T14:40:17.4518310Z DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 28 Nov 2024 4:40:6 GMT'
2024-11-28T14:40:17.4518952Z DEBUG: cli.azure.cli.core.sdk.policies: Response content:
2024-11-28T14:40:17.4519567Z DEBUG: cli.azure.cli.core.sdk.policies: Body is streamable
2024-11-28T14:40:17.4520224Z DEBUG: cli.azure.cli.core.azclierror: back (most recent call last):
2024-11-28T14:40:17.4520910Z File "D:\a_work*
\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
2024-11-28T14:40:17.4521675Z File "D:\a_work*
\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
2024-11-28T14:40:17.4522442Z File "D:\a_work*\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 733, in _run_jobs_serially
2024-11-28T14:40:17.4523229Z File "D:\a_work*
\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
2024-11-28T14:40:17.4523978Z File "D:\a_work*
\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
2024-11-28T14:40:17.4524791Z File "D:\a_work*
\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 2, in handler
2024-11-28T14:40:17.4525600Z File "D:\a_work*\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/container/custom.py", line 282, in create_container
2024-11-28T14:40:17.4526357Z File "D:\a_work*
\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 708, in sdk_no_wait
2024-11-28T14:40:17.4527115Z File "D:\a_work*\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 94, in wrapper_use_tracer
2024-11-28T14:40:17.4527935Z File "D:\a_work*
\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/containerinstance/operations/container_groups_operations.py", line 774, in begin_create_or_update
2024-11-28T14:40:17.4528978Z File "D:\a_work*\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/containerinstance/operations/_container_groups_operations.py", line 668, in _create_or_update_initial
2024-11-28T14:40:17.4529891Z azure.core.exceptions.HttpResponseError: (InvalidOsType) The 'osType' for container group '' is invalid. The value must be one of 'Windows,Linux'.
2024-11-28T14:40:17.4530546Z Code: InvalidOsType
2024-11-28T14:40:17.4531153Z Message: The 'osType' for container group '' is invalid. The value must be one of 'Windows,Linux'.
2024-11-28T14:40:17.4531430Z
2024-11-28T14:40:17.4532055Z ERROR: cli.azure.cli.core.azclierror: (InvalidOsType) The 'osType' for container group '' is invalid. The value must be one of 'Windows,Linux'.
2024-11-28T14:40:17.4532699Z Code: InvalidOsType
2024-11-28T14:40:17.4533330Z Message: The 'osType' for container group '' is invalid. The value must be one of 'Windows,Linux'.
2024-11-28T14:40:17.4534058Z ERROR: az_command_data_logger: (InvalidOsType) The 'osType' for container group '' is invalid. The value must be one of 'Windows,Linux'.
2024-11-28T14:40:17.4534688Z Code: InvalidOsType
2024-11-28T14:40:17.4535302Z Message: The 'osType' for container group '' is invalid. The value must be one of 'Windows,Linux'.
2024-11-28T14:40:17.4536005Z DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0000026C75722700>]
2024-11-28T14:40:17.4536655Z INFO: az_command_data_logger: exit code: ***
2024-11-28T14:40:17.4537303Z INFO: cli.main: Command ran in 2.7
* seconds (init: 0.348, invoke: 2.362)
2024-11-28T14:40:17.4537961Z INFO: telemetry.main: Begin splitting cli events and extra events, total events: ***
2024-11-28T14:40:17.4538612Z INFO: telemetry.client: Accumulated 0 events. Flush the clients.
2024-11-28T14:40:17.4539255Z INFO: telemetry.main: Finish splitting cli events and extra events, cli events: ***
2024-11-28T14:40:17.4539988Z INFO: telemetry.save: Save telemetry record of length 4253 in cache file under D:\a_temp.azclitask\telemetry\202428440***7305
2024-11-28T14:40:17.4540676Z INFO: telemetry.main: Begin creating telemetry upload process.
2024-11-28T14:40:17.4541543Z INFO: telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init
.pyc D:\a_temp.azclitask D:\a_temp.azclitask\telemetry\202428440***7305"
2024-11-28T14:40:17.4542386Z INFO: telemetry.process: Return from creating process 6584
2024-11-28T14:40:17.4543003Z INFO: telemetry.main: Finish creating telemetry upload process.
2024-11-28T14:40:50.2828393Z
2024-11-28T14:40:50.3389626Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" account clear"
2024-11-28T14:40:52.6796376Z ##[section]Finishing: Create Service Users Worker Service Container Instance

Expected behavior

The command should still run without the addition of the --os-type command and still default to linux.
At least according to the documentation.

Environment Summary

azure-cli 2.67.0

core 2.67.0
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botContainer Instancesaz containerService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions