-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
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. |
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:
|
Can you remove the --min-nodes --max-nodes from command as it is not support in the Consumption workload profile |
Hi @ways Thanks for reporting this issue. We are investigating. |
That seems to be related, but I'm not sure yet. If I drop them, I get complaint on type:
Fine, lets try another type name for the GPU (from https://learn.microsoft.com/en-us/azure/container-apps/workload-profiles-overview):
Now it wants min, max again!
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. Thanks! |
Ok, thank you for the clarification. |
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:
Related command
az containerapp env workload-profile add
Errors
(WorkloadProfilePropertyNotSupported) Workload Profile property is not supported
Issue script & Debug output
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
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
The text was updated successfully, but these errors were encountered: