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
  • Featured image   Network Access Permission...
    Fix You Might Not Have Permission to Use This Network Resource Error Network | Monitoring
  • uninstall gtla runner
    How to uninstall GitLab Runner from your Windows device Version Control System
  • MSIEXEC returned 1602
    Fix MSIEXEC returned 1602: Trellix Setup cannot use this account Windows Server
  • Permission1
    How to create a Shortcut That enables Standard Users to run Applications as Administrator Windows
  • Screenshot 2020 05 13 at 19.23.25
    AWS Command-Line Interface: How to configure AWS CLI [Part 1] AWS/Azure/OpenShift
  • Screenshot
    How to change the Windows Pagefile Size Windows Server
  • DUE Deligence vs Due Care
    Relating Due Diligence and Due Care to Veeam Backup and Replication Backup
  • screenshot 2020 04 06 at 04.12.00
    How to install and Configure Pleasant Reset Password Virtualization

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.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to 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

  • image 11
    Setting Up your Amazon S3 Glacier and FastGlacier for Your Online Vault AWS/Azure/OpenShift
  • Implement Azure Bicep
    How to Deploy Azure Resources Using Azure Bicep Automation
  • Webp.net resizeimage 4
    Create, list, lock, deploy, and delete Azure Resource Group via Azure CLI AWS/Azure/OpenShift
  • Create AWS RDS instance
    How to create an Amazon Relational Database Service Instance AWS/Azure/OpenShift
  • Route53AWS
    Set up and configure Route 53 for your Domain in AWS AWS/Azure/OpenShift
  • azure logo 1
    How to use the built-in Azure Active Directory Connect tool AWS/Azure/OpenShift

More Related Articles

image 11 Setting Up your Amazon S3 Glacier and FastGlacier for Your Online Vault AWS/Azure/OpenShift
Implement Azure Bicep How to Deploy Azure Resources Using Azure Bicep Automation
Webp.net resizeimage 4 Create, list, lock, deploy, and delete Azure Resource Group via Azure CLI AWS/Azure/OpenShift
Create AWS RDS instance How to create an Amazon Relational Database Service Instance AWS/Azure/OpenShift
Route53AWS Set up and configure Route 53 for your Domain in AWS AWS/Azure/OpenShift
azure logo 1 How to use the built-in Azure Active Directory Connect tool 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

  • Featured image   Network Access Permission...
    Fix You Might Not Have Permission to Use This Network Resource Error Network | Monitoring
  • uninstall gtla runner
    How to uninstall GitLab Runner from your Windows device Version Control System
  • MSIEXEC returned 1602
    Fix MSIEXEC returned 1602: Trellix Setup cannot use this account Windows Server
  • Permission1
    How to create a Shortcut That enables Standard Users to run Applications as Administrator Windows
  • Screenshot 2020 05 13 at 19.23.25
    AWS Command-Line Interface: How to configure AWS CLI [Part 1] AWS/Azure/OpenShift
  • Screenshot
    How to change the Windows Pagefile Size Windows Server
  • DUE Deligence vs Due Care
    Relating Due Diligence and Due Care to Veeam Backup and Replication Backup
  • screenshot 2020 04 06 at 04.12.00
    How to install and Configure Pleasant Reset Password Virtualization

Subscribe to Blog via Email

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

Join 1,839 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.