7_Azure VM Image Creation - Nirvan-Pandey/Azure_DOC GitHub Wiki

7_1: Introduction

This section outlines how to create and use a custom image from an Azure virtual machine (VM). Custom images are useful for replicating a configured VM across environments.

⚠️ Note: Custom images cannot be created if Trusted Launch is enabled on the VM.

image

7_2: Stop the Virtual Machine

Before capturing an image, the VM must be in a stopped (deallocated) state.

Go to the Azure portal.

Navigate to the target VM.

Click Stop from the top toolbar.

image

7_3: Capture the VM as an Image

With the VM stopped, open the Overview section of the VM.

Click on Capture > Image.

image

Fill in the required details:

Image Name

Resource Group

Add Tags if needed

image

image

image

image

Click Review + Create, then click Create to begin the image creation.

image

Once complete, the image will be visible under the Images section.

7_4: Deploy a VM from the Custom Image

In the Azure portal, go to Images.

Select your custom image.

Click Create VM.

image

Fill in the required VM details (Name, Size, Region, Networking, etc).

Review and finalize the VM deployment.

This process helps ensure a standardized deployment workflow across your Azure environment using custom VM images.