Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions arm/Microsoft.Resources/tags/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ output name string = (!empty(resourceGroupName) && !empty(subscriptionId)) ? tag

@description('The applied tags.')
output tags object = (!empty(resourceGroupName) && !empty(subscriptionId)) ? tags_rg.outputs.tags : tags_sub.outputs.tags

@description('The resource ID of the applied tags.')
output resourceId string = (!empty(resourceGroupName) && !empty(subscriptionId)) ? tags_rg.outputs.resourceId : tags_sub.outputs.resourceId
1 change: 1 addition & 0 deletions arm/Microsoft.Resources/tags/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ Tag names and tag values can be provided as needed. A tag can be left without a
| Output Name | Type | Description |
| :-- | :-- | :-- |
| `name` | string | The name of the tags resource. |
| `resourceId` | string | The resource ID of the applied tags. |
| `tags` | object | The applied tags. |
4 changes: 2 additions & 2 deletions arm/Microsoft.Resources/tags/resourceGroups/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ resource tag 'Microsoft.Resources/tags@2019-10-01' = {
@description('The name of the tags resource.')
output name string = tag.name

@description('The resourceId of the resource group the tags were applied to.')
output resourceId string = resourceGroup().id
@description('The resource ID of the applied tags.')
output resourceId string = tag.id

@description('The name of the resource group the tags were applied to.')
output resourceGroupName string = resourceGroup().name
Expand Down
2 changes: 1 addition & 1 deletion arm/Microsoft.Resources/tags/resourceGroups/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ Tag names and tag values can be provided as needed. A tag can be left without a
| :-- | :-- | :-- |
| `name` | string | The name of the tags resource. |
| `resourceGroupName` | string | The name of the resource group the tags were applied to. |
| `resourceId` | string | The resourceId of the resource group the tags were applied to. |
| `resourceId` | string | The resource ID of the applied tags. |
| `tags` | object | The applied tags. |
3 changes: 3 additions & 0 deletions arm/Microsoft.Resources/tags/subscriptions/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ output name string = tag.name

@description('The applied tags.')
output tags object = newTags

@description('The resource ID of the applied tags.')
output resourceId string = tag.id
1 change: 1 addition & 0 deletions arm/Microsoft.Resources/tags/subscriptions/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ Tag names and tag values can be provided as needed. A tag can be left without a
| Output Name | Type | Description |
| :-- | :-- | :-- |
| `name` | string | The name of the tags resource. |
| `resourceId` | string | The resource ID of the applied tags. |
| `tags` | object | The applied tags. |