You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Management Group is created and Subscription is moved to ManagementGroup
Actual Behaviour
Error: [DEBUG] Error assigning Subscription ID "/subscriptions/aff5a812-0595-4545-8b0e-527b199b4928" to Management Group "4b713daf-bbf6-fb10-1e3a-b546dedd9f07": managementgroups.SubscriptionsClient#Create: Failure responding to request: StatusCode=500 -- Original Error: autorest/azure: error response cannot be parsed: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/>\r\n<title>500 - Internal server error.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7" error: invalid character '<' looking for beginning of value
on main.tf line 10, in resource "azurerm_management_group" "qby_full_managed":
10: resource "azurerm_management_group" "qby_full_managed" {
The Management Group is created. Just the subscription is not moved.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered:
Hi @WhiteTomX - From the error message provided this appears to be a server-side internal error, rather than a problem with the Provider. Looking at your config, this may be due to the referenced property. You can fix this there by referencing the subscription_id property, which is the subscription's GUID, rather than the Resource ID as provided by .id. I'll take a look at adding some schema validation to help prevent this in future.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked as resolved and limited conversation to collaborators
Apr 11, 2021
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_management_group
Terraform Configuration Files
Debug Output
https://gist.github.com/WhiteTomX/85f3167a325f7477b59171473a2b6ea2
Expected Behaviour
Management Group is created and Subscription is moved to ManagementGroup
Actual Behaviour
The Management Group is created. Just the subscription is not moved.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: