Deploy resources with Resource Manager templates and Azure portal
Deploying Azure resources by using the Azure portal usually involves two steps:
- Create a resource group.
- Deploy resources to the resource group.
In addition, you can also deploy an Azure Resource Manager template to create Azure resources.
This article shows both methods.
Create a resource group
To create a new resource group, select Resource groups from the Azure portal.
Under Resource groups, select Add.
Select or enter the following property values:
- Subscription: Select an Azure subscription.
- Resource group: Give the resource group a name.
- Region: Specify an Azure location. This is where the resource group stores metadata about the resources. For compliance reasons, you may want to specify where that metadata is stored. In general, we recommend that you specify a location where most of your resources will reside. Using the same location can simplify your template.
Select Review + create.
review the values, and then select Create.
Select Refresh before you can see the new resource group in the list.
Deploy resources to a resource group
After you create a resource group, you can deploy resources to the group from the Marketplace. The Marketplace provides pre-defined solutions for common scenarios.
To start a deployment, select Create a resource from the Azure portal.
Find the type of resource you would like to deploy. The resources are organized in categories. If you don't see the particular solution you would like to deploy, you can search the Marketplace for it. The following screenshot shows that Ubuntu Server is selected.
Depending on the type of selected resource, you have a collection of relevant properties to set before deployment. For all types, you must select a destination resource group. The following image shows how to create a Linux virtual machine and deploy it to the resource group you created.
Alternatively, you can decide to create a resource group when deploying your resources. Select Create new and give the resource group a name.
Your deployment begins. The deployment could take several minutes. Some resources take longer time than other resources. When the deployment has finished, you see a notification. Select Go to resource to open
After deploying your resources, you can add more resources to the resource group by selecting Add.
Deploy resources from custom template
If you want to execute a deployment but not use any of the templates in the Marketplace, you can create a customized template that defines the infrastructure for your solution. To learn about creating templates, see Understand the structure and syntax of Azure Resource Manager templates.
To deploy a customized template through the portal, select Create a resource, search for template. and then select Template deployment.
You see several options for creating a template:
- Build your own template in editor: create a template using the portal template editor. The editor is capable to add a resource template schema.
- Common templates: There are four common templates for creating a Linux virtual machine, Windows virtual machine, a web application, and an Azure SQL database.
- Load a GitHub quickstart template: use an existing quickstart templates.
This tutorial provides the instruction for loading a quickstart template.
Under Load a GitHub quickstart template, type or select 101-storage-account-create.
You have two options:
- Select template: deploy the template.
- Edit template: edit the quickstart template before you deploy it.
Select Edit template to explore the portal template editor. The template is loaded in the editor. Notice there are two parameters: storageAccountType and location.
Make a minor change to the template. For example, update the storageAccountName variable to:
"storageAccountName": "[concat('azstore', uniquestring(resourceGroup().id))]"
Select Save. Now you see the portal template deployment interface. Notice the two parameters that you defined in the template.
Enter or select the property values:
- Subscription: Select an Azure subscription.
- Resource group: Select Create new and give a name.
- Location: Select an Azure location.
- Storage Account Type: Use the default value.
- Location: Use the default value.
- I agree to the terms and conditions stated above: (select)
- To view audit logs, see Audit operations with Resource Manager.
- To troubleshoot deployment errors, see View deployment operations.
- To export a template from a deployment or resource group, see Export Azure Resource Manager templates.
- To safely roll out your service across multiple regions, see Azure Deployment Manager.