Azure Resource Management Template -> ARM we use to make deployment faster and more repeatable.
Benefits of ARM Template.
ARM template takes care of your entire deployment for you, ARM template has a lot of benefits.
They improve consistency of deploying the resources so if you have to deploy the same resources again and again for a similar environment like Development, Quality to test production or testing environment, execute the code it does the deployment for the entire infrastructure stack for you.
That means all your complex deployment or workout simply by ARM Template in JSON, Administrators are usually bombarded by deployment and multiple infrastructures related activity and it’s quite possible to for-gate to change some parameter on that Virtual machine or edit the property of that storage account.
ARM Template reduces the manual effort and reduces any types of mistakes and human error.
ARM template -:
What is Azure Resource Manager -: Azure Resource Manager allows you to provision your applications using a declarative template. In a single template, you can deploy multiple services along with their dependencies. You use the same template to repeatedly deploy your application during every stage of the application lifecycle.
Microsoft constantly adds new Resource groups into their repository.
ARM Templates will have certain Parameters and Variables.
To list out the template search for Azure QuickStart Templates in Google.
https://azure.microsoft.com/en-in/resources/templates/?cdn=disable
Deploy VM using ARM template
Use the link below to open the template.
https://azure.microsoft.com/en-us/resources/templates/
Search for the VM template that you want to deploy (In my case I am deploying)
Deploy a simple Windows VM with tags
Click on Template Name -: Deploy a simple Windows VM with Tags
During the deployment you need to fill below parameter values.
Click Browse on GitHub -> Click DeploymentTemplate.json file
In my case I am opening below marked json template.
Click Raw -> Copy all content and paste it notepad++ (In Notepad++ it is readable in proper format)
You can do modification in the template like which version do you want to deploy, what will be subnet mask, VMName
I am changing below two highlighted parameters.
Save this file in .json format
Now Launch PowerShell from windows PowerCli.
Login with Azure account to establish connection with Azure Portal.
Once Authentication done run below command
New-AzResourceGroupDeployment -name B2CRG -TemplateUri C:\Users\C5309368\Desktop\DeployeNewVMTemplate.json
Once you hit enter pop up will come to fill value.
Once you update all the parameters VM Deployment will start.
Now login to Azure Portal -> Click on Resource Group -> Deployment
Click to Resource -> Overview and you will see what is created and what is pending.
During the deployment, the first dependency will create.
Once deployment will complete you will see New VM Inside the Virtual machines.
No comments:
Post a Comment