Skip to content

Commit

Permalink
Merge pull request #5 from fjdev/fix/subscription-references
Browse files Browse the repository at this point in the history
Update azurerm_subscription data source references
  • Loading branch information
fjdev authored Jul 10, 2024
2 parents 6757560 + 0e97b7c commit 3aa70b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "azurerm_billing_mpa_account_scope" "mpa" {
data "azurerm_subscriptions" "created" {
display_name_contains = var.subscription_name

depends_on = [azurerm_subscription.subscription]
depends_on = [azurerm_subscription.sub]
}

data "azurerm_management_group" "mg" {
Expand Down
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ output "subscription_id" {

output "subscription_name" {
description = "The Name of the Alias."
value = azurerm_subscription.subscription.subscription_name
value = azurerm_subscription.sub.subscription_name
}

output "tenant_id" {
description = "The ID of the Tenant to which the subscription belongs."
value = azurerm_subscription.subscription.tenant_id
value = azurerm_subscription.sub.tenant_id
}

0 comments on commit 3aa70b2

Please sign in to comment.