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/cosmos-db/nosql/includes/create-resources.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ This quickstart will create a single Azure Cosmos DB account using the API for N
37
37
| Account Name | A unique name | Enter a name to identify your Azure Cosmos account. The name will be used as part of a fully qualified domain name (FQDN) with a suffix of *documents.azure.com*, so the name must be globally unique. The name can only contain lowercase letters, numbers, and the hyphen (-) character. The name must also be between 3-44 characters in length. |
38
38
| Location | The region closest to your users | Select a geographic location to host your Azure Cosmos DB account. Use the location that is closest to your users to give them the fastest access to the data. |
39
39
| Capacity mode |Provisioned throughput or Serverless|Select **Provisioned throughput** to create an account in [provisioned throughput](../../set-throughput.md) mode. Select **Serverless** to create an account in [serverless](../../serverless.md) mode. |
40
-
| Apply Azure Cosmos DB free tier discount |**Apply** or **Do not apply**|With Azure Cosmos DB free tier, you'll get the first 1000 RU/s and 25 GB of storage for free in an account. Learn more about [free tier](https://azure.microsoft.com/pricing/details/cosmos-db/). |
40
+
| Apply Azure Cosmos DB free tier discount |**Apply** or **Do not apply**| Enable Azure Cosmos DB free tier. With Azure Cosmos DB free tier, you'll get the first 1000 RU/s and 25 GB of storage for free in an account. Learn more about [free tier](https://azure.microsoft.com/pricing/details/cosmos-db/). |
41
41
42
42
> [!NOTE]
43
43
> You can have up to one free tier Azure Cosmos DB account per Azure subscription and must opt-in when creating the account. If you do not see the option to apply the free tier discount, this means another account in the subscription has already been enabled with free tier.
@@ -90,9 +90,13 @@ This quickstart will create a single Azure Cosmos DB account using the API for N
90
90
az cosmosdb create \
91
91
--resource-group $resourceGroupName \
92
92
--name $accountName \
93
-
--locations regionName=$location
93
+
--locations regionName=$location \
94
+
--enable-free-tier true
94
95
```
95
96
97
+
> [!NOTE]
98
+
> You can have up to one free tier Azure Cosmos DB account per Azure subscription and must opt-in when creating the account. If you do not see the option to apply the free tier discount, this means another account in the subscription has already been enabled with free tier. To find other free-tier enabled accounts, see [find an existing Azure Cosmos DB free-tier account in a subscription](../../scripts/cli/common/free-tier.md#run-the-script).
99
+
96
100
1. Get the API for NoSQL endpoint *URI* for the account using the [``az cosmosdb show``](/cli/azure/cosmosdb#az-cosmosdb-show) command.
97
101
98
102
```azurecli-interactive
@@ -147,10 +151,14 @@ This quickstart will create a single Azure Cosmos DB account using the API for N
147
151
ResourceGroupName = $RESOURCE_GROUP_NAME
148
152
Name = $ACCOUNT_NAME
149
153
Location = $LOCATION
154
+
EnableFreeTier = true
150
155
}
151
156
New-AzCosmosDBAccount @parameters
152
157
```
153
158
159
+
> [!NOTE]
160
+
> You can have up to one free tier Azure Cosmos DB account per Azure subscription and must opt-in when creating the account. If you do not see the option to apply the free tier discount, this means another account in the subscription has already been enabled with free tier.
161
+
154
162
1. Get the API for NoSQL endpoint *URI* for the account using the [``Get-AzCosmosDBAccount``](/powershell/module/az.cosmosdb/get-azcosmosdbaccount) cmdlet.
0 commit comments