DEV Community

Lillie Mae
Lillie Mae

Posted on

STEPS TO CREATE AN AZURE COMPUTE GALLERY, CAPTURE THE IMAGE OF A VM AND STORE IN A COMPUTE GALLERY.

Before you begin with this exercise, you must have a virtual machine running already. If you do not have a vm yet, please see previous videos to guide you on how to deploy a virtual machine.

STEP 1:
a. Go to your Azure portal and search for "Azure compute galleries" and click on it.
Image description

STEP 2:
a. Click on "Create"
b. Choose your resource group, Give it a name of your choice. Leave every other thing as default then click on review+create" and once validation passes, click on "create"

Image description

Image description

STEP 3:
a. Click on "Go to resource"
b. Go back to your Azure Home page and click open your virtual machine.
c. Click on Capture"
Image description

Image description

STEP 4: Fill in the columns
a. Share image to azure compute gallery column should be YES
b. Target azure compute gallery column should be the name you gave your gallery.
c. Under Target vm image definition, Click on "Create new", give it a name and click on a Ok"
d. Version number column should be 0.0.1
e. Change your Target region replica to 2 so your image can be backedup in other regions. Here, i used East US and West uS
f. Change your default replica count to 2 so it can match the target region.
g. Click on review+create

Image description
Image description

STEP 5:
a. After the validation has passed, Click on Create"

STEP 6
a. After deployment is complete;
b. Click on "Go to resource"
c. Go back to your compute gallery to see the captured image and also see that it's in the gallery.

Image description

N/B Deployment will take a while because it's more than 1 region and the vm has to be generalised so the admin username and password can be added for easy access.

!!!

Top comments (0)