Skip to content

Commit bffef06

Browse files
committed
writer edits
1 parent d891f34 commit bffef06

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

articles/cognitive-services/cognitive-services-apis-create-account-cli.md

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ ms.devlang: azurecli
1616

1717
# Quickstart: Create a Cognitive Services resource using the Azure CLI
1818

19-
Use this quickstart to create a Cognitive Services resource using [Azure Command-Line Interface (CLI)](/cli/azure/install-azure-cli) commands. After creating the resource, use the keys and endpoint generated for you to authenticate your applications.
19+
Use this quickstart to create a Cognitive Services resource using [Azure Command-Line Interface (CLI)](/cli/azure/install-azure-cli) commands. After you create the resource, use the keys and endpoint generated for you to authenticate your applications.
2020

2121
Azure Cognitive Services are cloud-based artificial intelligence (AI) services that help developers build cognitive intelligence into applications without having direct AI or data science skills or knowledge. They are available through REST APIs and client library SDKs in popular development languages. Azure Cognitive Services enables developers to easily add cognitive features into their applications with cognitive solutions that can see, hear, speak, and analyze.
2222

23-
## Types of Cognitive Services resource
23+
## Types of Cognitive Services resources
2424

2525
[!INCLUDE [cognitive-services-subscription-types](../../includes/cognitive-services-subscription-types.md)]
2626

@@ -43,37 +43,31 @@ You can also use the green **Try It** button to run these commands in your brows
4343

4444
## Create a new Azure Cognitive Services resource group
4545

46-
Before creating a Cognitive Services resource, you must have an Azure resource group to contain the resource. When you create a new resource, you can either create a new resource group, or use an existing one. This article shows how to create a new resource group.
46+
Before you create a Cognitive Services resource, you must have an Azure resource group to contain the resource. When you create a new resource, you can either create a new resource group, or use an existing one. This article shows how to create a new resource group.
4747

4848
### Choose your resource group location
4949

5050
To create a resource, you'll need one of the Azure locations available for your subscription. You can retrieve a list of available locations with the [az account list-locations](/cli/azure/account#az-account-list-locations) command. Most Cognitive Services can be accessed from several locations. Choose the one closest to you, or see which locations are available for the service.
5151

5252
> [!IMPORTANT]
53-
> * Remember your Azure location, as you will need it when calling the Azure Cognitive Services.
53+
> * Remember your Azure location, as you will need it when calling the Azure Cognitive Services resources.
5454
> * The availability of some Cognitive Services can vary by region. For more information, see [Azure products by region](https://azure.microsoft.com/global-infrastructure/services/?products=cognitive-services).
5555
5656
```azurecli-interactive
57-
az account list-locations \
58-
--query "[].{Region:name}" \
59-
--out table
57+
az account list-locations --query "[].{Region:name}" --out table
6058
```
6159

62-
After you have your Azure location, create a new resource group in the Azure CLI using the [az group create](/cli/azure/group#az-group-create) command.
63-
64-
In the example below, replace the Azure location `westus2` with one of the Azure locations available for your subscription.
60+
After you have your Azure location, create a new resource group in the Azure CLI using the [az group create](/cli/azure/group#az-group-create) command. In the example below, replace the Azure location `westus2` with one of the Azure locations available for your subscription.
6561

6662
```azurecli-interactive
67-
az group create \
68-
--name cognitive-services-resource-group \
69-
--location westus2
63+
az group create --name cognitive-services-resource-group --location westus2
7064
```
7165

7266
## Create a Cognitive Services resource
7367

74-
### Choose a cognitive service and pricing tier
68+
### Choose a service and pricing tier
7569

76-
When creating a new resource, you'll need to know the "kind" of service you want to use, along with the [pricing tier](https://azure.microsoft.com/pricing/details/cognitive-services/) (or sku) you want. You'll use this and other information as parameters when creating the resource.
70+
When you create a new resource, you'll need to know the kind of service you want to use, along with the [pricing tier](https://azure.microsoft.com/pricing/details/cognitive-services/) (or SKU) you want. You'll use this and other information as parameters when you create the resource.
7771

7872
[!INCLUDE [cognitive-services-subscription-types](../../includes/cognitive-services-subscription-types.md)]
7973

@@ -88,18 +82,12 @@ az cognitiveservices account list-kinds
8882

8983
### Add a new resource to your resource group
9084

91-
To create and subscribe to a new Cognitive Services resource, use the [az cognitiveservices account create](/cli/azure/cognitiveservices/account#az-cognitiveservices-account-create) command. This command adds a new billable resource to the resource group created earlier. When creating your new resource, you'll need to know the "kind" of service you want to use, along with its pricing tier (or sku) and an Azure location:
85+
To create and subscribe to a new Cognitive Services resource, use the [az cognitiveservices account create](/cli/azure/cognitiveservices/account#az-cognitiveservices-account-create) command. This command adds a new billable resource to the resource group you created earlier. When you create your new resource, you'll need to know the "kind" of service you want to use, along with its pricing tier (or SKU) and an Azure location:
9286

9387
You can create an F0 (free) resource for Anomaly Detector, named `anomaly-detector-resource` with the command below.
9488

9589
```azurecli-interactive
96-
az cognitiveservices account create \
97-
--name anomaly-detector-resource \
98-
--resource-group cognitive-services-resource-group \
99-
--kind AnomalyDetector \
100-
--sku F0 \
101-
--location westus2 \
102-
--yes
90+
az cognitiveservices account create --name anomaly-detector-resource --resource-group cognitive-services-resource-group --kind AnomalyDetector --sku F0 --location westus2 --yes
10391
```
10492

10593
[!INCLUDE [Register Azure resource for subscription](./includes/register-resource-subscription.md)]
@@ -115,9 +103,7 @@ az login
115103
Use the [az cognitiveservices account keys list](/cli/azure/cognitiveservices/account/keys#az-cognitiveservices-account-keys-list) command to get the keys for your Cognitive Service resource.
116104

117105
```azurecli-interactive
118-
az cognitiveservices account keys list \
119-
--name anomaly-detector-resource \
120-
--resource-group cognitive-services-resource-group
106+
az cognitiveservices account keys list --name anomaly-detector-resource --resource-group cognitive-services-resource-group
121107
```
122108

123109
[!INCLUDE [cognitive-services-environment-variables](../../includes/cognitive-services-environment-variables.md)]
@@ -134,10 +120,7 @@ Pricing tiers (and the amount you get billed) are based on the number of transac
134120
Use the [az cognitiveservices account list-usage](/cli/azure/cognitiveservices/account#az-cognitiveservices-account-list-usage) command to get the usage for your Cognitive Service resource.
135121

136122
```azurecli-interactive
137-
az cognitiveservices account list-usage \
138-
--name anomaly-detector-resource \
139-
--resource-group cognitive-services-resource-group \
140-
--subscription subscription-name
123+
az cognitiveservices account list-usage --name anomaly-detector-resource --resource-group cognitive-services-resource-group --subscription subscription-name
141124
```
142125

143126
## Clean up resources

0 commit comments

Comments
 (0)