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": "2018-05-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 2018-05-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 Description
Create a resourceGroup, apply a lock and RBAC

Deploy to Azure
This template is a subscription level template that will create a resourceGroup, apply a lock the the resourceGroup and assign contributor permssions to the supplied principalId. Currently, this template cannot be deployed via the Azure Portal.