Skip to content

Commit 9f822d8

Browse files
committed
update
1 parent 8c74a4e commit 9f822d8

File tree

1 file changed

+37
-0
lines changed
  • articles/ai-services/openai/how-to

1 file changed

+37
-0
lines changed

articles/ai-services/openai/how-to/quota.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,43 @@ curl -X PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-0
149149
> [!NOTE]
150150
> There are multiple ways to generate an authorization token. The easiest method for initial testing is to launch the Cloud Shell from the [Azure portal](https://portal.azure.com). Then run [`az account get-access-token`](/cli/azure/account?view=azure-cli-latest#az-account-get-access-token&preserve-view=true). You can use this token as your temporary authorization token for API testing.
151151
152+
# [Azure CLI](#tab/cli)
153+
154+
Install the [Azure CLI](/cli/azure/install-azure-cli). Quota requires `Azure CLI version 2.51.0`. If you already have Azure CLI installed locally run `az upgrade` to update to the latest version.
155+
156+
To check which version of Azure CLI you are running use `az version`. Azure Cloud Shell is currently still running 2.50.0 so in the interim local installation of Azure CLI is required to take advantage of the latest Azure OpenAI features.
157+
158+
### Deployment
159+
160+
```azurecli
161+
az cognitiveservices account deployment create --model-format
162+
--model-name
163+
--model-version
164+
--name
165+
--resource-group
166+
[--capacity]
167+
[--deployment-name]
168+
[--scale-capacity]
169+
[--scale-settings-scale-type {Manual, Standard}]
170+
[--sku]
171+
```
172+
173+
To sign into your local installation of the CLI, run the [az login](/cli/azure/reference-index#az-login) command:
174+
175+
```azurecli
176+
az login
177+
```
178+
179+
<!--TODO:You can also use the green **Try It** button to run these commands in your browser in the Azure Cloud Shell.-->
180+
181+
By setting sku-capacity to 10 in the command below this deployment will be set with a 10K TPM limit.
182+
183+
```azurecli
184+
az cognitiveservices account deployment create -g test-resource-group -n test-resource-name --deployment-name test-deployment-name --model-name gpt-35-turbo --model-version "0613" --model-format OpenAI --sku-capacity 10 --sku-name "Standard"
185+
```
186+
187+
For more details, consult the [full Azure CLI reference documentation](https://learn.microsoft.com/en-us]/cli/azure/cognitiveservices/account/deployment?view=azure-cli-latest)
188+
152189
# [Azure Resource Manager](#tab/arm)
153190

154191
```json

0 commit comments

Comments
 (0)