Skip to content

Commit 813bdb0

Browse files
committed
Update samples to enable free-tier
1 parent 31b00f0 commit 813bdb0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

articles/cosmos-db/nosql/includes/create-resources.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This quickstart will create a single Azure Cosmos DB account using the API for N
3737
| 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. |
3838
| 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. |
3939
| 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/). |
4141

4242
> [!NOTE]
4343
> 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
9090
az cosmosdb create \
9191
--resource-group $resourceGroupName \
9292
--name $accountName \
93-
--locations regionName=$location
93+
--locations regionName=$location \
94+
--enable-free-tier true
9495
```
9596
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+
96100
1. Get the API for NoSQL endpoint *URI* for the account using the [``az cosmosdb show``](/cli/azure/cosmosdb#az-cosmosdb-show) command.
97101
98102
```azurecli-interactive
@@ -147,10 +151,14 @@ This quickstart will create a single Azure Cosmos DB account using the API for N
147151
ResourceGroupName = $RESOURCE_GROUP_NAME
148152
Name = $ACCOUNT_NAME
149153
Location = $LOCATION
154+
EnableFreeTier = true
150155
}
151156
New-AzCosmosDBAccount @parameters
152157
```
153158
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+
154162
1. Get the API for NoSQL endpoint *URI* for the account using the [``Get-AzCosmosDBAccount``](/powershell/module/az.cosmosdb/get-azcosmosdbaccount) cmdlet.
155163
156164
```azurepowershell-interactive

0 commit comments

Comments
 (0)