Articles → MICROSOFT AZURE → ARM In Azure

ARM In Azure






Purpose





Scenario Of Using ARM






  1. Perform all the steps for RG2 which we have done for RG1. 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. The detail screen will come. In the details screen, search for 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
  10. 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 the Ok button
    Picture showing the details screen for adding template information
    Click to Enlarge
  6. In the next window, enter the content of the template.json file downloaded from the previous step
  7. Picture showing the JSON of the ARM template
    Click to Enlarge

  8. Click on the Ok button
  9. In the next screen, click on the Add button to add the custom template
  10. 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
  8. 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