Microsoft.Resources tags

ARM template resource definition

The tags resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.

Valid deployment scopes for the tags resource are:

For a list of changed properties in each API version, see change log.

Remarks

To learn about applying tags through ARM templates or Bicep files, see Use tags to organize your Azure resources and management hierarchy.

Resource format

To create a Microsoft.Resources/tags resource, add the following JSON to your template.

{
  "type": "Microsoft.Resources/tags",
  "apiVersion": "2022-09-01",
  "name": "default",
  "scope": "string",
  "properties": {
    "tags": {
      "tagName1": "tagValue1",
      "tagName2": "tagValue2"
    }
  }
}

Property values

tags

Name Description Value
type The resource type 'Microsoft.Resources/tags'
apiVersion The resource api version '2022-09-01'
name The resource name 'default'
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For JSON, set the value to the full name of the resource to apply the extension resource to.
properties The set of tags. Tags (required)

Tags

Name Description Value
tags Dictionary of {string} object