azure - 通过 Azure 资源管理器模板部署 Azure 表

标签 azure azure-table-storage azure-resource-manager

现在(显然)可以通过 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/

相关文章:

azure-table-storage - 使用 Azure 表存储时出现 "The values are not specified for all properties in the entity"错误

azure - Azure 表存储中的日期范围查询

Azure ARM 模板跳过嵌套条件

azure - 如何为Azure DCOS配置子域?

sql-server - Windows Azure 上的 WCF 服务 - 连接到本地 SQL Server 数据库

azure - 需要为 Azure 表构建复杂的查询来计算行数

azure - 在 Microsoft Azure 上共享资源组

azure - ARM模板输出私有(private)端点的私有(private)IP

azure - 我们可以从管道 azure synapse 在无服务器池中执行 sql 查询吗?

来自 Eventhub 的 Azure 捕获事件未按窗口大小捕获