-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Azure CLI Bug | az cognitiveservices account deployment create #27348
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botCognitive Servicesaz cognitiveservicesaz cognitiveservicesService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis 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.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botCognitive Servicesaz cognitiveservicesaz cognitiveservicesService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis 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.
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