Describe the bug
Azure CLI Version:
$ az --version
azure-cli 2.49.0
API Docs:
https://learn.microsoft.com/en-us/cli/azure/cognitiveservices/account/deployment?view=azure-cli-latest#az-cognitiveservices-account-deployment-create
- Note the references to --capacity and --sku-capacity
The capacity and sku-capacity parameters do not properly work as expected with Azure CLI v2.49.0
Related command
az cognitiveservices account deployment create -
Errors
Command:
az cognitiveservices account deployment create --resource-group $AZURE_RESOURCE_GROUP_DEV --name $AOAI_INSTANCE_NAME_DEV --deployment-name $AOAI_DEPLOYMENT_NAME --model-format $AOAI_MODEL_FORMAT --model-name $AOAI_MODEL_NAME --model-version $AOAI_MODEL_VERSION --scale-type $AOAI_SCALE_TYPE --capacity 59
Error:
←[91munrecognized arguments: --capacity 59←[0m
Examples from AI knowledge base:
←[96mhttps://aka.ms/cli_ref←[0m
←[90mRead more about the command in reference docs←[0m
Command:
az cognitiveservices account deployment create --resource-group $AZURE_RESOURCE_GROUP_DEV --name $AOAI_INSTANCE_NAME_DEV --deployment-name $AOAI_DEPLOYMENT_NAME --model-format $AOAI_MODEL_FORMAT --model-name $AOAI_MODEL_NAME --model-version $AOAI_MODEL_VERSION --scale-type $AOAI_SCALE_TYPE --sku-capacity 59
Error:
←[91munrecognized arguments: --sku-capacity 59←[0m
Examples from AI knowledge base:
←[96mhttps://aka.ms/cli_ref←[0m
←[90mRead more about the command in reference docs←[0m
Issue script & Debug output
az cognitiveservices account deployment create --resource-group $AZURE_RESOURCE_GROUP_DEV --name $AOAI_INSTANCE_NAME_DEV --deployment-name $AOAI_DEPLOYMENT_NAME --model-format $AOAI_MODEL_FORMAT --model-name $AOAI_MODEL_NAME --model-version $AOAI_MODEL_VERSION --scale-type $AOAI_SCALE_TYPE --capacity 59
Expected behavior
This should work like it does in the portal UI
Environment Summary
azure-cli 2.49.0
Additional context
No response
Describe the bug
Azure CLI Version:
$ az --version
azure-cli 2.49.0
API Docs:
https://learn.microsoft.com/en-us/cli/azure/cognitiveservices/account/deployment?view=azure-cli-latest#az-cognitiveservices-account-deployment-create
The capacity and sku-capacity parameters do not properly work as expected with Azure CLI v2.49.0
Related command
az cognitiveservices account deployment create -
Errors
Command:
az cognitiveservices account deployment create --resource-group $AZURE_RESOURCE_GROUP_DEV --name $AOAI_INSTANCE_NAME_DEV --deployment-name $AOAI_DEPLOYMENT_NAME --model-format $AOAI_MODEL_FORMAT --model-name $AOAI_MODEL_NAME --model-version $AOAI_MODEL_VERSION --scale-type $AOAI_SCALE_TYPE --capacity 59
Error:
←[91munrecognized arguments: --capacity 59←[0m
Examples from AI knowledge base:
←[96mhttps://aka.ms/cli_ref←[0m
←[90mRead more about the command in reference docs←[0m
Command:
az cognitiveservices account deployment create --resource-group $AZURE_RESOURCE_GROUP_DEV --name $AOAI_INSTANCE_NAME_DEV --deployment-name $AOAI_DEPLOYMENT_NAME --model-format $AOAI_MODEL_FORMAT --model-name $AOAI_MODEL_NAME --model-version $AOAI_MODEL_VERSION --scale-type $AOAI_SCALE_TYPE --sku-capacity 59
Error:
←[91munrecognized arguments: --sku-capacity 59←[0m
Examples from AI knowledge base:
←[96mhttps://aka.ms/cli_ref←[0m
←[90mRead more about the command in reference docs←[0m
Issue script & Debug output
az cognitiveservices account deployment create --resource-group $AZURE_RESOURCE_GROUP_DEV --name $AOAI_INSTANCE_NAME_DEV --deployment-name $AOAI_DEPLOYMENT_NAME --model-format $AOAI_MODEL_FORMAT --model-name $AOAI_MODEL_NAME --model-version $AOAI_MODEL_VERSION --scale-type $AOAI_SCALE_TYPE --capacity 59
Expected behavior
This should work like it does in the portal UI
Environment Summary
azure-cli 2.49.0
Additional context
No response