Need to copy custom vm image from one subscription to another subscription - azure

Problem statement:
I would like to know, if there is an option to copy the image from one subscription to another subscription.
Usecase:
I have a custom vm image in a subscription, I would like to use this image to create a vm in different subscription.
Resolution:
Please help me here

Following steps can help out
Create a shared Image Gallery in your subscription which has the custom Image
You can replicate the image versions in the gallery to other regions or copy an image from another gallery using the Azure CLI or PowerShell.
Thanks,
Manu

Related

Azure share devtest lab base between different labs

I have several devtest labs in different resource groups in Azure. I want to be able to use a base image created in one in the other.
I see that other base images are saved as snapshot objects.
I have exported the base that I want as a snapshot, but I can't seem to get it into my devtest lab. When I click add a custom image I only get the option to Upload a VHD from my computer, or use an existing VHD. But I cannot find my snapshot.
I have tried in my environment to select the custom image from snapshot.
I have created one DevTest lab and added virtual machine to the DevTest lab like below.
I have created snapshot of particular virtual machine like below:
I have selected the snapshot has a custom image while creating the New Virtual Machine instead of Gallery Image like below.
Alternatively, I have created Mutiple DevTest lab with different resource groups as you mentioned. Unfortunately, it's not supported with different resources like below.
Reference:
Create a custom image from a lab VM - Azure DevTest Labs | Microsoft Learn
Create and add a virtual machine to a lab - Azure DevTest Labs | Microsoft Learn

Update the ARM Template & fetch the Latest VHD Uri from blob to deploy VM

Use case:
Working to find out a solution to deploy/create VM with ARM template using Azure Blueprints.
Currently, having solutions where-in we can deploy VM using the existing VHD Uri.
Would need a solution nearest to find wherein the ARM template can directly fetch the latest VHD URi from storage account(blob) and deploy VM.
Description:
The blob would contain the latest weekly VHD Uri image build which needs to be fetched automatically with the help of ARM template parameters as a pre-defined set of values during deployment.
As of now, tried working with various searches but couldn't find any with this related.
Checked on automation account as 'runbook' if that can work, but looks like NO possibility
Other thought process currently checking is whether, ARM templates can be updated weekly on scheduled job basis using powershell script inside the automation account as 'runbook'
Spent much time, any lead/guidance would be appreciated.
Currently updated the flow as below:
Created myself a Logic App which can fetch the latest VHD uri.
So now needed guidance on updating the parameter of the ARM template file say e.g "osdiskvhduri"
once parameter updated, I can try to link the logic app with runbook think of next stage.

Can I build Azure Managed Image from other Azure Managed Image with packer

I'd like to build custom azure managed image using packer. But some steps for provisioning are needed GUI operation. I tried make base image as azure managed image.
Now I have Azure Managed Image like
/subscriptions//resourceGroups//providers/Microsoft.Compute/images/
Can I build custom image from Azure Managed Image using packer?
There are different variation on 'packer imager' out there but Azure VM Image Builder which is still in private preview should do exactly what you are trying to do.
https://azure.microsoft.com/en-us/blog/announcing-private-preview-of-azure-vm-image-builder/
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/virtual-machines/windows/build-image-with-packer.md

Can't find RemoteApp image after creating on Azure

I've created a RemoteApp image in Azure, and run sysprep (which shutdown my VM as it is supposed to). However, how do I get to the image now? I assume it is somewhere on Azure, but where?
Keith,
It is in the "images" tab. Check out this article that has step by step = https://azure.microsoft.com/en-us/documentation/articles/remoteapp-image-on-azurevm/

How to upload/run custom Windows Application on Azure Remote App

I am working with Azure Remote App service. I can already use the default published applications on Remote App collection. But I want to upload my own windows application on Remote App collection but have no clue on how to do that.
Could some one guide me to some good resource or a direct way to accomplish this?
Thanks
To achieve what you want, you need to create a template image with your custom application in it and then use that image to create an Azure RemoteApp collection.
To create a template image with your custom application, you can follow these steps: https://azure.microsoft.com/en-us/documentation/articles/remoteapp-image-on-azurevm/ (basically, create Azure VM, install your app on the VM, sysprep, save the image to Azure RemoteApp)
Then, your image will appear in the list of images when creating a collection and you can follow the steps here to create a cloud collection: https://azure.microsoft.com/en-us/documentation/articles/remoteapp-create-cloud-deployment/ (pick the aforementioned image)
We have more documentation about the service here: http://azure.microsoft.com/en-us/documentation/services/remoteapp/ and we have other means of support here: https://www.remoteapp.windowsazure.com/en/support.aspx
/cd
P.S.: I work on Azure RemoteApp

Resources