Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating a azurerm_subscription resource with 3.94 version #25164

Closed
1 task done
JoelCanteroGCO opened this issue Mar 6, 2024 · 2 comments · Fixed by #25181
Closed
1 task done

Error creating a azurerm_subscription resource with 3.94 version #25164

JoelCanteroGCO opened this issue Mar 6, 2024 · 2 comments · Fixed by #25181

Comments

@JoelCanteroGCO
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.6.6

AzureRM Provider Version

3.94

Affected Resource(s)/Data Source(s)

azurerm_subscription

Terraform Configuration Files

resource "azurerm_subscription" "subscription" {
  subscription_name = data.azurerm_subscription.current.display_name
  subscription_id = data.azurerm_subscription.current.subscription_id
  tags = {
    "ProjectDescription" = var.project_description
    "BusinessUnit" = var.business_unit
    "Env" = var.env
    "OwnerEmail" = var.owner_email
    "OwnerName" = var.owner_name
    "RequesterEmail" = var.requester_email
    "RequesterName" = var.requester_name
    "StartDate" = var.start_date
  }
}

Debug Output/Panic Output

│ Error: failed reading Subscription Alias list: no aliases were returned
│
│   with module.subscription_tags.azurerm_subscription.subscription,
│   on .terraform/modules/subscription_tags/modules/subscription-tags/main.tf line 18, in resource "azurerm_subscription" "subscription":
│   18: resource "azurerm_subscription" "subscription" {
│

Expected Behaviour

The expected behaviour is that the azurerm_subscription resource creates an alias an put these tags into this subscription.

I have tested this same code with 3.93 version and works. It fails with the 3.94 version.

Actual Behaviour

It throws this error.

Steps to Reproduce

  1. terraform apply

Important Factoids

No response

References

No response

@rcskosir
Copy link
Contributor

rcskosir commented Mar 8, 2024

Thank you for taking the time to open this issue. Please subscribe to PR #25181 created by @teowa for this issue.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants