Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » How to use Azure Compute Gallery

How to use Azure Compute Gallery

Posted on 22/01/202317/03/2023 Raphael Gab-Momoh By Raphael Gab-Momoh No Comments on How to use Azure Compute Gallery
computefeature

Have you ever thought of capturing the image of your virtual machine so that you can either share or reuse it? Then, Azure compute gallery is a resource that you should not overlook. It should not be a surprise to know that a copy of a whole VM (including any associated data drives) or simply the OS disk, depending on how it was made, is what an image is. Kindly refer to these related guides: How to Configure Windows Sandbox and how to write a Shell Script that Counts Lines and Words in a File.

The Virtual Hard Drives in the image are copied when you build a VM from it, and the new VM’s disks are made from those copies. The most interesting thing about an image is that you can keep it in storage and use it for countless VM creations if need be. Other articles can be found here: How to install Groovy on Linux and Windows and How to install Googler on a Linux System and How to Install PlayonLinux on a Linux System.

Images stored in Azure Compute Gallery

1: Generalized images: Generalizing is a procedure that purges the VM of the machine- and user-specific and generalizing an image in Azure compute gallery is as easy as a push of a button because it is a requirement.

2: Specialized VMs have not undergone a procedure to eliminate machine-particular data and accounts. Additionally, osProfiles are not attached to virtual machines built from specialized images. Therefore, in addition to their advantages, specialized images will also have certain drawbacks.

Benefits of using Specialized Images

VMs and scale sets created from specialized images can be up and running more quickly. Because they are created from a source that has already been through the first boot, VMs created from these images boot faster.

Any VM built using the customized image that is created from that VM may be logged into using the same accounts that can be used to log into the VM thereby making administration of that VM easier

Can be logged into without Admin username and password

Shareability of images stored in compute galleries

Specific people, groups, or service principals: You may share resources on a very specific level with certain individuals, groups, or service principals using role-based access control (RBAC).

Subscriptions or Tenants Sharing to everyone in a tenancy or subscription is possible with a straight shared gallery.

Anyone: All Azure users may access your whole gallery using the community gallery.

Demonstration on how to use Azure Compute Gallery

  1. Create a Compute Gallery
  2. Create a Resource Group & a Virtual Machine either with cli or from the portal
  3. Take a snapshot of the Virtual Machine and Save the snapshot in the Compute Gallery created
  4. create an image from the image saved in the gallery

1. Azure compute gallery, with these steps

Log in to the Azure portal (https://portal.azure.com/) using your Azure account credentials.

In the search resource, services and docs field, type Azure Compute Gallery.

search
type azure compute gallery in search field

2. Select the best option from the search result and hit enter, it would usually be grayed out

Best-option
select best search option

3. create on either of the create buttons

create
Click Create

4. Enter your project details this includes your subscription and your resource group

project-details
Project details

5. Enter your instance details this include Name, location and description of the gallery

instance-details
Instance details

6. Sharing

sharing
Sharing

7. Review to start Validation

review-and-create
review

8. Create

create2

9. Go to Resource to start using Gallery

go-to-resource

10. View Gallery

gallery

2. Create a Resouce group & a Virtual Machine with Cli

Create a resource group first, then proceed to create a VM with Azure Cli using the command below:

 az group create --name techdrg --location EastUS
 
 az vm create \
 --resource-group techdrg \
 --name AMG \
 --image UbuntuLTS \
 --generate-ssh-keys 

The Resource Group should be created first then the virtual machine

resource-group
Resource group

The virtual machine comes next

vm
vm running

Here are the created resource in the portal

cr
created Resource Group & Virtual Machine

3. Save a snapshot of the Virtual Machine in the Compute Gallery

  1. Click on Capture
cc
click on capture

2. Focus on the Gallery detail, select the gallery you created earlier & the operating system state

gd
Gallery Details

3. Create a target VM definition

vm-definition
vm definition

4. Create version detail for your VM

mport
vm definition & version detail

5. Review & Create

freview
Review then create

6. Wait for the deployment to be complete

wait
wait

7. Go to Resource to access newly created image

g2r

8. Image creation succeeded

succeeded
succeeded

4. Create an image from the image saved in the gallery

So you see we have an image in the galllery that can be used to create other images

  1. Click on create VM
Createv

2. from the basics tab, fill in project details and for instance details choose the image from the gallery

image-from-cg
image from compute gallery

2. Admin Details. We can clearly see that the username and password have been grayed out because we choose to have a specialized image during the creation of the compute gallery image

specialed-admin-details
Admin details grayed out

3. Select your inbound port rules, then review and Create

reviewf
review&create

The image has been created, it took a very short time to create

frun
vm from a specializaed image

Summary

Preconfigured virtual machines and apps in the Azure Compute Gallery are available for quick deployment on Azure. Instead of manually installing and configuring the program, users may rapidly spin up a virtual machine with their preferred software by using the gallery. This article have shown steps that can be taken in order to create a compute gallery and also how to create a generalized image and finally create a vm from a generalized image.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift Tags:Virtual Machine

Post navigation

Previous Post: Enable BitLocker AES-XTX 256 Encryption
Next Post: Query Windows BitLocker status remotely

Related Posts

  • Simple Notification Service AWS SNS
    Create Simple Notification Service (SNS) Notification on AWS AWS/Azure/OpenShift
  • Azure Backup For AKS
    How to protect Azure Kubernetes Service (AKS) with Azure Backup AWS/Azure/OpenShift
  • Azure SASE
    [AZURE] Security Service Edge (SSE) and Microsoft Entra ID AWS/Azure/OpenShift
  • Azure AD Logo 1
    How to sync on-premises AD with Azure AD via Azure AD Connect AWS/Azure/OpenShift
  • Bulk operations in Azure AD
    Perform Bulk User Operations in Azure AD AWS/Azure/OpenShift
  • keyvault
    How To Use Azure Key Vault Secrets in Azure Pipelines AWS/Azure/OpenShift

More Related Articles

Simple Notification Service AWS SNS Create Simple Notification Service (SNS) Notification on AWS AWS/Azure/OpenShift
Azure Backup For AKS How to protect Azure Kubernetes Service (AKS) with Azure Backup AWS/Azure/OpenShift
Azure SASE [AZURE] Security Service Edge (SSE) and Microsoft Entra ID AWS/Azure/OpenShift
Azure AD Logo 1 How to sync on-premises AD with Azure AD via Azure AD Connect AWS/Azure/OpenShift
Bulk operations in Azure AD Perform Bulk User Operations in Azure AD AWS/Azure/OpenShift
keyvault How To Use Azure Key Vault Secrets in Azure Pipelines AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Task Scheduler Errors and Success Codes
    All Task Scheduler Errors and Success Codes Windows Server
  • Downgrade
    Downgrade VMware Workstation: Fix the Processor does not support xsave on VMware Workstation Virtualization
  • unnamed
    How to run the Cisco ASDM launcher Network | Monitoring
  • mdm
    Delete AssignedAccess applied via MDM WMI bridge Provider Windows
  • banner
    How to Back Up and Restore the Windows Registry Windows
  • vcenter sign on
    CVE-2021-22048: VMware vCenter Server updates address a privilege escalation vulnerability Security | Vulnerability Scans and Assessment
  • WinRM and Kerberos Delegation troubleshooting
    Troubleshooting WinRM and Kerberos Delegation for WAC Network | Monitoring
  • 1 WeXxkEX0JG3oB781HD8Hrg 1
    How to convert a GPT disk into an MBR disk error: Windows cannot be installed on drive 0 Partition 1 Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,825 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.