title | description | author | ms.service | ms.subservice | ms.custom | ms.topic | ms.date | ms.author | ms.reviewer |
---|---|---|---|---|---|---|---|---|---|
PowerShell scripts for throughput (RU/s) operations for Azure Cosmos DB for Gremlin |
PowerShell scripts for throughput (RU/s) operations for API for Gremlin |
seesharprun |
cosmos-db |
apache-gremlin |
devx-track-azurepowershell |
sample |
10/07/2020 |
sidandrews |
mjbrown |
Throughput (RU/s) operations with PowerShell for a database or graph for Azure Cosmos DB - API for Gremlin
[!INCLUDEGremlin]
[!INCLUDE updated-for-az]
This sample requires Azure PowerShell Az 5.4.0 or later. Run Get-Module -ListAvailable Az
to see which versions are installed.
If you need to install, see Install Azure PowerShell module.
Run Connect-AzAccount to sign in to Azure.
[!code-powershellmain]
[!code-powershellmain]
[!code-powershellmain]
After the script sample has been run, the following command can be used to remove the resource group and all resources associated with it.
Remove-AzResourceGroup -ResourceGroupName "myResourceGroup"
This script uses the following commands. Each command in the table links to command specific documentation.
Command | Notes |
---|---|
Azure Cosmos DB | |
Get-AzCosmosDBGremlinDatabaseThroughput | Gets the throughput value of the API for Gremlin Database. |
Get-AzCosmosDBGremlinGraphThroughput | Gets the throughput value of the API for Gremlin Graph. |
Update-AzCosmosDBGremlinDatabaseThroughput | Updates the throughput value of the API for Gremlin Database. |
Update-AzCosmosDBGremlinGraphThroughput | Updates the throughput value of the API for Gremlin Graph. |
Invoke-AzCosmosDBGremlinDatabaseThroughputMigration | Migrate throughput of a API for Gremlin Database. |
Invoke-AzCosmosDBGremlinGraphThroughputMigration | Migrate throughput of a API for Gremlin Graph. |
Azure Resource Groups | |
Remove-AzResourceGroup | Deletes a resource group including all nested resources. |
For more information on the Azure PowerShell, see Azure PowerShell documentation.