具有共享自动缩放吞吐量的CosmosDB部署失败

问题描述 投票:0回答:1

[尝试为具有两个集合的SQL数据库SQL数据库部署ARM模板,其中在数据库级别设置了自动缩放吞吐量设置(为集合共享)。>>

我在Azure UI中创建了此设置,然后导出了模板。使用New-AzResourceGroupDeployment从Powershell导入模板时,它失败,并显示消息

Status Message: Entity with the specified id does not exist in the system.
ActivityId: <redacted>, Microsoft.Azure.Documents.Common/2.11.0 (Code:NotFound)

这很荒谬,因为我导出了模板,但没有修改它,然后又将其导入。 Azure是否无法识别自己的格式?我认为问题与模板的片段有关:

{
    "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings",
    "apiVersion": "2020-04-01",
    "name": "[concat(parameters('databaseAccounts_an_test_name'), '/', parameters('databaseAccounts_an_test_name'), '-db-2/default')]",
    "dependsOn": [
        "[resourceId('Microsoft.DocumentDB/databaseAccounts/sqlDatabases', parameters('databaseAccounts_an_test_name'), concat(parameters('databaseAccounts_an_test_name'), '-db-2'))]",
        "[resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('databaseAccounts_an_test_name'))]"
    ],
    "properties": {
        "resource": {
            "throughput": 400,
            "autoscaleSettings": {
                "maxThroughput": 4000
            }
        }
    }
}

enter image description here

有什么想法吗?

[尝试为具有两个集合的SQL帐户SQL数据库部署ARM模板,其中在数据库级别设置了自动缩放吞吐量设置(为集合共享)。我创建了此设置...

azure powershell azure-cosmosdb arm-template
1个回答
0
投票

如果要创建新的数据库或容器资源,则需要在资源选项中传递吞吐量。您只能在更新吞吐量时直接使用吞吐量资源。

© www.soinside.com 2019 - 2024. All rights reserved.