https://github.com/fjdev/terraform-azurerm-subscription
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.
https://github.com/fjdev/terraform-azurerm-subscription
azurerm base subscription terraform
Last synced: 5 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/fjdev/terraform-azurerm-subscription
- Owner: fjdev
- License: mit
- Created: 2024-05-13T07:46:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T16:28:24.000Z (over 1 year ago)
- Last Synced: 2024-11-28T16:31:18.698Z (over 1 year ago)
- Topics: azurerm, base, subscription, terraform
- Language: HCL
- Homepage: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subscription
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Requirements
No requirements.
## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | n/a |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [azurerm_management_group_subscription_association.mgsubassoc](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/management_group_subscription_association) | resource |
| [azurerm_subscription.sub](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subscription) | resource |
| [azurerm_billing_enrollment_account_scope.ea](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/billing_enrollment_account_scope) | data source |
| [azurerm_billing_mca_account_scope.mca](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/billing_mca_account_scope) | data source |
| [azurerm_billing_mpa_account_scope.mpa](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/billing_mpa_account_scope) | data source |
| [azurerm_management_group.mg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/management_group) | data source |
| [azurerm_subscriptions.created](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subscriptions) | data source |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [alias](#input\_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](#input\_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](#input\_management\_group\_display\_name) | (Optional) Specifies the display name of this Management Group. | `string` | `null` | no |
| [management\_group\_name](#input\_management\_group\_name) | (Optional) Specifies the name or UUID of this Management Group. | `string` | `null` | no |
| [subscription\_id](#input\_subscription\_id) | (Optional) The ID of the Subscription. Changing this forces a new Subscription to be created. | `string` | `null` | no |
| [subscription\_name](#input\_subscription\_name) | (Required) The Name of the Subscription. This is the Display Name in the portal. | `string` | `null` | no |
| [subscription\_type](#input\_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](#input\_tags) | (Optional) A mapping of tags to assign to the Subscription. | `any` | `null` | no |
| [workload](#input\_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](#output\_subscription\_id) | The Resource ID of the Alias. |
| [subscription\_name](#output\_subscription\_name) | The Name of the Alias. |
| [tenant\_id](#output\_tenant\_id) | The ID of the Tenant to which the subscription belongs. |