Skip to main content

Create Azure compute gallery for Terraform code

In Azure Cloud, By default the image which is shared by me in training is not available to use from the command line directly, Hence in terraform while creating the virtual machines we face a challange, to avoid this we will create a VM from the image which I shared and then we convert that VM to a image. Then you use that image in your Terraform code.

Steps to create azure compute gallery.

1. Create VM ( devops-practice image ) with specified size or More Size

image

2. Stop the VM For creating Image.

image

3. Select Capture & click the Image it's redirects to new window..

image

4. Fill the details, IMP details [ Version - 1.0.0 ]

image

5. Go to search bar, type Azure compute galleries

image

6. We will see your Image immediately, But In backend it actually creating ..wait.. for few 5-10 mins.

image

7. We will Image details.

image

10. Multiple selects..

image

11. Final Step

image