Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.77 KB

File metadata and controls

44 lines (30 loc) · 1.77 KB

Azure Subscription Tagging Terraform module

Add tags to any azure subscription via terraform

Features

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.

Requirements

Name Version
azapi ~>1.15

Providers

Name Version
azapi ~>1.15

Modules

No modules.

Resources

Name Type
azapi_update_resource.subscription_tags resource

Inputs

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

Outputs

No outputs.