Azure / Azure/azure-cli

Azure CLI Bug | az cognitiveservices account deployment create

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

Description

### 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_

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.