1. Introduction
Let us learn in what cases, we use VM images to create a new one and how it can be helpful for us. So, let’s start our journey.
In Azure marketplace there are many different templates available for OS deployment. These are general purpose templates. But in corporate environment administrators use custom images for their OS deployments. These images are usually fine tuned for corporate requirements. Azure also allow to do the same. In Azure we can create custom images according to our requirements and use it to deploy virtual machines. In this demo I am going to demonstrate how to create custom image and how we can use it to deploy new virtual machines.
Let us learn in what cases, we use VM images to create a new one and how it can be helpful for us. So, let’s start our journey.
In Azure marketplace there are many different templates available for OS deployment. These are general purpose templates. But in corporate environment administrators use custom images for their OS deployments. These images are usually fine tuned for corporate requirements. Azure also allow to do the same. In Azure we can create custom images according to our requirements and use it to deploy virtual machines. In this demo I am going to demonstrate how to create custom image and how we can use it to deploy new virtual machines.
2. Step-by-Step Guide to create Azure Custom VM Image
1. Log in to Azure portal as Global Admin
2. Create a Virtual Machine with your OS requirements.
3. In my demo, I am using a VM with Ubuntu 18.4.
4. Shutdown the VM.
5. Come back to the portal and click on "Capture”
After clicking on Capture, a new blade will show on the screen to create an image.
Check the checkbox of "Automatically delete this VM after creating image". It is because now we can’t run this VM. It becomes in the deallocated state when we create its image. And in the last textbox, we need to write the VM name from where we’re making the VM image; just for confirmation. Now at the end; hit Create button
6. Now, open your resource group and here you find you’ve created the Virtual Machine image.
7. Now you want to create a new VM from our created custom VM. So,
And this time enter your credentials and click on Browse all public and private images
And this is how you can create new VM from your own custom VM.
Now, you can see the Region is disabled. It is because there are a few configurations which we have already done in our image. So, there are a few things which we don’t need to do again and again. Every time now when you generate VM from your custom image; it will be deployed in the same region where you deployed your VM image. But we can change the size of the VM.
OK so fill the complete the form and deploy the VM and open the SSH and HTTP Ports.
8. Ok so now new VM has been deployed. And now let’s open its SSH with the same method which we have already discussed above.
And now when we login though the SSH and enter username, password; we'll see that our environment will be ready to use
Thanks
No comments:
Post a Comment