【问题标题】:Add storage to Azure resource manager将存储添加到 Azure 资源管理器
【发布时间】:2015-02-05 11:18:48
【问题描述】:

是否可以将存储添加到资源组? IIRC 我的存储组是在我使用“旧”版门户时自动创建的。 我可以在组中看到我的域和虚拟机,但没有存储空间。如何添加?

【问题讨论】:

    标签: azure azure-storage azure-resource-manager


    【解决方案1】:

    您也可以通过 ARM API 或 Powershell 使用以下模板在资源组中创建存储帐户:

    {
    "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "name": {
            "type": "string"
        },
        "location": {
            "type": "string"
        },
        "accountType": {
            "type": "string"
        }
    },
    "resources": [
        {
            "apiVersion": "2014-06-01",
            "name": "[parameters('name')]",
            "type": "Microsoft.ClassicStorage/StorageAccounts",
            "location": "[parameters('location')]",
            "properties": {
                "accountType": "[parameters('accountType')]"
            }
        }
    ]}
    

    【讨论】:

    【解决方案2】:

    假设您指的是存储帐户,您可以在 preview portal 的资源组中创建一个存储帐户。不过,您还不能通过 ARM API 或 Powershell 来实现(请参阅 this question)。

    【讨论】:

      猜你喜欢
      • 2016-02-22
      • 2020-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-05
      • 2015-10-05
      • 1970-01-01
      • 2022-09-27
      相关资源
      最近更新 更多