您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

Define resources with Bicep and ARM templates

When creating Bicep files or Azure Resource Manager templates (ARM templates), you need to understand what resource types are available, and what values to use in your template. The Azure resource reference documentation provides these values. The syntax is shown in both Bicep and ARM template JSON.

Learn how to create Bicep files

For an introduction to working with Bicep files, see Quickstart: Create Bicep files with Visual Studio Code.

To learn about ARM templates through a guided set of modules on Microsoft Learn, see Deploy and manage resources in Azure by using Bicep.

Microsoft recommends that you use VS Code to create Bicep files. For more information, see Install Bicep tools.

Bicep file structure

To learn about the sections of a Bicep file, see Understand the structure and syntax of Bicep files.

To determine locations that available for a resource type, see Set location in Bicep.

To add tags to resources, see Tag resources in Bicep files.

Learn how to create ARM templates

For an introduction to working with templates, see Tutorial: Create and deploy your first ARM template.

To learn about ARM templates through a guided set of modules on Microsoft Learn, see Deploy and manage resources in Azure by using ARM templates.

Microsoft recommends that you use VS Code to create ARM templates. When you add the Azure Resource Managed tools extension, you get intellisense for the template properties. For more information, see Quickstart: Create ARM templates with Visual Studio Code.

ARM template structure

To learn about the sections of an ARM template, see Understand the structure and syntax of ARM templates.

To determine locations that available for a resource type, see Set location in templates.

To set the deployment order, see Define the order for deploying resources in ARM templates.

To add tags to resources, see Tag resources in Azure Resource Manager templates.

Find resources

If you know the resource type, you can go directly to it with the following URL format: https://docs.microsoft.com/azure/templates/{provider-namespace}/{resource-type}. For example, the SQL database reference content is available at: https://docs.microsoft.com/azure/templates/microsoft.sql/servers/databases.

The resource types are located under the Reference node. Expand the resource provider that contains the type you are looking for. The following image shows the types for Compute.

show resource types

Or, you can filter the resource types in navigation pane:

filter resource types