Add tags to any azure subscription via terraform
This module uses the ARM-Rest-Api via azapi provider to set tags on an subscription. It is not using the azurerm_subscription resource as this is using other APIs then the ARM Apis which is causing permission problems - especially when using CSP/AzurePlan-Subscriptions.
The tags are added. If a tag already exists it will be overridden. Other existing tags will not be deleted.
Name | Version |
---|---|
azapi | ~>1.15 |
Name | Version |
---|---|
azapi | ~>1.15 |
No modules.
Name | Type |
---|---|
azapi_update_resource.subscription_tags | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
ignore_missing_property | Whether ignore not returned properties like credentials in body to suppress plan-diff | bool |
false |
no |
subscription_id | The GUID of the subscription. | string |
n/a | yes |
tags | Map of tag key and values to apply to subscription. | map(string) |
n/a | yes |
No outputs.