You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/cognitive-services-apis-create-account-cli.md
+13-30Lines changed: 13 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,11 @@ ms.devlang: azurecli
16
16
17
17
# Quickstart: Create a Cognitive Services resource using the Azure CLI
18
18
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.
20
20
21
21
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.
@@ -43,37 +43,31 @@ You can also use the green **Try It** button to run these commands in your brows
43
43
44
44
## Create a new Azure Cognitive Services resource group
45
45
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.
47
47
48
48
### Choose your resource group location
49
49
50
50
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.
51
51
52
52
> [!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.
54
54
> * 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).
55
55
56
56
```azurecli-interactive
57
-
az account list-locations \
58
-
--query "[].{Region:name}" \
59
-
--out table
57
+
az account list-locations --query "[].{Region:name}" --out table
60
58
```
61
59
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.
65
61
66
62
```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
70
64
```
71
65
72
66
## Create a Cognitive Services resource
73
67
74
-
### Choose a cognitive service and pricing tier
68
+
### Choose a service and pricing tier
75
69
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.
@@ -88,18 +82,12 @@ az cognitiveservices account list-kinds
88
82
89
83
### Add a new resource to your resource group
90
84
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:
92
86
93
87
You can create an F0 (free) resource for Anomaly Detector, named `anomaly-detector-resource` with the command below.
[!INCLUDE [Register Azure resource for subscription](./includes/register-resource-subscription.md)]
@@ -115,9 +103,7 @@ az login
115
103
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.
@@ -134,10 +120,7 @@ Pricing tiers (and the amount you get billed) are based on the number of transac
134
120
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.
0 commit comments