Skip to content

Manages an Alias for a Subscription - which adds an Alias to an existing Subscription, allowing it to be managed in Terraform - or create a new Subscription with a new Alias.

License

Notifications You must be signed in to change notification settings

fjdev/terraform-azurerm-subscription

Repository files navigation

Requirements

No requirements.

Providers

Name Version
azurerm n/a

Modules

No modules.

Resources

Name Type
azurerm_management_group_subscription_association.mgsubassoc resource
azurerm_subscription.sub resource
azurerm_billing_enrollment_account_scope.ea data source
azurerm_billing_mca_account_scope.mca data source
azurerm_billing_mpa_account_scope.mpa data source
azurerm_management_group.mg data source
azurerm_subscriptions.created data source

Inputs

Name Description Type Default Required
alias (Optional) The Alias name for the subscription. Terraform will generate a new GUID if this is not supplied. Changing this forces a new Subscription to be created. string null no
billing_scope_id (Optional) The Azure Billing Scope ID. Can be a Microsoft Customer Account Billing Scope ID, a Microsoft Partner Account Billing Scope ID or an Enrollment Billing Scope ID. string null no
management_group_display_name (Optional) Specifies the display name of this Management Group. string null no
management_group_name (Optional) Specifies the name or UUID of this Management Group. string null no
subscription_id (Optional) The ID of the Subscription. Changing this forces a new Subscription to be created. string null no
subscription_name (Required) The Name of the Subscription. This is the Display Name in the portal. string null no
subscription_type (Optional) The Subscription Type to use and the required parameters for that Subscription Type. Possible values are 'EA', 'MCA' and 'MPA'.
map(object({
billing_account_name = optional(string)
enrollment_account_name = optional(string)
billing_profile_name = optional(string)
invoice_section_name = optional(string)
customer_name = optional(string)
}))
null no
tags (Optional) A mapping of tags to assign to the Subscription. any null no
workload (Optional) The workload type of the Subscription. Possible values are Production (default) and DevTest. Changing this forces a new Subscription to be created. string null no

Outputs

Name Description
subscription_id The Resource ID of the Alias.
subscription_name The Name of the Alias.
tenant_id The ID of the Tenant to which the subscription belongs.

About

Manages an Alias for a Subscription - which adds an Alias to an existing Subscription, allowing it to be managed in Terraform - or create a new Subscription with a new Alias.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages