How to create vm using custom image from different storage account, on Azure

前端 未结 5 1569
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 11:39

I\'m currently using this template to create a vm by custom image. For the OS Disk part:

\"storageProfile\": {
  \"osDisk\": {
    \"name\": \"[concat(variab         


        
5条回答
  •  失恋的感觉
    2021-01-14 12:14

    If by different storage account you mean a storage account in another subscription, then no. The storage account and virtual machine must be in the same subscription.

    UPDATE

    Found the answer in the template description page here: https://github.com/Azure/azure-quickstart-templates/tree/master/101-vm-from-user-image

    Prerequisite - The Storage Account with the User Image VHD should already exist in the same resource group.

    So based on this, as long as your storage accounts are in same Azure Subscriptions and are in same Resource Group, you should be fine even if the storage accounts are different.

提交回复
热议问题