Шаблоны краткого руководства по Azure сейчас доступны на английском языке
This template creates an Azure Cosmos DB account for Cassandra API in two regions with a keyspace and table with dedicated throughput.
Этот шаблон Azure Resource Manager (ARM) был создан участником сообщества, а не Майкрософт. Каждый шаблон ARM лицензирован для вас в соответствии с условиями лицензионного соглашения с владельцем, а не с Майкрософт. Майкрософт не несет ответственности за шаблоны ARM, предоставленные и лицензированные членами сообщества, и не отслеживает их безопасности, совместимости или производительности. Шаблоны ARM, созданные сообществом, не поддерживаются ни в соответствии с какой-либо программой поддержки Майкрософт, ни какими-либо службами поддержки Майкрософт и предоставляются КАК ЕСТЬ без каких-либо гарантий.
Параметры
Имя параметра | Описание |
---|---|
accountName | Cosmos DB account name, max length 44 characters |
location | Location for the Cosmos DB account. |
primaryRegion | The primary region for the Cosmos DB account. |
secondaryRegion | The secondary region for the Cosmos DB account. |
defaultConsistencyLevel | The default consistency level of the Cosmos DB account. |
maxStalenessPrefix | Max stale requests. Required for BoundedStaleness. Valid ranges, Single Region: 10 to 2,147,483,647. Multi Region: 100,000 to 2,147,483,647. |
maxIntervalInSeconds | Max lag time (seconds). Required for BoundedStaleness. Valid ranges, Single Region: 5 to 84600. Multi Region: 300 to 86400. |
systemManagedFailover | Enable system managed failover for regions |
keyspaceName | The name for the Cassandra Keyspace |
tableName | The name for the Cassandra table |
throughput | The throughput for Cassandra table |
Использование шаблона
PowerShell
New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deploymentУстановка и настройка служб Azure PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.documentdb/cosmosdb-cassandra/azuredeploy.json
Командная строка
az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deploymentУстановка и настройка кросс-платформенного интерфейса командной стройки Azure
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.documentdb/cosmosdb-cassandra/azuredeploy.json