Articles → MICROSOFT AZURE → ARM In Azure
ARM In Azure
Purpose
Scenario Of Using ARM
- Perform all the steps for "RG2" which we have done for "RG1". This is the time-consuming and error-prone activity
- Use ARM templates
Example
- Create a resource group "RG1" in the "East US" region
- Create another resource group "RG2" in the "North Europe" region
- Create an IP address under "RG1"
- Download the template of the IP address
- Create the custom template and set the JSON
- Deploy the resource
Create Resource Group
Click to Enlarge
Create An IP Address Under “RG1”
Click to Enlarge
Download The Template Of The IP Address
- Click on the link of the IP address
Click to Enlarge
- The detail screen will come. In the details screen, search for the word "template"
Click to Enlarge
- Click on the "Export template" button
- A screen will come from where templates can be downloaded
Click to Enlarge
- Click on the "Download" button to download the template in zip format
- In the zip file, there are 2 files i.e. "parameters.json" and "template.json"
Click to Enlarge
Create The Custom Template And Set The JSON
- Go to "Templates"
Click to Enlarge
- Add a new template by clicking on the "Add" button
Click to Enlarge
- In the add screen, enter the "Name", "Description" and click on the "Ok" button
Click to Enlarge - In the next window, enter the content of the "template.json" file downloaded from the previous step
Click to Enlarge
- Click on the "Ok" button
- In the next screen, click on the "Add" button to add the custom template
Click to Enlarge
Deploy The Resource
- In the "Templates" screen, click on the link
Click to Enlarge
- Details screen will come. In the detail screen, click on the "Deploy" button
Click to Enlarge
- Custom deployment screen will come. In the custom deployment screen, select "RG2" as a resource group and click on the "Purchase" button
Click to Enlarge- Deployment will start. Once the deployment is completed, go to "RG2" and check the "Deployment"
Click to Enlarge