Azure / Azure/azure-cli

Missing flag/option in CLI vs Documentation for az ml model update

Open
#26,580 4 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign bug customer-reported Machine Learning Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

- [Documentation here suggests](https://learn.microsoft.com/en-us/cli/azure/ml/model?view=azure-cli-latest#az-ml-model-update) the existence of a flag/option `--registry-name` for `az ml model update`
- Running `az ml model update` with `--registry-name` instead of `--workspace-name` (as suggested by docs linked above) throws an error

```sh
unrecognized arguments: --registry-name
```

`` was blanked out by me for pasting this error here only

### Related command

`az ml model update`

### Errors

```sh
unrecognized arguments: --registry-name nml-registry-test
```

### Issue script & Debug output

```sh
cli.knack.cli: Command arguments: ['ml', 'model', 'update', '--name', XXXX', '--version', 'XXXX', '--resource-group', 'XXXX', '--registry-name', 'XXXX', '--set', 'description=XXXX', '--set', 'tags.BUILD_ID=XXXX', '--set', 'tags.CONFIG_INSTANCE_NAME=XXXX', '--set', 'tags.CONFIG_INSTANCE_MODEL_NAME=XXXX', '--set', 'tags.CONFIG_INSTANCE_MODEL_VERSION=XXXX', '--set', 'tags.ENV_LOG_LEVEL=XXXX', '--set', 'tags.ENV_NAME=XXXX', '--set', 'tags.FULL_SEMVER=XXXX', '--set', 'tags.REPO_NAME=XXXX', '--set', 'tags.SEMVER=XXXX', '--set', 'tags.SITE_NAME=XXXX', '--set', 'tags.SITE_TZ=XXXX', '--set', 'tags.ZONE_NAME=XXXX', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ]
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 3.903 20 138 C:\Users\XXXX\.azure\cliextensions\ml
cli.azure.cli.core: Total (1) 3.903 20 138
cli.azure.cli.core: Loaded 20 groups, 138 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : ml model update
cli.azure.cli.core: Command table: ml model update
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate []
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\XXXX\.azure\commands\2023-06-01.21-45-40.ml_model_update.19744.log'.
az_command_data_logger: command args: ml model update --name {} --version {} --resource-group {} --registry-name {} --set {} --set {} --set {} --set {} --set {} --set {} --set {} --set {} --set {} --set {} --set {} --set {} --set {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x03B43658>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x03B53580>, .add_cache_arguments at 0x03B53778>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.azure.cli.core.command_recommender: "--registry-name" is an invalid parameter for command "ml model update".
urllib3.connectionpool: Starting new HTTPS connection (1): app.aladdin.microsoft.com:443
urllib3.connectionpool: https://app.aladdin.microsoft.com:443 "GET /api/v1.0/suggestions?query=%7B%22command%22%3A+%22ml+model+update%22%2C+%22parameters%22%3A+%22%22%7D&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.49.0%22%2C+%22errorType%22%3A+%22UnrecognizedArguments%22%2C+%22correlationId%22%3A+%22e10fe0bb-4cad-42b8-abfc-791ee86621a8%22%2C+%22subscriptionIdXXXX+%22eventIdXXXX HTTP/1.1" 200 None
cli.azure.cli.core.command_recommender: "--registry-name" is an invalid parameter for command "ml model update".
cli.azure.cli.core.azclierror: NoneType: None
```

### Expected behavior

- I can use `--registry-name` instead of `--workspace-name`

### Environment Summary

```sh
$ az --version
azure-cli 2.49.0

core 2.49.0
telemetry 1.0.8

Extensions:
azure-devops 0.26.0
k8s-extension 1.4.1
ml 2.17.2

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\xxxxxxx\.azure\cliextensions'

Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.
```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.