Microsoft.Resources tags 2021-04-01

Template format

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

{
  "name": "default",
  "type": "Microsoft.Resources/tags",
  "apiVersion": "2021-04-01",
  "properties": {
    "tags": {
      <tag-names-and-values>
    }
  }
}

Property values

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

Microsoft.Resources/tags object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The name of the tags resource. Use default.
type enum Yes For JSON - Microsoft.Resources/tags
apiVersion enum Yes For JSON - 2021-04-01
properties object Yes The tag properties. - TagsProperties object

TagsProperties object

Name Type Required Value
tags object Yes A dictionary of name and value pairs.