使用mongodb api在cosmosdb的arm模板中添加功能时。我看不到启用预览功能。
我尝试了不同的方法,但是没有运气。
"properties": {
"databaseAccountOfferType": "Standard",
"consistencyPolicy": {
"defaultConsistencyLevel": "[parameters('consistencyLevel')]",
"maxStalenessPrefix": "[parameters('maxStalenessPrefix')]",
"maxIntervalInSeconds": "[parameters('maxIntervalInSeconds')]",
"capabilities": [
{
"name": "[if(equals(parameters('apiType'), 'Cassandra'), 'EnableCassandra', if(equals(parameters('apiType'), 'Gremlin'), 'EnableGremlin', if(equals(parameters('apiType'), 'MongoDB'), 'EnableAggregationPipeline', if(equals(parameters('apiType'), 'SQL'), '', if(equals(parameters('apiType'), 'Table'), 'EnableTable', '')))))]"
}]
"properties": {
"databaseAccountOfferType": "Standard",
"consistencyPolicy": {
"defaultConsistencyLevel": "[parameters('consistencyLevel')]",
"maxStalenessPrefix": "[parameters('maxStalenessPrefix')]",
"maxIntervalInSeconds": "[parameters('maxIntervalInSeconds')]",
"capabilities":[ { "name": "[ if(equals(parameters('apiType'), 'MongoDB'), 'EnableAggregationPipeline','')]" },
{ "name": "[ if(equals(parameters('apiType'), 'MongoDB'), 'MongoDBv3.4','')]" }]
},
为什么会这样? 如果在创建时不起作用,是否有任何方法可以在创建后立即通过arm模板进行更新?
谢谢