-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botMachine Learningaz mlaz mlService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Upgradeaz upgradeaz upgradebugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Description
Describe the bug
Missing required positional argument: 'name' when trying to regenerate-keys for ml serverless-endpoint even when --name or -n is supplied. Tried name with and without "'". Does not work for primary or secondary key-type.
Related command
az ml serverless-endpoint regenerate-keys --name "meta-llama-3-3-70b-instruct" --resource-group rg_ai --workspace-name project-ai --key-type primary --debug
Errors
cli.azure.cli.core.azclierror: Met error <class 'TypeError'>:ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
Please check log by running the command with '--debug' for more details.
az_command_data_logger: Met error <class 'TypeError'>:ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
Please check log by running the command with '--debug' for more details
Issue script & Debug output
cli.knack.cli: Command arguments: ['ml', 'serverless-endpoint', 'regenerate-keys', '--name', 'meta-llama-3-3-70b-instruct', '--resource-group', 'rg_ai', '--workspace-name', 'project-ai', '--key-type', 'primary', '--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 0x10139f240>, <function OutputProducer.on_global_arguments at 0x10155be20>, <function CLIQuery.on_global_arguments at 0x10159d620>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'ml': ['azext_mlv2']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
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
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
azext_mlv2.manual.vendored_curated_sdk.azure.ai.ml._azure_environments: Using the default cloud configuration: 'AzureCloud'.
cli.azure.cli.core: ml 1.378 24 161 /Users/martin/.azure/cliextensions/ml
cli.azure.cli.core: Total (1) 1.378 24 161
cli.azure.cli.core: Loaded 24 groups, 161 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : ml serverless-endpoint regenerate-keys
cli.azure.cli.core: Command table: ml serverless-endpoint regenerate-keys
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x102c72340>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/martin/.azure/commands/2025-01-14.16-49-54.ml_serverless-endpoint_regenerate-keys.24618.log'.
az_command_data_logger: command args: ml serverless-endpoint regenerate-keys --name {} --resource-group {} --workspace-name {} --key-type {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x102ca7ec0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x102ce2200>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x102ce2340>, <function register_upcoming_breaking_change_info.<locals>.update_breaking_change_info at 0x102ce23e0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x10155bec0>, <function CLIQuery.handle_query_parameter at 0x10159d6c0>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x102ce22a0>]
az_command_data_logger: extension name: ml
az_command_data_logger: extension version: 2.33.1
Command group 'ml serverless-endpoint' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=AzureMachineLearningWorkspaces
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/martin/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/martin/.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/removed-this
msal.authority: openid_config("https://login.microsoftonline.com/removed-this/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/removed-this/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/removed-this/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/removed-this/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/removed-this/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/removed-this/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/removed-this/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/removed-this/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.commands.client_factory: Getting management service client client_type=_ml_client_cli
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/removed-this
msal.authority: openid_config("https://login.microsoftonline.com/removed-this/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/removed-this/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/removed-this/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/removed-this/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/removed-this/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/removed-this/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/removed-this/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/removed-this/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
Method serverless_endpoints: This is an experimental method, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.
Method begin_regenerate_keys: This is an experimental method, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.
Method get_keys: This is an experimental method, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.azure.com/.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.azure.com/.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: removed-this
azure.core.pipeline.policies._universal: Request URL: 'https://management.azure.com/subscriptions/removed-this/resourceGroups/company-id_ai/providers/Microsoft.MachineLearningServices/workspaces/project-company-idgpt4service/serverlessEndpoints/meta-llama-3-3-70b-instruct/listKeys?api-version=2024-01-01-preview'
Request method: 'POST'
Request headers:
'Accept': 'application/json'
'x-ms-client-request-id': '31b70e92-d28f-11ef-a8bc-eef7c59aa201'
'User-Agent': 'azureml-cli-v2/2.33.1 azure-ai-ml/1.23.1 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.12.8 (macOS-15.2-arm64-arm-64bit)'
'Authorization': 'Bearer removed-this'
Request body:
This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/removed-this/resourceGroups/company-id_ai/providers/Microsoft.MachineLearningServices/workspaces/project-company-idgpt4service/serverlessEndpoints/meta-llama-3-3-70b-instruct/listKeys?api-version=2024-01-01-preview HTTP/1.1" 200 108
azure.core.pipeline.policies._universal: Response status: '200'
Response headers:
'Cache-Control': 'no-cache'
'Pragma': 'no-cache'
'Content-Length': '108'
'Content-Type': 'application/json; charset=utf-8'
'Expires': '-1'
'x-ms-ratelimit-remaining-subscription-writes': '199'
'Request-Context': 'appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d'
'x-ms-response-type': 'standard'
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
'X-Content-Type-Options': 'nosniff'
'x-aml-cluster': 'vienna-eastus2-01'
'x-request-time': '0.147'
'x-ms-ratelimit-remaining-subscription-global-writes': '2999'
'x-ms-request-id': '51219fdc-62c7-480f-b28a-ae82074342e0'
'x-ms-correlation-request-id': '51219fdc-62c7-480f-b28a-ae82074342e0'
'x-ms-routing-request-id': 'GERMANYWESTCENTRAL:20250114T154955Z:51219fdc-62c7-480f-b28a-ae82074342e0'
'X-Cache': 'CONFIG_NOCACHE'
'X-MSEdge-Ref': 'Ref A: C6BF55A82DB245949E45D78E8F9B0F38 Ref B: VIEEDGE1206 Ref C: 2025-01-14T15:49:54Z'
'Date': 'Tue, 14 Jan 2025 15:49:55 GMT'
Response content:
{
"primaryKey": "removed this",
"secondaryKey": "removed this too"
}
ActivityCompleted: Activity=ServerlessEndpoint.BeginRegenerateKeys, HowEnded=Failure, Duration=1164.5 [ms], Exception=TypeError, ErrorCategory=Unknown, ErrorMessage=Got error TypeError: 'ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'' while calling ServerlessEndpoint.BeginRegenerateKeys
Traceback (most recent call last):
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/custom/serverless_endpoint.py", line 156, in ml_serverless_endpoint_regenerate_keys
keys = ml_client.serverless_endpoints.begin_regenerate_keys(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_utils/_experimental.py", line 100, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_telemetry/activity.py", line 292, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_serverless_endpoint_operations.py", line 198, in begin_regenerate_keys
return self._service_client.begin_regenerate_keys(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 94, in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
TypeError: ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
cli: None
cli: Traceback (most recent call last):
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/custom/serverless_endpoint.py", line 156, in ml_serverless_endpoint_regenerate_keys
keys = ml_client.serverless_endpoints.begin_regenerate_keys(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_utils/_experimental.py", line 100, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_telemetry/activity.py", line 292, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_serverless_endpoint_operations.py", line 198, in begin_regenerate_keys
return self._service_client.begin_regenerate_keys(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 94, in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
TypeError: ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/custom/serverless_endpoint.py", line 156, in ml_serverless_endpoint_regenerate_keys
keys = ml_client.serverless_endpoints.begin_regenerate_keys(name=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_utils/_experimental.py", line 100, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/_telemetry/activity.py", line 292, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/vendored_curated_sdk/azure/ai/ml/operations/_serverless_endpoint_operations.py", line 198, in begin_regenerate_keys
return self._service_client.begin_regenerate_keys(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 94, in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
TypeError: ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 666, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/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/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 703, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 336, in __call__
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/custom/serverless_endpoint.py", line 161, in ml_serverless_endpoint_regenerate_keys
log_and_raise_error(err, debug)
File "/Users/martin/.azure/cliextensions/ml/azext_mlv2/manual/custom/raise_error.py", line 185, in log_and_raise_error
raise cli_error
knack.util.CLIError: Met error <class 'TypeError'>:ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
Please check log by running the command with '--debug' for more details.
cli.azure.cli.core.azclierror: Met error <class 'TypeError'>:ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
Please check log by running the command with '--debug' for more details.
az_command_data_logger: Met error <class 'TypeError'>:ServerlessEndpointsOperations.begin_regenerate_keys() missing 1 required positional argument: 'name'
Please check log by running the command with '--debug' for more details.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x102c725c0>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 2.796 seconds (init: 0.117, invoke: 2.679)
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 4186 in cache file under /Users/martin/.azure/telemetry/20250114164955526
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/bin/python /opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/lib/python3.12/site-packages/azure/cli/telemetry/__init__.py /Users/martin/.azure /Users/martin/.azure/telemetry/20250114164955526"
telemetry.process: Return from creating process 24629
telemetry.main: Finish creating telemetry upload process.
Expected behavior
I expect my keys to get rotated
Environment Summary
az --version
azure-cli 2.67.0 *
core 2.67.0 *
telemetry 1.1.0
Extensions:
ml 2.33.1
Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.67.0_1/libexec/bin/python'
Extensions directory '/Users/martin/.azure/cliextensions'
Python (Darwin) 3.12.8 (main, Dec 3 2024, 18:42:41) [Clang 16.0.0 (clang-1600.0.26.4)]
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
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botMachine Learningaz mlaz mlService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Upgradeaz upgradeaz upgradebugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.