现在(显然)可以通过 ARM 模板创建 Blob 容器,是否可以类似地创建 Azure 存储表?我进行了搜索,但大多数答案都是在 Blob 容器创建实现和可用之前提供的。
我还在 https://learn.microsoft.com/en-us/rest/api/storageservices/create-table 找到了 REST API 的文档。但我不确定这是否以及如何映射到 ARM 模板中的 JSON 条目。
我希望消除当前在我的部署中处理表资源创建的 PowerShell 脚本。
最佳答案
自 2019-06-01 版本起...是
不,目前无法使用 ARM 模板来实现这一点。
https://learn.microsoft.com/en-us/rest/api/storagerp/table/create
https://learn.microsoft.com/en-us/azure/templates/microsoft.storage/2019-06-01/storageaccounts/tableservices
{
"name": "default",
"type": "Microsoft.Storage/storageAccounts/tableServices",
"apiVersion": "2019-06-01",
"properties": {
"cors": {
"corsRules": [
{
"allowedOrigins": [
"string"
],
"allowedMethods": [
"string"
],
"maxAgeInSeconds": "integer",
"exposedHeaders": [
"string"
],
"allowedHeaders": [
"string"
]
}
]
}
}
}
和表格:
{
"name": "string",
"type": "Microsoft.Storage/storageAccounts/tableServices/tables",
"apiVersion": "2019-06-01"
}
关于azure - 通过 Azure 资源管理器模板部署 Azure 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52050903/