-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Management Groups Don't Work So Well #8023
Comments
There are some parallels to #8251 . |
I cannot really see, whether something was already done here, but I assume the problem is that the existing value differs from the new one - in this case it is a form of case-sensitivity:
To be precise ".../ManagementGroups/test" vs ".../managementGroups/test" |
Thanks for opening this issue! Since this issue has been reported a long time ago and relates to an older version of provider - I'm going to close it. If this is still relevant and occurring on the latest version of terraform and provider please do open a new issue! |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_management_group
data.azurerm_management_group
Terraform Configuration Files
Debug Output
n/a
Panic Output
n/a
Expected Behavior
Should be able to import an existing management group that uses a specific name rather than a GUID.
Should be able to use the data resource to reference a previously created management group
Actual Behavior
If you have a management group that uses a specific name rather than a GUID, It won't get imported. It'll be created ok, but you can't manage existing resources.
Furthermore, trying to use the data resource, results in a case change for the id, which means anything depending on this, such as roles think they need recreating.
Steps to Reproduce
terraform apply
Important Factoids
Error: Error parsing Resource ID "/providers/Microsoft.Management/ManagementGroups/test": Unable to parse Management Group ID "/providers/Microsoft.Management/ManagementGroups/test"
References
The text was updated successfully, but these errors were encountered: