【问题标题】:Set a custom domain for a storage account using Azure Powershell使用 Azure Powershell 为存储帐户设置自定义域
【发布时间】:2016-03-16 05:35:26
【问题描述】:

是否可以使用 Azure Powershell 为 Azure 资源管理器 (ARM) 存储帐户设置自定义域?如果是这样,怎么做?

我尝试通过 Azure 预览版 Web 门户设置自定义域,但新的资源管理器存储帐户尚不存在该功能。

使用这个documentation,我可以登录并查看我的新RM 存储帐户的属性,但我不确定如何更新CustomDomain 属性。我希望找到一个示例/文档,说明它如何与旧存储帐户一起使用,但我没有找到任何东西。

【问题讨论】:

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


    【解决方案1】:

    我找到了适合我们的解决方案。您可以使用Set-AzureRmStorageAccount 命令设置现有存储组的属性。不知道我是怎么错过这个的。

    Set-AzureRmStorageAccount -ResourceGroupName "<YOUR RESOURCE GROUPNAME>" -Name "<YOUR STORAGE ACCOUNT NAME>" -CustomDomainName <YOUR.CUSTOM.DOMAIN> -UseSubDomain $true
    

    【讨论】:

      【解决方案2】:

      如果像我一样,你得到 ResourceGroupNotFound 之前执行以下命令来选择你的订阅(你在 Azure 门户中获得你的订阅 ID):

      Select-AzureRmSubscription -SubscriptionId <YourSubscriptionID>
      

      【讨论】:

        猜你喜欢
        • 2017-06-28
        • 2021-08-21
        • 2021-06-19
        • 1970-01-01
        • 2023-03-14
        • 2016-10-27
        • 2017-06-20
        • 2020-01-13
        • 2022-12-14
        相关资源
        最近更新 更多