Skip to content

Azure CLI Bug | az cognitiveservices account deployment create #27348

@bowman-david

Description

@bowman-david

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botCognitive Servicesaz cognitiveservicesService AttentionThis 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.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions