Articles â†’ MICROSOFT AZURE â†’ ARM in azure

ARM in azure






Purpose





Scenario of using ARM




  1. Perform all the steps for another resource which we have done for resource one. This is the time consuming and error prone activity.
  2. Use ARM templates.

Example


  1. Create a resource group "RG1" in the "East US" region.
  2. Create another resource group "RG2" in the "North Europe" region.
  3. Create an IP address under "RG1".
  4. Download the template of the IP address.
  5. Create the custom template and set the JSON.
  6. Deploy the resource.



Create resource group




Picture showing the resource groups RG1 and RG2

Click to Enlarge


Create an IP address under “RG1”




Picture showing the external IP address under resource group RG1

Click to Enlarge


Download the template of the IP address




  1. Click on the link of the IP address.
  2. Picture showing the external IP address that the user click and go to the details screen

    Click to Enlarge

  3. Details screen will come. In the details screen, search the word "template".
  4. Picture showing the Export Template button in the external IP address detail screen

    Click to Enlarge

  5. Click on the "Export template" button.
  6. A screen will come from where templates can be downloaded.
  7. Picture showing the Download button to download the template

    Click to Enlarge
  8. Click on the "Download" button to download the template in zip format.
  9. In the zip file, there are 2 files i.e. "parameters.json" and "template.json".


Picture showing the 2 files downloaded when the user clicks on the Download button

Click to Enlarge


Create the custom template and set the JSON




  1. Go to "Templates".
  2. Picture showing the Templates option in services menu

    Click to Enlarge
  3. Add a new template by clicking on the "Add" button.
  4. Picture showing the Add button for adding a new template

    Click to Enlarge
  5. In the add screen, enter the "Name", "Description" and click on "Ok" button.
  6. Picture showing the details screen for adding template information

    Click to Enlarge
  7. In the next window, enter the content of the "template.json" file downloaded from the previous step.
  8. Picture showing the JSON of the ARM template

    Click to Enlarge
  9. Click on the "Ok" button.


  10. In the next screen, click on the "Add" button to add the custom template.


Picture showing the add screen for adding ARM template

Click to Enlarge


Deploy the resource




  1. In the "Templates" screen, click on the link.
  2. Picture showing the ARM template created in Microsoft Azure

    Click to Enlarge
  3. Details screen will come. In the detail screen, click on the "Deploy" button.
  4. Picture showing the Deploy button in the template detail screen

    Click to Enlarge
  5. Custom deployment screen will come. In the custom deployment screen, select "RG2" as a resource group and click on the "Purchase" button.
  6. Picture showing the custom deployment screen

    Click to Enlarge
  7. Deployment will start. Once the deployment is completed, go to "RG2" and check the "Deployment".


Picture showing the status when the deployment is completed

Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, October 7, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250