Skip to content

Commit f06dac6

Browse files
authored
Merge pull request #106598 from pdebruin/docs-editor/create-resource-cli-1678803090
Adding - to -deployment-name
2 parents b5e4c8e + 9f835bf commit f06dac6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/cognitive-services/openai/includes/create-resource-cli.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.subservice: openai
99
ms.custom: devx-track-azurecli
1010
ms.topic: include
1111
ms.date: 6/30/2022
12-
keywords:
12+
keywords:
1313
---
1414

1515
## Prerequisites
@@ -44,8 +44,7 @@ az cognitiveservices account create \
4444
--kind OpenAI \
4545
--sku s0 \
4646
--subscription 00000000-0000-0000-0000-000000000000
47-
```
48-
47+
```
4948

5049
## Retrieve information from your resource
5150
Once your resource has been created, you can use the Azure CLI to find useful information about your service such as your REST API endpoint base URL and the access keys. Below are examples on how to do both. You can find the full [reference documentation here](/cli/azure/cognitiveservices/account?view=azure-cli-latest&preserve-view=true).
@@ -70,11 +69,12 @@ Once your resource has been created, you can use the Azure CLI to find useful in
7069

7170
To deploy a model, you can use the Azure CLI to run the following command to deploy an instance of text-curie-001. In this example, we deploy a model called MyModel. Make sure to update with your own values. You don't need to change the `model-version`, `model-format` or `scale-settings-scale-type` values. You can find the full [reference documentation here](/cli/azure/cognitiveservices/account/deployment?view=azure-cli-latest&preserve-view=true).
7271

72+
7373
```azurecli
7474
az cognitiveservices account deployment create \
7575
-g $myResourceGroupName \
7676
-n $myResourceName \
77-
-deployment-name MyModel \
77+
--deployment-name MyModel \
7878
--model-name text-curie-001 \
7979
--model-version "1" \
8080
--model-format OpenAI \
@@ -104,3 +104,4 @@ az cognitiveservices account delete \
104104
--name MyOpenAIResource \
105105
-g OAIResourceGroup
106106
```
107+

0 commit comments

Comments
 (0)