Issue while creating image from source image using az image create
See original GitHub issueI’m trying to create a new VM using an existing VM that I’ve setup recently.
I’m following this official tutorial but I’m having issue with this step to create an image using the source vm
az image create --resource-group ontarget-servers --name myImage --source int-server-vm
It throws error:
Source Virtual Machine 'int-server-vm' specified in the request does not exist in this Azure location.
Not sure what exactly is the problem. But this vm is exactly in the same resource-group that I’ve mentioned above. And also, I have only one resource group so far. I couldn’t find any solution or more information about what actually is the issue.
Had this process been available from GUI, I would have done it that way. But seems like replicating a vm to create a new one is only an option using Azure CLI and I’m stuck here.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Create an image definition and image version - Azure
Create an image ; Image version, - Select the Source gallery from the drop-down. - Select the correct image definition from the drop-down....
Read more >Error when creating image for image-gallery from ... - GitHub
I try to create an image for an image-gallery from an image in a different resource group. az sig image-version create. az sig...
Read more >Issue in Creating windows virtual machine from customized ...
I am new to azure and I wanted to create new windows 2012 virtual machine from the image i just created using following...
Read more >VM from Custom Image with Terraform and Azure
Then we're going to build a virtual machine in Terraform from that image. The basic outline: 1.Create Source VM 2. Deprovision / Sysprep...
Read more >How to manage and harden VM images in Azure (6 easy ways)
If Az Copy Image Extension does not work for you, you can create a VHD image in the storage account and copy it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it is likely the region doesn’t match. Your command doesn’t provide the
location
arg, so CLI defaults to the location of groupontarget-servers
, but if the location ofint-server-vm
is different, an error will occur. To create the image, the location must match. It doesn’t matter whether they are from the same resource group or notWould be great to add this clarification to the azure docs.