Microsoft.Resources tags 2021-01-01
To learn about applying tags through ARM templates or Bicep files, see Use tags to organize your Azure resources and management hierarchy.
The tags resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Resources/tags resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Resources/tags@2021-01-01' = {
scope: resourceSymbolicName or scope
name: 'default'
properties: {
tags: {
{customized property}: 'string'
}
}
}
Name | Description | Value |
---|---|---|
name | The resource name | 'default' (required) |
properties | The set of tags. | Tags (required) |
scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the extension resource. |
Name | Description | Value |
---|---|---|
tags | Dictionary of <string> | Tags |
Name | Description | Value |
---|
The tags resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Resources/tags resource, add the following JSON to your template.
{
"type": "Microsoft.Resources/tags",
"apiVersion": "2021-01-01",
"name": "string",
"properties": {
"tags": {
"{customized property}": "string"
}
}
}
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2021-01-01' |
name | The resource name | 'default' (required) |
properties | The set of tags. | Tags (required) |
type | The resource type | 'Microsoft.Resources/tags' |
Name | Description | Value |
---|---|---|
tags | Dictionary of <string> | Tags |
Name | Description | Value |
---|
The tags resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Resources/tags resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Resources/tags@2021-01-01"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
tags = {
{customized property} = "string"
}
}
})
}
Name | Description | Value |
---|---|---|
name | The resource name | 'default' (required) |
parent_id | The ID of the resource to apply this extension resource to. | string (required) |
properties | The set of tags. | Tags (required) |
type | The resource type | "Microsoft.Resources/tags@2021-01-01" |
Name | Description | Value |
---|---|---|
tags | Dictionary of <string> | Tags |
Name | Description | Value |
---|