Microsoft.Resources resourceGroups template reference

Template format

To create a Microsoft.Resources/resourceGroups resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.Resources/resourceGroups",
  "apiVersion": "2019-10-01",
  "location": "string",
  "tags": {},
  "properties": {

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Resources/resourceGroups object

Name Type Required Value
name string Yes The name of the resource group to create or update. Can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.
type enum Yes Microsoft.Resources/resourceGroups
apiVersion enum Yes 2019-10-01
location string Yes The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations.
tags object No The tags attached to the resource group.
properties object Yes The resource group properties.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Deploy
Create a resourceGroup, apply a lock and RBAC Currently, the portal does not support subscription-level deployments. Use PowerShell (New-AzDeployment), Azure CLI (az deployment create), or REST API (Deployments - Create At Subscription Scope).