Deploying JSON Templates Using the Azure Portal
In this post, I will show you how to deploy an Azure JSON template from the Azure Portal using the (still in preview) Templates feature.
Note: This feature is still in preview so some functionality might change, and it is in the Azure Portal, so names and locations will change after this article is published.
Uploading a JSON Template
I am going to upload an Azure JSON template file that I previously created in the post Deploying Multiple Resources Using an Azure JSON File. Open the JSON file in VS Code and then log into the Azure Portal using your browser. Navigate to Templates in the Azure Portal and click Add.
You are asked to enter a name and description for the new template. I suggest that you version your new template; you will create new versions to change functionality and fix bugs, and you will want the ability to switch between versions.
The Azure Portal will perform a quick validation – this is little more than a syntax check and does not validate that a deployment can take place.
Click Add and your template will be saved; wait for a notification to say that the template has been successfully saved. You should see your new template when you click the Refresh action in the Templates blade.
Deploying a Template in the Azure Portal
Browse to your template in the Templates blade. Click the Deploy action in the new template.
Note: The Custom Deployment blade was recently changed (quite a bit), and it will probably change again after this article is published.
The Custom Deployment blade appears. This screen allows you to select the subscription, resource group (new or existing) and region that you want to deploy into. Each of the parameters from the JSON file appears under settings. Any default values are pre-entered for you, and you can enter/modify parameter values to customize your deployment. Remember that some items, such as storage accounts, require globally unique names, and some items, such as networks, should be unique in your organization (to allow routing between on-premises and/or cloud networks).
Azure will validate (as much as it can) the deployment that will take place and start deploying your JSON template, which you can monitor in the new/existing resource group.
More in Cloud Computing
Here Are The Main Highlights From Amazon's AWS re:Invent 2022 Conference
Nov 30, 2022 | Michael Otey
What is ClickUp?
Nov 28, 2022 | Sukesh Mudrakola
How to Install Google Drive for Desktop (Install & Set Up)
Nov 23, 2022 | Rabia Noureen
Amazon Announces $4.4B Investment in India with New AWS Region
Nov 22, 2022 | Rabia Noureen
Amazon Launches AWS Resource Explorer With Unified Search Capabilities
Nov 18, 2022 | Michael Otey
Microsoft Partners with Nvidia to Build Azure-Powered AI Supercomputer
Nov 16, 2022 | Rabia Noureen
Most popular on petri