【问题标题】:How to Detach shared image gallery from DevTest lab in azure如何在 azure 中从 DevTest 实验室分离共享图像库
【发布时间】:2020-07-13 15:35:13
【问题描述】:

我们需要从 Azure 中的开发测试实验室分离共享图像库。我们尝试了下面的代码 API sn-p 来附加。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}?api-version= 2018-10-15-preview
Body: 
{
    "properties":{
        "galleryId": "[Shared Image Gallery resource Id]",
        "allowAllImages": "Enabled"
    }
}

我们可以为开发测试实验室启用共享图片库。我们可以使用 API 或 ARM 模板分离共享图像库吗?

【问题讨论】:

    标签: arm azure-powershell


    【解决方案1】:

    是的,您可以,只需使用如下所示的 REST API。

    DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/sharedgalleries/{name}?api-version= 2018-10-15-preview
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-26
      • 1970-01-01
      • 2023-03-03
      • 2012-02-07
      • 2020-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多