DEV Community

Cover image for How to Create an Azure Compute Gallery and capture the image of the Virtual Machine
Ahmed Emmanuel Oluwaseyi
Ahmed Emmanuel Oluwaseyi

Posted on

How to Create an Azure Compute Gallery and capture the image of the Virtual Machine

⁠Create an Azure Compute Gallery and capture the image of the VM in step one,
make sure that state of the VM is specialized, if you choose to generalize it explain why;

Azure Compute Gallery (formerly known as Shared Image Gallery) is a service in Azure designed to simplify the management, distribution, and versioning of custom VM images. It provides a centralized and scalable repository where you can:

  • Manage Custom Images: Store and organize your VM images along with their metadata.

  • Version Control: Maintain multiple versions of an image, making it easier to update and roll back if needed.

  • Regional Replication: Replicate images across multiple Azure regions to ensure high availability and reduce deployment latency.

  • Streamlined Sharing: Securely share images across subscriptions and even across different Azure Active Directory tenants.

  • Scalable Deployments: Support large-scale deployments and integration with virtual machine scale sets, ensuring consistent and reliable environments.

This service is particularly useful for organizations that need to deploy standardized images across diverse environments, ensuring consistency, compliance, and efficient management of virtual machine images.

To start; we have to launch the azure search bar and input azure compute gallery

azure compute
click on +create
create
select your resource group, give gallery a name and select a region, then review + create
review and create
create
click on Go to resource
go to resource
gallery

Now we go back to our previously created virtual machine and select capture tab on the drop down select the image
vm
Image
When saving an image it is either; Generalized or Specialized

  • Generalized: VMs created from this image require hostname, admin user, and other VM related setup to be completed on first boot

  • Specialized: VMs created from this image are completely configured and do not require parameters such as hostname and admin user/password

For this task i will choose specialized; because i want it to be easily accessible.

I will choose all that applies, then proceed to Review + create
Image setup

Note; before an image will be created it will automatically stop a running virtual machine.

Image creating
Downloading
creating

Give it a while to complete the creation process

capture

We can use a Captured image to create Two things which are; virtual machine and virtual machine skill set
Image

Thank you

Top comments (0)