Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Workload Profile property is not supported #30526

Open
ways opened this issue Dec 16, 2024 · 8 comments
Open

Workload Profile property is not supported #30526

ways opened this issue Dec 16, 2024 · 8 comments
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.

Comments

@ways
Copy link

ways commented Dec 16, 2024

Describe the bug

Hi

I'm attempting to set up an environment via CLI for running GPU container app jobs. I can create a workload-profile for my environment in the portal, but not via CLI.

How I've tested:

  • Create an app environment
  • Create a workload-profile via portal.
  • List out profiles via cli:
> az containerapp env workload-profile list --resource-group rg-aifs-test-gpu -n gpu-env
[
  {
    "id": "/subscriptions/****/resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env/workloadProfileStates/Consumption",
    "name": "Consumption",
    "properties": {
      "name": "Consumption",
      "workloadProfileType": "Consumption"
    },
    "resourceGroup": "rg-aifs-test-gpu",
    "type": "Consumption"
  },
  {
    "id": "/subscriptions/****/resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env/workloadProfileStates/test",
    "name": "test",
    "properties": {
      "name": "test",
      "workloadProfileType": "Consumption-GPU-NC8as-T4"
    },
    "resourceGroup": "rg-aifs-test-gpu",
    "type": "Consumption_GPU_NC8as_T4"
  }
]
  • Remove that profile via portal
  • Add profile via CLI:
> az containerapp env workload-profile add --name gpu-env --resource-group rg-aifs-test-gpu --workload-profile-name gpu-wlp --workload-profile-type Consumption-GPU-NC8as-T4 --min-nodes 1 --max-nodes 10
(WorkloadProfilePropertyNotSupported) Workload Profile property is not supported

Related command

az containerapp env workload-profile add

Errors

(WorkloadProfilePropertyNotSupported) Workload Profile property is not supported

Issue script & Debug output

az containerapp env workload-profile add --name gpu-env --resource-group rg-aifs-test-gpu --workload-profile-name test --workload-profile-type Consumption-GPU-NC8as-T4 --min-nodes 1 --max-nodes 10 --debug
cli.knack.cli: Command arguments: ['containerapp', 'env', 'workload-profile', 'add', '--name', 'gpu-env', '--resource-group', 'rg-aifs-test-gpu', '--workload-profile-name', 'test', '--workload-profile-type', 'Consumption-GPU-NC8as-T4', '--min-nodes', '1', '--max-nodes', '10', '--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 0x7ac97050c040>, <function OutputProducer.on_global_arguments at 0x7ac9704b6200>, <function CLIQuery.on_global_arguments at 0x7ac9704f3ce0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for '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.127 37 123
cli.azure.cli.core: serviceconnector 0.011 20 309
cli.azure.cli.core: Total (2) 0.138 57 432
cli.azure.cli.core: Loaded 56 groups, 432 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 0x7ac96f6bdda0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home//.azure/commands/2024-12-16.17-00-53.containerapp_env_workload-profile_add.53959.log'.
az_command_data_logger: command args: containerapp env workload-profile add --name {} --resource-group {} --workload-profile-name {} --workload-profile-type {} --min-nodes {} --max-nodes {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7ac96f6f8540>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7ac96f712480>, <function register_cache_arguments..add_cache_arguments at 0x7ac96f7125c0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x7ac96f712660>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7ac9704b62a0>, <function CLIQuery.handle_query_parameter at 0x7ac9704f3d80>, <function register_ids_argument..parse_ids_arguments at 0x7ac96f712520>]
cli.azure.cli.core.util: Found subscription ID in the URL https://management.azure.com/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription
cli.azure.cli.core.auth.persistence: build_persistence: location='/home//.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /home//.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/26fd436d-52bd-4086-a003-46d313ced959
msal.authority: openid_config("https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/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/26fd436d-52bd-4086-a003-46d313ced959/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/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/26fd436d-52bd-4086-a003-46d313ced959/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.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: b542fe5c-c66c-43e2-b463-f66179efd48f
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-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.11.8 (Linux-6.8.0-49-generic-x86_64-with-glibc2.39) AZURECLI/2.64.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': '6bfc35df-0097-4094-920f-6b2dc1226bc1'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --workload-profile-type --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//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env?api-version=2024-03-01 HTTP/1.1" 200 1605
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': '1605'
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'
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': '0490a7b0-7aa0-44b1-a4e5-823de0c7c78c'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '0490a7b0-7aa0-44b1-a4e5-823de0c7c78c'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'POLANDCENTRAL:20241216T160054Z:0490a7b0-7aa0-44b1-a4e5-823de0c7c78c'
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: 5CEBAE1A8EAD4C5892CEFEDFB43C36C5 Ref B: VIEEDGE3107 Ref C: 2024-12-16T16:00:53Z'
cli.azure.cli.core.util: 'Date': 'Mon, 16 Dec 2024 16:00:54 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"id":"/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env","name":"gpu-env","type":"Microsoft.App/managedEnvironments","location":"Australia East","systemData":{"createdBy":"@","createdByType":"User","createdAt":"2024-12-16T15:34:03.1629082","lastModifiedBy":"@","lastModifiedByType":"User","lastModifiedAt":"2024-12-16T15:49:15.5283509"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"mangohill-e5b2e20a.australiaeast.azurecontainerapps.io","staticIp":"4.200.98.7","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.15.1"},"daprConfiguration":{"version":"1.12.5"},"eventStreamEndpoint":"https://australiaeast.azurecontainerapps.dev/subscriptions//resourceGroups/rg-aifs-test-gpu/managedEnvironments/gpu-env/eventstream","customDomainConfiguration":{"customDomainVerificationId":"","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 in the URL https://management.azure.com/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription
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/26fd436d-52bd-4086-a003-46d313ced959
msal.authority: openid_config("https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/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/26fd436d-52bd-4086-a003-46d313ced959/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/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/26fd436d-52bd-4086-a003-46d313ced959/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.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: cd0d79e5-89c2-4b7d-89b6-45a5b60cf124
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-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.11.8 (Linux-6.8.0-49-generic-x86_64-with-glibc2.39) AZURECLI/2.64.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': 'b9516cd8-4b66-429c-8e33-2fd1c9d6eca5'
cli.azure.cli.core.util: 'CommandName': 'containerapp env workload-profile add'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --workload-profile-name --workload-profile-type --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//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env?api-version=2024-03-01 HTTP/1.1" 200 1605
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': '1605'
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'
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': '60e20ad3-9dbc-4fc7-978a-c14df1ad7038'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '60e20ad3-9dbc-4fc7-978a-c14df1ad7038'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'SWITZERLANDWEST:20241216T160056Z:60e20ad3-9dbc-4fc7-978a-c14df1ad7038'
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: 3B135E2C8F6043EBADF53C6F6EC61DB7 Ref B: VIEEDGE1516 Ref C: 2024-12-16T16:00:55Z'
cli.azure.cli.core.util: 'Date': 'Mon, 16 Dec 2024 16:00:56 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"id":"/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env","name":"gpu-env","type":"Microsoft.App/managedEnvironments","location":"Australia East","systemData":{"createdBy":"@","createdByType":"User","createdAt":"2024-12-16T15:34:03.1629082","lastModifiedBy":"@","lastModifiedByType":"User","lastModifiedAt":"2024-12-16T15:49:15.5283509"},"properties":{"provisioningState":"Succeeded","daprAIInstrumentationKey":null,"daprAIConnectionString":null,"vnetConfiguration":null,"defaultDomain":"mangohill-e5b2e20a.australiaeast.azurecontainerapps.io","staticIp":"4.200.98.7","appLogsConfiguration":{"destination":"log-analytics","logAnalyticsConfiguration":{"customerId":"","sharedKey":null}},"zoneRedundant":false,"kedaConfiguration":{"version":"2.15.1"},"daprConfiguration":{"version":"1.12.5"},"eventStreamEndpoint":"https://australiaeast.azurecontainerapps.dev/subscriptions//resourceGroups/rg-aifs-test-gpu/managedEnvironments/gpu-env/eventstream","customDomainConfiguration":{"customDomainVerificationId":"","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 in the URL https://management.azure.com/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription
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/26fd436d-52bd-4086-a003-46d313ced959
msal.authority: openid_config("https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/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/26fd436d-52bd-4086-a003-46d313ced959/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/26fd436d-52bd-4086-a003-46d313ced959/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/26fd436d-52bd-4086-a003-46d313ced959/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.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 433f5408-ee25-405e-acde-0f71e0928edf
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-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.11.8 (Linux-6.8.0-49-generic-x86_64-with-glibc2.39) AZURECLI/2.64.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': '5fe96e56-678d-47ce-bd2c-f094b9c647cd'
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 --workload-profile-type --min-nodes --max-nodes --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: 'Content-Length': '243'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: {"location": "Australia East", "properties": {"workloadProfiles": [{"workloadProfileType": "Consumption", "name": "Consumption"}, {"name": "test", "workloadProfileType": "CONSUMPTION-GPU-NC8AS-T4", "maximumCount": "10", "minimumCount": "1"}]}}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "PATCH /subscriptions//resourceGroups/rg-aifs-test-gpu/providers/Microsoft.App/managedEnvironments/gpu-env?api-version=2024-03-01 HTTP/1.1" 400 111
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': '111'
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-ratelimit-remaining-subscription-resource-requests': '99'
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'
cli.azure.cli.core.util: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.util: 'x-ms-request-id': '4b278bdb-d307-4e04-9aaa-862054f8caac'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '4b278bdb-d307-4e04-9aaa-862054f8caac'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'SWITZERLANDWEST:20241216T160100Z:4b278bdb-d307-4e04-9aaa-862054f8caac'
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: 71080EDBCE4049BE8E6B3EF498F6F255 Ref B: VIEEDGE2115 Ref C: 2024-12-16T16:00:56Z'
cli.azure.cli.core.util: 'Date': 'Mon, 16 Dec 2024 16:00:59 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"error":{"code":"WorkloadProfilePropertyNotSupported","message":"Workload Profile property is not supported"}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/containerapp/containerapp_env_decorator.py", line 377, in update
return self.client.update(cmd=self.cmd, resource_group_name=self.get_argument_resource_group_name(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/containerapp/_clients.py", line 491, in update
r = send_raw_request(cmd.cli_ctx, "PATCH", request_url, body=json.dumps(managed_environment_envelope))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/util.py", line 1007, in send_raw_request
raise HTTPError(reason, r)
azure.cli.core.azclierror.HTTPError: Bad Request({"error":{"code":"WorkloadProfilePropertyNotSupported","message":"Workload Profile property is not supported"}})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 733, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/containerapp/custom.py", line 5043, 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.11/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.11/site-packages/azure/cli/command_modules/containerapp/containerapp_env_decorator.py", line 380, in update
handle_raw_exception(e)
File "/opt/az/lib/python3.11/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: (WorkloadProfilePropertyNotSupported) Workload Profile property is not supported

cli.azure.cli.core.azclierror: (WorkloadProfilePropertyNotSupported) Workload Profile property is not supported
az_command_data_logger: (WorkloadProfilePropertyNotSupported) Workload Profile property is not supported
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7ac96f6be020>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 7.047 seconds (init: 0.071, invoke: 6.976)
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 4015 in cache file under /home//.azure/telemetry/20241216170100092
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.11/site-packages/azure/cli/telemetry/init.py /home//.azure /home//.azure/telemetry/20241216170100092"
telemetry.process: Return from creating process 54034
telemetry.main: Finish creating telemetry upload process.

Expected behavior

A workload-profile with GPUs to be added.

Environment Summary

az --version
azure-cli 2.64.0 *

core 2.64.0 *
telemetry 1.1.0

Dependencies:
msal 1.30.0
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Extensions directory '/home/larsfp/.azure/cliextensions'

Python (Linux) 3.11.8 (main, Aug 28 2024, 05:45:18) [GCC 11.4.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'

Additional context

No response

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

Hi @ways,

2.64.0 is not the latest Azure CLI(2.67.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Dec 16, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 16, 2024

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

@ways
Copy link
Author

ways commented Dec 16, 2024

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

Will you even though the bot closed it? I've installed via ubuntu repo, so I can't upgrade before a new version appears there:

dpkg -l|grep azure
ii azure-cli 2.64.0-1~jammy amd64 Azure CLI

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Upgrade az upgrade labels Dec 16, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that ContainerApp Service Attention This issue is responsible by Azure service team. labels Dec 16, 2024
@yonzhan yonzhan removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Azure CLI Team The command of the issue is owned by Azure CLI team labels Dec 16, 2024
@yonzhan yonzhan removed the Upgrade az upgrade label Dec 16, 2024
@howang-ms
Copy link

Can you remove the --min-nodes --max-nodes from command as it is not support in the Consumption workload profile

@Greedygre
Copy link
Contributor

Hi @ways

Thanks for reporting this issue. We are investigating.

@ways
Copy link
Author

ways commented Dec 30, 2024

Can you remove the --min-nodes --max-nodes from command as it is not support in the Consumption workload profile

That seems to be related, but I'm not sure yet. If I drop them, I get complaint on type:

az containerapp env workload-profile add --name gpu-env --resource-group rg-aifs-test-gpu --workload-profile-name gpu-wlp --workload-profile-type Consumption-GPU-NC8as-T4
(WorkloadProfileInvalidType) Workload profile type 'CONSUMPTION_GPU_NC8AS_T4' is invalid.

Fine, lets try another type name for the GPU (from https://learn.microsoft.com/en-us/azure/container-apps/workload-profiles-overview):

az containerapp env workload-profile add --name gpu-env --resource-group rg-aifs-test-gpu --workload-profile-name gpu-wlp --workload-profile-type Consumption_GPU
(WorkloadProfileMinimumCountInvalid) Minimum count for workload profile type 'CONSUMPTION_GPU' cannot be negative or null.

Now it wants min, max again!

az containerapp env workload-profile add --name gpu-env --resource-group rg-aifs-test-gpu --workload-profile-name gpu-wlp --workload-profile-type Consumption_GPU --min-nodes 1 --max-nodes 2
(WorkloadProfileInvalidType) Workload profile type 'CONSUMPTION_GPU' is invalid.

Now the type name is wrong. I'm going in circles. =)

Is my problem the type name?

@Greedygre
Copy link
Contributor

Now the type name is wrong. I'm going in circles. =)

Is my problem the type name?

Hi @ways

This is a known issue in Backend. We have fixed it and it has not been deployed yet.
For the workaround, please use Portal to create workload profile.

Thanks!

@ways
Copy link
Author

ways commented Dec 30, 2024

Now the type name is wrong. I'm going in circles. =)
Is my problem the type name?

Hi @ways

This is a known issue in Backend. We have fixed it and it has not been deployed yet. For the workaround, please use Portal to create workload profile.

Thanks!

Ok, thank you for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants