Skip to content

Add tags to an azure subscription via terraform

License

Notifications You must be signed in to change notification settings

qbeyond/terraform-azapi-subscription-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Add tags to an azure subscription via terraform

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages