The following table includes links to sample Azure PowerShell scripts for Azure Cosmos DB.
| Create an Azure Cosmos DB account | |
| Create a DocumentDB API account | Creates a single Azure Cosmos DB account to use with the DocumentDB API. |
| Scale Azure Cosmos DB | |
| Replicate Azure Cosmos DB account in multiple regions and configure failover priorities | Globally replicates account data into multiple regions with a specified failover priority. |
| Secure Azure Cosmos DB | |
| Get account keys | Gets the primary and secondary master write keys and primary and secondary read-only keys for the account. |
| Get MongoDB connection string | Gets the connection string to connect your MongoDB app to your Azure Cosmos DB account. |
| Regenerate account keys | Regenerates the master or read-only key for the account. |
| Create a firewall | Creates an inbound IP access control policy to limit access to the account from an approved set of machines and/or cloud services. |
| High availability, disaster recovery, backup and restore | |
| Configure failover policy | Sets the failover priority of each region in which the account is replicated. |

