Describe the bug
Command Ran:
# Example variables (replace with actual values if needed)
RESOURCE_GROUP="verticai-speech-rg"
ENVIRONMENT_NAME="speech-env"
GPU_PROFILE_NAME="Consumption-GPU-NC8as-T4"
MIN_NODES=0
MAX_NODES=3
LOCATION="swedencentral"
# Command that fails
az containerapp env workload-profile add \
--name "$ENVIRONMENT_NAME" \
--resource-group "$RESOURCE_GROUP" \
--workload-profile-name "$GPU_PROFILE_NAME" \
--min-nodes "$MIN_NODES" \
--max-nodes "$MAX_NODES"
Expected Behavior:
The command should successfully add the specified workload profile (Consumption-GPU-NC8as-T4) to the Container Apps Environment. This expectation is based on the profile name being explicitly listed as supported for the specified location (swedencentral) by the az containerapp env workload-profile list-supported command.
Actual Behavior:
The command fails with the following error message:
(WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
Supporting Evidence:
The az containerapp env workload-profile list-supported command for the same location confirms that Consumption-GPU-NC8as-T4 is a valid and supported profile name:
❯ az containerapp env workload-profile list-supported --location swedencentral
[
# ... other profiles omitted for brevity ...
{
"id": "/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/providers/Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes/Consumption-GPU-NC8as-T4",
"location": "swedencentral",
"name": "Consumption-GPU-NC8as-T4", # <-- The name listed as supported
"properties": {
"category": "Consumption-GPU-T4",
"cores": 8,
"displayName": "Consumption-GPU-NC8as-T4",
"gpus": 1,
"memoryGiB": 56
},
"type": "Microsoft.App/availableManagedEnvironmentsWorkloadProfileTypes"
}
# ... other profiles omitted for brevity ...
]
Conclusion:
There is a direct contradiction between the profile names listed as supported by list-supported and the validation rules enforced by workload-profile add. The add command incorrectly applies a length constraint (must be < 16 chars) that the officially supported profile name (Consumption-GPU-NC8as-T4, which is 26 chars long) violates.
This prevents users from adding supported GPU workload profiles to their Container App Environments via the Azure CLI. The validation logic for the add command needs to be aligned with the profiles listed by list-supported.
Environment:
Azure CLI Version: 2.71.0
OS: Ubuntu 24.04.2 LTS
ContainerApp Extension Version (if installed): 1.1.0b4
Region: swedencentral
Steps to Reproduce:
Ensure you have an Azure Container Apps Environment in a region supporting Consumption-GPU-NC8as-T4 (e.g., swedencentral).
Run az containerapp env workload-profile list-supported --location swedencentral and verify Consumption-GPU-NC8as-T4 is listed.
Attempt to add this profile using the az containerapp env workload-profile add command shown above.
Observe the WorkloadProfileInvalidNameTooLong error.
Related command
az containerapp env workload-profile add
Errors
(WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
Issue script & Debug output
❯ az containerapp env workload-profile add
--name "speech-env"
--resource-group "verticai-speech-rg"
--workload-profile-name "Consumption-GPU-NC8as-T4"
--min-nodes 0
--max-nodes 3
--debug
cli.knack.cli: Command arguments: ['containerapp', 'env', 'workload-profile', 'add', '--name', 'speech-env', '--resource-group', 'verticai-speech-rg', '--workload-profile-name', 'Consumption-GPU-NC8as-T4', '--min-nodes', '0', '--max-nodes', '3', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7ab5488db7e0>, <function OutputProducer.on_global_arguments at 0x7ab5486827a0>, <function CLIQuery.on_global_arguments at 0x7ab5486c7ce0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'containerapp': ['azext_containerapp', 'azure.cli.command_modules.containerapp', 'azure.cli.command_modules.serviceconnector']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: containerapp 0.383 37 123
cli.azure.cli.core: serviceconnector 0.081 20 323
cli.azure.cli.core: Total (2) 0.464 57 446
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: containerapp 0.020 56 157 /home/tom/.azure/cliextensions/containerapp
cli.azure.cli.core: Total (1) 0.020 56 157
cli.azure.cli.core: Loaded 96 groups, 568 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : containerapp env workload-profile add
cli.azure.cli.core: Command table: containerapp env workload-profile add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7ab5478f4220>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/tom/.azure/commands/2025-04-10.17-40-52.containerapp_env_workload-profile_add.331146.log'.
az_command_data_logger: command args: containerapp env workload-profile add --name {} --resource-group {} --workload-profile-name {} --min-nodes {} --max-nodes {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7ab547950720>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7ab547952f20>, <function register_cache_arguments..add_cache_arguments at 0x7ab547953060>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x7ab547953100>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7ab548682840>, <function CLIQuery.handle_query_parameter at 0x7ab5486c7d80>, <function register_ids_argument..parse_ids_arguments at 0x7ab547952fc0>]
cli.azure.cli.core.util: Found subscription ID d48e73d6-6ed3-4d83-83ee-1e34bffbc30b in the URL https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription d48e73d6-6ed3-4d83-83ee-1e34bffbc30b
cli.azure.cli.core.auth.persistence: build_persistence: location='/home/tom/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /home/tom/.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/02c1c913-eda8-475a-9d52-d68fe6bb183c
msal.authority: openid_config("https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/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'}
msal.application: Broker enabled? None
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.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: a1291e9e-990e-459d-a100-c2264beb449f
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01'
cli.azure.cli.core.util: Request method: 'GET'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util: 'User-Agent': 'python/3.12.8 (Linux-6.11.0-21-generic-x86_64-with-glibc2.39) AZURECLI/2.71.0 (DEB)'
cli.azure.cli.core.util: 'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util: 'Accept': '/'
cli.azure.cli.core.util: 'Connection': 'keep-alive'
cli.azure.cli.core.util: 'x-ms-client-request-id': 'b5d6bb7a-9ad9-465a-911d-9f290427574c'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --min-nodes --max-nodes --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: None
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01 HTTP/1.1" 200 1636
cli.azure.cli.core.util: Response status: 200
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util: 'Cache-Control': 'no-cache'
cli.azure.cli.core.util: 'Pragma': 'no-cache'
cli.azure.cli.core.util: 'Content-Length': '1636'
cli.azure.cli.core.util: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.util: 'Expires': '-1'
cli.azure.cli.core.util: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.util: 'api-supported-versions': '2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, 2023-04-01-preview, 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01, 2025-02-02-preview'
cli.azure.cli.core.util: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.util: 'x-ms-request-id': 'bced8856-a82b-4bef-a7d0-9d571ffcc773'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': 'bced8856-a82b-4bef-a7d0-9d571ffcc773'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'WESTEUROPE:20250410T154052Z:bced8856-a82b-4bef-a7d0-9d571ffcc773'
cli.azure.cli.core.util: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.util: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.util: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.util: 'X-MSEdge-Ref': 'Ref A: AC4B5B5B80D74A1A806F0F4F49F9243E Ref B: AMS231032608045 Ref C: 2025-04-10T15:40:52Z'
cli.azure.cli.core.util: 'Date': 'Thu, 10 Apr 2025 15:40:51 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"id":"/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env","name":"speech-env","type":"Microsoft.App/managedEnvironments","location":"Sweden Central","systemData":{"createdBy":"tom@verticai.nl","createdByType":"User","createdAt":"2025-04-10T15:15:28.6377407","lastModifiedBy":"tom@verticai.nl","lastModifiedByType":"User","lastModifiedAt":"2025-04-10T15:15:28.6377407"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"ambitiousrock-f8e1b5fb.swedencentral.azurecontainerapps.io","staticIp":"9.223.228.122","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"d241f431-404c-44c0-bd37-2433a4664845","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.16.1"},"daprConfiguration":{"version":"1.13.6-msft.2"},"eventStreamEndpoint":"https://swedencentral.azurecontainerapps.dev/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/managedEnvironments/speech-env/eventstream","customDomainConfiguration":{"customDomainVerificationId":"52377EB37656197A97010EB3BE17DC766FCFEEE7B18EC88E0753D173F6066350","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":[{"workloadProfileType":"Consumption","name":"Consumption"}],"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}},"peerTrafficConfiguration":{"encryption":{"enabled":false}}}}
cli.azure.cli.core.util: Found subscription ID d48e73d6-6ed3-4d83-83ee-1e34bffbc30b in the URL https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription d48e73d6-6ed3-4d83-83ee-1e34bffbc30b
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/02c1c913-eda8-475a-9d52-d68fe6bb183c
msal.authority: openid_config("https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/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'}
msal.application: Broker enabled? None
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.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 06210943-470f-405e-8fe3-1eb1329df7a4
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01'
cli.azure.cli.core.util: Request method: 'GET'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util: 'User-Agent': 'python/3.12.8 (Linux-6.11.0-21-generic-x86_64-with-glibc2.39) AZURECLI/2.71.0 (DEB)'
cli.azure.cli.core.util: 'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util: 'Accept': '/'
cli.azure.cli.core.util: 'Connection': 'keep-alive'
cli.azure.cli.core.util: 'x-ms-client-request-id': 'eb52ddbc-f439-41ac-ad99-ab4556e66486'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --min-nodes --max-nodes --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: None
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01 HTTP/1.1" 200 1636
cli.azure.cli.core.util: Response status: 200
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util: 'Cache-Control': 'no-cache'
cli.azure.cli.core.util: 'Pragma': 'no-cache'
cli.azure.cli.core.util: 'Content-Length': '1636'
cli.azure.cli.core.util: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.util: 'Expires': '-1'
cli.azure.cli.core.util: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.util: 'api-supported-versions': '2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, 2023-04-01-preview, 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01, 2025-02-02-preview'
cli.azure.cli.core.util: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.util: 'x-ms-request-id': '610457b3-7c7c-43cf-bcc3-740434a4536d'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '610457b3-7c7c-43cf-bcc3-740434a4536d'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'WESTEUROPE:20250410T154053Z:610457b3-7c7c-43cf-bcc3-740434a4536d'
cli.azure.cli.core.util: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.util: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.util: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.util: 'X-MSEdge-Ref': 'Ref A: B4F166458C7441B89B6F1A9C8F930DA6 Ref B: AMS231032608011 Ref C: 2025-04-10T15:40:52Z'
cli.azure.cli.core.util: 'Date': 'Thu, 10 Apr 2025 15:40:52 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"id":"/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env","name":"speech-env","type":"Microsoft.App/managedEnvironments","location":"Sweden Central","systemData":{"createdBy":"tom@verticai.nl","createdByType":"User","createdAt":"2025-04-10T15:15:28.6377407","lastModifiedBy":"tom@verticai.nl","lastModifiedByType":"User","lastModifiedAt":"2025-04-10T15:15:28.6377407"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"ambitiousrock-f8e1b5fb.swedencentral.azurecontainerapps.io","staticIp":"9.223.228.122","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"d241f431-404c-44c0-bd37-2433a4664845","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.16.1"},"daprConfiguration":{"version":"1.13.6-msft.2"},"eventStreamEndpoint":"https://swedencentral.azurecontainerapps.dev/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/managedEnvironments/speech-env/eventstream","customDomainConfiguration":{"customDomainVerificationId":"52377EB37656197A97010EB3BE17DC766FCFEEE7B18EC88E0753D173F6066350","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":[{"workloadProfileType":"Consumption","name":"Consumption"}],"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}},"peerTrafficConfiguration":{"encryption":{"enabled":false}}}}
cli.azure.cli.core.util: Found subscription ID d48e73d6-6ed3-4d83-83ee-1e34bffbc30b in the URL https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription d48e73d6-6ed3-4d83-83ee-1e34bffbc30b
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/02c1c913-eda8-475a-9d52-d68fe6bb183c
msal.authority: openid_config("https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/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'}
msal.application: Broker enabled? None
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.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 2d41cd3d-0983-4067-bfce-79832aa3733f
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01'
cli.azure.cli.core.util: Request method: 'PATCH'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util: 'User-Agent': 'python/3.12.8 (Linux-6.11.0-21-generic-x86_64-with-glibc2.39) AZURECLI/2.71.0 (DEB)'
cli.azure.cli.core.util: 'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util: 'Accept': '/'
cli.azure.cli.core.util: 'Connection': 'keep-alive'
cli.azure.cli.core.util: 'x-ms-client-request-id': 'df23edcb-b5d5-45fa-95fa-809c4289db84'
cli.azure.cli.core.util: 'Content-Type': 'application/json'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --min-nodes --max-nodes --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: 'Content-Length': '211'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: {"location": "Sweden Central", "properties": {"workloadProfiles": [{"workloadProfileType": "Consumption", "name": "Consumption"}, {"name": "Consumption-GPU-NC8as-T4", "maximumCount": "3", "minimumCount": "0"}]}}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "PATCH /subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01 HTTP/1.1" 400 148
cli.azure.cli.core.util: Response status: 400
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util: 'Cache-Control': 'no-cache'
cli.azure.cli.core.util: 'Pragma': 'no-cache'
cli.azure.cli.core.util: 'Content-Length': '148'
cli.azure.cli.core.util: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.util: 'Expires': '-1'
cli.azure.cli.core.util: 'x-ms-operation-identifier': 'tenantId=02c1c913-eda8-475a-9d52-d68fe6bb183c,objectId=c58d4740-9c50-44fb-822b-f23ec752abb1/westeurope/f34bc993-b41b-4bcb-9739-873dc8b58020'
cli.azure.cli.core.util: 'api-supported-versions': '2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, 2023-04-01-preview, 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01, 2025-02-02-preview'
cli.azure.cli.core.util: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-resource-requests': '99'
cli.azure.cli.core.util: 'x-ms-request-id': '10ba53b6-e1e3-47ec-8f27-11f5b7f7f14b'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '10ba53b6-e1e3-47ec-8f27-11f5b7f7f14b'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'WESTEUROPE:20250410T154053Z:10ba53b6-e1e3-47ec-8f27-11f5b7f7f14b'
cli.azure.cli.core.util: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.util: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.util: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.util: 'X-MSEdge-Ref': 'Ref A: 90FBB566B547474EB6F4364CC778D840 Ref B: AMS231020512039 Ref C: 2025-04-10T15:40:53Z'
cli.azure.cli.core.util: 'Date': 'Thu, 10 Apr 2025 15:40:53 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"error":{"code":"WorkloadProfileInvalidNameTooLong","message":"Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters."}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/containerapp_env_decorator.py", line 388, in update
return self.client.update(cmd=self.cmd, resource_group_name=self.get_argument_resource_group_name(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/_clients.py", line 497, in update
r = send_raw_request(cmd.cli_ctx, "PATCH", request_url, body=json.dumps(managed_environment_envelope))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/util.py", line 1046, in send_raw_request
raise HTTPError(reason, r)
azure.cli.core.azclierror.HTTPError: Bad Request({"error":{"code":"WorkloadProfileInvalidNameTooLong","message":"Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters."}})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/custom.py", line 5042, in add_workload_profile
return update_managed_environment(cmd, env_name, resource_group_name, workload_profile_type=workload_profile_type, workload_profile_name=workload_profile_name, min_nodes=min_nodes, max_nodes=max_nodes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/custom.py", line 912, in update_managed_environment
r = containerapp_env_update_decorator.update()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/containerapp_env_decorator.py", line 391, in update
handle_raw_exception(e)
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/_client_factory.py", line 56, in handle_raw_exception
raise CLIInternalError('({}) {}'.format(code, message))
azure.cli.core.azclierror.CLIInternalError: (WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
cli.azure.cli.core.azclierror: (WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
az_command_data_logger: (WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7ab5478f44a0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 2.460 seconds (init: 0.270, invoke: 2.190)
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 4158 in cache file under /home/tom/.azure/telemetry/20250410174053995
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.12/site-packages/azure/cli/telemetry/init.py /home/tom/.azure /home/tom/.azure/telemetry/20250410174053995"
telemetry.process: Return from creating process 331183
telemetry.main: Finish creating telemetry upload process.
Expected behavior
The command should successfully add the specified workload profile (Consumption-GPU-NC8as-T4) to the Container Apps Environment. This expectation is based on the profile name being explicitly listed as supported for the specified location (swedencentral) by the az containerapp env workload-profile list-supported command.
Environment Summary
❯ az version
{
"azure-cli": "2.71.0",
"azure-cli-core": "2.71.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"account": "0.2.5",
"azure-devops": "1.0.1",
"containerapp": "1.1.0b4",
"quota": "1.0.0"
}
}
~/repos/verticai-speech main ?7 ❯
Additional context
No response
Describe the bug
Command Ran:
Expected Behavior:
The command should successfully add the specified workload profile (Consumption-GPU-NC8as-T4) to the Container Apps Environment. This expectation is based on the profile name being explicitly listed as supported for the specified location (swedencentral) by the az containerapp env workload-profile list-supported command.
Actual Behavior:
The command fails with the following error message:
Supporting Evidence:
The az containerapp env workload-profile list-supported command for the same location confirms that Consumption-GPU-NC8as-T4 is a valid and supported profile name:
Conclusion:
There is a direct contradiction between the profile names listed as supported by list-supported and the validation rules enforced by workload-profile add. The add command incorrectly applies a length constraint (must be < 16 chars) that the officially supported profile name (Consumption-GPU-NC8as-T4, which is 26 chars long) violates.
This prevents users from adding supported GPU workload profiles to their Container App Environments via the Azure CLI. The validation logic for the add command needs to be aligned with the profiles listed by list-supported.
Environment:
Azure CLI Version: 2.71.0
OS: Ubuntu 24.04.2 LTS
ContainerApp Extension Version (if installed): 1.1.0b4
Region: swedencentral
Steps to Reproduce:
Ensure you have an Azure Container Apps Environment in a region supporting Consumption-GPU-NC8as-T4 (e.g., swedencentral).
Run az containerapp env workload-profile list-supported --location swedencentral and verify Consumption-GPU-NC8as-T4 is listed.
Attempt to add this profile using the az containerapp env workload-profile add command shown above.
Observe the WorkloadProfileInvalidNameTooLong error.
Related command
az containerapp env workload-profile add
Errors
(WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
Issue script & Debug output
❯ az containerapp env workload-profile add
--name "speech-env"
--resource-group "verticai-speech-rg"
--workload-profile-name "Consumption-GPU-NC8as-T4"
--min-nodes 0
--max-nodes 3
--debug
cli.knack.cli: Command arguments: ['containerapp', 'env', 'workload-profile', 'add', '--name', 'speech-env', '--resource-group', 'verticai-speech-rg', '--workload-profile-name', 'Consumption-GPU-NC8as-T4', '--min-nodes', '0', '--max-nodes', '3', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7ab5488db7e0>, <function OutputProducer.on_global_arguments at 0x7ab5486827a0>, <function CLIQuery.on_global_arguments at 0x7ab5486c7ce0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'containerapp': ['azext_containerapp', 'azure.cli.command_modules.containerapp', 'azure.cli.command_modules.serviceconnector']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: containerapp 0.383 37 123
cli.azure.cli.core: serviceconnector 0.081 20 323
cli.azure.cli.core: Total (2) 0.464 57 446
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: containerapp 0.020 56 157 /home/tom/.azure/cliextensions/containerapp
cli.azure.cli.core: Total (1) 0.020 56 157
cli.azure.cli.core: Loaded 96 groups, 568 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : containerapp env workload-profile add
cli.azure.cli.core: Command table: containerapp env workload-profile add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7ab5478f4220>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/tom/.azure/commands/2025-04-10.17-40-52.containerapp_env_workload-profile_add.331146.log'.
az_command_data_logger: command args: containerapp env workload-profile add --name {} --resource-group {} --workload-profile-name {} --min-nodes {} --max-nodes {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7ab547950720>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7ab547952f20>, <function register_cache_arguments..add_cache_arguments at 0x7ab547953060>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x7ab547953100>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7ab548682840>, <function CLIQuery.handle_query_parameter at 0x7ab5486c7d80>, <function register_ids_argument..parse_ids_arguments at 0x7ab547952fc0>]
cli.azure.cli.core.util: Found subscription ID d48e73d6-6ed3-4d83-83ee-1e34bffbc30b in the URL https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription d48e73d6-6ed3-4d83-83ee-1e34bffbc30b
cli.azure.cli.core.auth.persistence: build_persistence: location='/home/tom/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /home/tom/.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/02c1c913-eda8-475a-9d52-d68fe6bb183c
msal.authority: openid_config("https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/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'}
msal.application: Broker enabled? None
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.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: a1291e9e-990e-459d-a100-c2264beb449f
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01'
cli.azure.cli.core.util: Request method: 'GET'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util: 'User-Agent': 'python/3.12.8 (Linux-6.11.0-21-generic-x86_64-with-glibc2.39) AZURECLI/2.71.0 (DEB)'
cli.azure.cli.core.util: 'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util: 'Accept': '/'
cli.azure.cli.core.util: 'Connection': 'keep-alive'
cli.azure.cli.core.util: 'x-ms-client-request-id': 'b5d6bb7a-9ad9-465a-911d-9f290427574c'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --min-nodes --max-nodes --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: None
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01 HTTP/1.1" 200 1636
cli.azure.cli.core.util: Response status: 200
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util: 'Cache-Control': 'no-cache'
cli.azure.cli.core.util: 'Pragma': 'no-cache'
cli.azure.cli.core.util: 'Content-Length': '1636'
cli.azure.cli.core.util: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.util: 'Expires': '-1'
cli.azure.cli.core.util: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.util: 'api-supported-versions': '2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, 2023-04-01-preview, 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01, 2025-02-02-preview'
cli.azure.cli.core.util: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.util: 'x-ms-request-id': 'bced8856-a82b-4bef-a7d0-9d571ffcc773'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': 'bced8856-a82b-4bef-a7d0-9d571ffcc773'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'WESTEUROPE:20250410T154052Z:bced8856-a82b-4bef-a7d0-9d571ffcc773'
cli.azure.cli.core.util: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.util: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.util: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.util: 'X-MSEdge-Ref': 'Ref A: AC4B5B5B80D74A1A806F0F4F49F9243E Ref B: AMS231032608045 Ref C: 2025-04-10T15:40:52Z'
cli.azure.cli.core.util: 'Date': 'Thu, 10 Apr 2025 15:40:51 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"id":"/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env","name":"speech-env","type":"Microsoft.App/managedEnvironments","location":"Sweden Central","systemData":{"createdBy":"tom@verticai.nl","createdByType":"User","createdAt":"2025-04-10T15:15:28.6377407","lastModifiedBy":"tom@verticai.nl","lastModifiedByType":"User","lastModifiedAt":"2025-04-10T15:15:28.6377407"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"ambitiousrock-f8e1b5fb.swedencentral.azurecontainerapps.io","staticIp":"9.223.228.122","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"d241f431-404c-44c0-bd37-2433a4664845","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.16.1"},"daprConfiguration":{"version":"1.13.6-msft.2"},"eventStreamEndpoint":"https://swedencentral.azurecontainerapps.dev/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/managedEnvironments/speech-env/eventstream","customDomainConfiguration":{"customDomainVerificationId":"52377EB37656197A97010EB3BE17DC766FCFEEE7B18EC88E0753D173F6066350","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":[{"workloadProfileType":"Consumption","name":"Consumption"}],"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}},"peerTrafficConfiguration":{"encryption":{"enabled":false}}}}
cli.azure.cli.core.util: Found subscription ID d48e73d6-6ed3-4d83-83ee-1e34bffbc30b in the URL https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription d48e73d6-6ed3-4d83-83ee-1e34bffbc30b
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/02c1c913-eda8-475a-9d52-d68fe6bb183c
msal.authority: openid_config("https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/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'}
msal.application: Broker enabled? None
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.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 06210943-470f-405e-8fe3-1eb1329df7a4
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01'
cli.azure.cli.core.util: Request method: 'GET'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util: 'User-Agent': 'python/3.12.8 (Linux-6.11.0-21-generic-x86_64-with-glibc2.39) AZURECLI/2.71.0 (DEB)'
cli.azure.cli.core.util: 'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util: 'Accept': '/'
cli.azure.cli.core.util: 'Connection': 'keep-alive'
cli.azure.cli.core.util: 'x-ms-client-request-id': 'eb52ddbc-f439-41ac-ad99-ab4556e66486'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --min-nodes --max-nodes --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: None
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01 HTTP/1.1" 200 1636
cli.azure.cli.core.util: Response status: 200
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util: 'Cache-Control': 'no-cache'
cli.azure.cli.core.util: 'Pragma': 'no-cache'
cli.azure.cli.core.util: 'Content-Length': '1636'
cli.azure.cli.core.util: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.util: 'Expires': '-1'
cli.azure.cli.core.util: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-reads': '249'
cli.azure.cli.core.util: 'api-supported-versions': '2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, 2023-04-01-preview, 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01, 2025-02-02-preview'
cli.azure.cli.core.util: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
cli.azure.cli.core.util: 'x-ms-request-id': '610457b3-7c7c-43cf-bcc3-740434a4536d'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '610457b3-7c7c-43cf-bcc3-740434a4536d'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'WESTEUROPE:20250410T154053Z:610457b3-7c7c-43cf-bcc3-740434a4536d'
cli.azure.cli.core.util: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.util: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.util: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.util: 'X-MSEdge-Ref': 'Ref A: B4F166458C7441B89B6F1A9C8F930DA6 Ref B: AMS231032608011 Ref C: 2025-04-10T15:40:52Z'
cli.azure.cli.core.util: 'Date': 'Thu, 10 Apr 2025 15:40:52 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"id":"/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env","name":"speech-env","type":"Microsoft.App/managedEnvironments","location":"Sweden Central","systemData":{"createdBy":"tom@verticai.nl","createdByType":"User","createdAt":"2025-04-10T15:15:28.6377407","lastModifiedBy":"tom@verticai.nl","lastModifiedByType":"User","lastModifiedAt":"2025-04-10T15:15:28.6377407"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"ambitiousrock-f8e1b5fb.swedencentral.azurecontainerapps.io","staticIp":"9.223.228.122","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"d241f431-404c-44c0-bd37-2433a4664845","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.16.1"},"daprConfiguration":{"version":"1.13.6-msft.2"},"eventStreamEndpoint":"https://swedencentral.azurecontainerapps.dev/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/managedEnvironments/speech-env/eventstream","customDomainConfiguration":{"customDomainVerificationId":"52377EB37656197A97010EB3BE17DC766FCFEEE7B18EC88E0753D173F6066350","dnsSuffix":null,"certificateValue":null,"certificatePassword":null,"thumbprint":null,"subjectName":null,"expirationDate":null},"workloadProfiles":[{"workloadProfileType":"Consumption","name":"Consumption"}],"infrastructureResourceGroup":null,"peerAuthentication":{"mtls":{"enabled":false}},"peerTrafficConfiguration":{"encryption":{"enabled":false}}}}
cli.azure.cli.core.util: Found subscription ID d48e73d6-6ed3-4d83-83ee-1e34bffbc30b in the URL https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription d48e73d6-6ed3-4d83-83ee-1e34bffbc30b
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/02c1c913-eda8-475a-9d52-d68fe6bb183c
msal.authority: openid_config("https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/02c1c913-eda8-475a-9d52-d68fe6bb183c/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/02c1c913-eda8-475a-9d52-d68fe6bb183c/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'}
msal.application: Broker enabled? None
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.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 2d41cd3d-0983-4067-bfce-79832aa3733f
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01'
cli.azure.cli.core.util: Request method: 'PATCH'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util: 'User-Agent': 'python/3.12.8 (Linux-6.11.0-21-generic-x86_64-with-glibc2.39) AZURECLI/2.71.0 (DEB)'
cli.azure.cli.core.util: 'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util: 'Accept': '/'
cli.azure.cli.core.util: 'Connection': 'keep-alive'
cli.azure.cli.core.util: 'x-ms-client-request-id': 'df23edcb-b5d5-45fa-95fa-809c4289db84'
cli.azure.cli.core.util: 'Content-Type': 'application/json'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --min-nodes --max-nodes --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: 'Content-Length': '211'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: {"location": "Sweden Central", "properties": {"workloadProfiles": [{"workloadProfileType": "Consumption", "name": "Consumption"}, {"name": "Consumption-GPU-NC8as-T4", "maximumCount": "3", "minimumCount": "0"}]}}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "PATCH /subscriptions/d48e73d6-6ed3-4d83-83ee-1e34bffbc30b/resourceGroups/verticai-speech-rg/providers/Microsoft.App/managedEnvironments/speech-env?api-version=2024-03-01 HTTP/1.1" 400 148
cli.azure.cli.core.util: Response status: 400
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util: 'Cache-Control': 'no-cache'
cli.azure.cli.core.util: 'Pragma': 'no-cache'
cli.azure.cli.core.util: 'Content-Length': '148'
cli.azure.cli.core.util: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.util: 'Expires': '-1'
cli.azure.cli.core.util: 'x-ms-operation-identifier': 'tenantId=02c1c913-eda8-475a-9d52-d68fe6bb183c,objectId=c58d4740-9c50-44fb-822b-f23ec752abb1/westeurope/f34bc993-b41b-4bcb-9739-873dc8b58020'
cli.azure.cli.core.util: 'api-supported-versions': '2022-03-01, 2022-06-01-preview, 2022-10-01, 2022-11-01-preview, 2023-04-01-preview, 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01, 2025-02-02-preview'
cli.azure.cli.core.util: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.util: 'x-ms-ratelimit-remaining-subscription-resource-requests': '99'
cli.azure.cli.core.util: 'x-ms-request-id': '10ba53b6-e1e3-47ec-8f27-11f5b7f7f14b'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '10ba53b6-e1e3-47ec-8f27-11f5b7f7f14b'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'WESTEUROPE:20250410T154053Z:10ba53b6-e1e3-47ec-8f27-11f5b7f7f14b'
cli.azure.cli.core.util: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.util: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.util: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.util: 'X-MSEdge-Ref': 'Ref A: 90FBB566B547474EB6F4364CC778D840 Ref B: AMS231020512039 Ref C: 2025-04-10T15:40:53Z'
cli.azure.cli.core.util: 'Date': 'Thu, 10 Apr 2025 15:40:53 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"error":{"code":"WorkloadProfileInvalidNameTooLong","message":"Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters."}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/containerapp_env_decorator.py", line 388, in update
return self.client.update(cmd=self.cmd, resource_group_name=self.get_argument_resource_group_name(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/_clients.py", line 497, in update
r = send_raw_request(cmd.cli_ctx, "PATCH", request_url, body=json.dumps(managed_environment_envelope))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/util.py", line 1046, in send_raw_request
raise HTTPError(reason, r)
azure.cli.core.azclierror.HTTPError: Bad Request({"error":{"code":"WorkloadProfileInvalidNameTooLong","message":"Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters."}})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/custom.py", line 5042, in add_workload_profile
return update_managed_environment(cmd, env_name, resource_group_name, workload_profile_type=workload_profile_type, workload_profile_name=workload_profile_name, min_nodes=min_nodes, max_nodes=max_nodes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/custom.py", line 912, in update_managed_environment
r = containerapp_env_update_decorator.update()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/containerapp_env_decorator.py", line 391, in update
handle_raw_exception(e)
File "/opt/az/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/_client_factory.py", line 56, in handle_raw_exception
raise CLIInternalError('({}) {}'.format(code, message))
azure.cli.core.azclierror.CLIInternalError: (WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
cli.azure.cli.core.azclierror: (WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
az_command_data_logger: (WorkloadProfileInvalidNameTooLong) Workload profile name 'Consumption-GPU-NC8as-T4' must be less than 16 characters.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7ab5478f44a0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 2.460 seconds (init: 0.270, invoke: 2.190)
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 4158 in cache file under /home/tom/.azure/telemetry/20250410174053995
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.12/site-packages/azure/cli/telemetry/init.py /home/tom/.azure /home/tom/.azure/telemetry/20250410174053995"
telemetry.process: Return from creating process 331183
telemetry.main: Finish creating telemetry upload process.
Expected behavior
The command should successfully add the specified workload profile (Consumption-GPU-NC8as-T4) to the Container Apps Environment. This expectation is based on the profile name being explicitly listed as supported for the specified location (swedencentral) by the az containerapp env workload-profile list-supported command.
Environment Summary
❯ az version
{
"azure-cli": "2.71.0",
"azure-cli-core": "2.71.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"account": "0.2.5",
"azure-devops": "1.0.1",
"containerapp": "1.1.0b4",
"quota": "1.0.0"
}
}
~/repos/verticai-speech main ?7 ❯
Additional context
No response