Skip to content

Commit 479a6d1

Browse files
authored
Merge pull request #1875 from seesharprun/nosql-samples-landing-pages
Cosmos DB | Create NoSQL script sample landing pages
2 parents 5a42dd4 + d03c115 commit 479a6d1

6 files changed

Lines changed: 108 additions & 104 deletions

File tree

articles/cosmos-db/.openpublishing.redirection.cosmos-db.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,16 @@
450450
"redirect_url": "/azure/cosmos-db/create-sql-api-dotnet",
451451
"redirect_document_id": true
452452
},
453+
{
454+
"source_path_from_root": "/articles/cosmos-db/nosql/cli-samples.md",
455+
"redirect_url": "/azure/cosmos-db/nosql/samples-cli",
456+
"redirect_document_id": true
457+
},
458+
{
459+
"source_path_from_root": "/articles/cosmos-db/nosql/powershell-samples.md",
460+
"redirect_url": "/azure/cosmos-db/nosql/samples-powershell",
461+
"redirect_document_id": true
462+
},
453463
{
454464
"source_path_from_root": "/articles/cosmos-db/create-sql-api-dotnet-preview.md",
455465
"redirect_url": "/azure/cosmos-db/create-sql-api-dotnet",

articles/cosmos-db/nosql/TOC.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,12 +1070,12 @@
10701070
href: samples-python.md
10711071
- name: Go
10721072
href: samples-go.md
1073-
- name: PowerShell
1074-
href: powershell-samples.md
1073+
- name: Azure CLI
1074+
href: samples-cli.yml
1075+
- name: Azure PowerShell
1076+
href: samples-powershell.yml
10751077
- name: Azure CLI
10761078
items:
1077-
- name: Overview
1078-
href: cli-samples.md
10791079
- name: Create account, database, and container
10801080
href: ../scripts/cli/nosql/create.md?context=/azure/cosmos-db/nosql/context/context
10811081
- name: Create serverless
@@ -1104,8 +1104,6 @@
11041104
href: ../scripts/cli/common/convert-to-autoscale.md?context=/azure/cosmos-db/nosql/context/context
11051105
- name: Azure PowerShell
11061106
items:
1107-
- name: Overview
1108-
href: powershell-samples.md
11091107
- name: Create account, database, and container
11101108
href: ../scripts/powershell/nosql/create.md?context=/azure/cosmos-db/nosql/context/context
11111109
- name: Create with autoscale

articles/cosmos-db/nosql/cli-samples.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

articles/cosmos-db/nosql/powershell-samples.md

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
### YamlMime:Landing
2+
3+
title: Azure CLI samples for Azure Cosmos DB for NoSQL
4+
summary: Review several Azure CLI code samples available for interacting with Azure Cosmos DB for NoSQL.
5+
6+
metadata:
7+
title: Azure CLI samples
8+
titleSuffix: Azure Cosmos DB for NoSQL
9+
description: Review several Azure CLI code samples available for interacting with Azure Cosmos DB for NoSQL.
10+
author: markjbrown
11+
ms.author: mjbrown
12+
ms.service: azure-cosmos-db
13+
ms.subservice: nosql
14+
ms.topic: sample
15+
ms.date: 04/08/2025
16+
ms.custom: devx-track-azurecli, seo-azure-cli
17+
appliesto:
18+
- ✅ NoSQL
19+
landingContent:
20+
- title: Common account administration tasks
21+
linkLists:
22+
- linkListType: reference
23+
links:
24+
- text: Create an Azure Cosmos DB account, database, and container
25+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/sql/create.sh
26+
- text: Create a serverless Azure Cosmos DB account, database, and container
27+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/sql/serverless.sh
28+
- text: Create an Azure Cosmos DB account, database, and container with autoscale
29+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/sql/autoscale.sh
30+
- text: Perform throughput operations
31+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/sql/throughput.sh
32+
- text: Lock resources from deletion
33+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/sql/lock.sh
34+
- title: API for NoSQL-specific administration
35+
linkLists:
36+
- linkListType: reference
37+
links:
38+
- text: Add or fail over regions
39+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/common/regions.sh
40+
- text: Secure with IP firewall
41+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/common/ipfirewall.sh
42+
- text: Secure new account with service endpoints
43+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/common/service-endpoints.sh
44+
- text: Secure existing account with service endpoints
45+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/common/service-endpoints-ignore-missing-vnet.sh
46+
- text: Find existing free-tier account
47+
url: https://github.com/azure-samples/azure-cli-samples/blob/master/cosmosdb/common/find-free-tier-account.sh
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
### YamlMime:Landing
2+
3+
title: Azure PowerShell samples for Azure Cosmos DB for NoSQL
4+
summary: Review several Azure PowerShell code samples available for interacting with Azure Cosmos DB for NoSQL.
5+
6+
metadata:
7+
title: Azure PowerShell samples
8+
titleSuffix: Azure Cosmos DB for NoSQL
9+
description: Review several Azure PowerShell code samples available for interacting with Azure Cosmos DB for NoSQL.
10+
author: markjbrown
11+
ms.author: mjbrown
12+
ms.service: azure-cosmos-db
13+
ms.subservice: nosql
14+
ms.topic: sample
15+
ms.date: 04/08/2025
16+
ms.custom: devx-track-azurepowershell
17+
appliesto:
18+
- ✅ NoSQL
19+
landingContent:
20+
- title: Common account administration tasks
21+
linkLists:
22+
- linkListType: reference
23+
links:
24+
- text: Configure account firewall
25+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/common/ps-account-firewall-create.ps1
26+
- text: Update account regions
27+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/common/ps-account-update-region.ps1
28+
- text: Change failover priority or trigger failover
29+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/common/ps-account-failover-priority-update.ps1
30+
- title: API for NoSQL-specific administration
31+
linkLists:
32+
- linkListType: reference
33+
links:
34+
- text: Create account
35+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/sql/ps-sql-create.ps1
36+
- text: Manage throughput
37+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/sql/ps-sql-ru-get.ps1
38+
- text: Create locks
39+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/sql/ps-sql-lock.ps1
40+
- text: Get all accounts
41+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/sql/ps-sql-list-get.ps1
42+
- text: Configure autoscale
43+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/sql/ps-sql-autoscale.ps1
44+
- text: Create container with large partition key
45+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/sql/ps-container-large-partition-key.ps1
46+
- text: Create container without an indexing policy
47+
url: https://github.com/azure/azure-docs-powershell-samples/blob/master/cosmosdb/sql/ps-container-create-index-none.ps1

0 commit comments

Comments
 (0)