hashicorp / learn-terraform-microsoft-caf-enterprise-scale

https://learn.hashicorp.com/tutorials/terraform/microsoft-caf-enterprise-scale
Mozilla Public License 2.0
7 stars 30 forks source link

Error: failed when waiting for creation of Management Group "tf-cafes" #2

Open autocloudarc opened 2 years ago

autocloudarc commented 2 years ago

Plan: 191 to add, 0 to change, 0 to destroy.

Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve.

Enter a value: yes

module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Creating... module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [10s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [20s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [30s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [40s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [50s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [1m0s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [1m10s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [1m20s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [1m30s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [1m40s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [1m50s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [2m0s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [2m10s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [2m20s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [2m30s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [2m40s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [2m50s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [3m0s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [3m10s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [3m20s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [3m30s elapsed] module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"]: Still creating... [3m40s elapsed] ╷ │ Error: failed when waiting for creation of Management Group "tf-cafes": Future#WaitForCompletion: the number of retries has been exceeded: StatusCode=404 -- Original Error: Code="InProgress" Message="The async operation failed." AdditionalInfo=[{"id":"/providers/Microsoft.Management/managementGroups/tf-cafes","name":"tf-cafes","status":"NotStarted","type":"/providers/Microsoft.Management/managementGroups"}] │ │ with module.enterprise_scale.azurerm_management_group.level_1["/providers/Microsoft.Management/managementGroups/tf-cafes"], │ on .terraform\modules\enterprise_scale\resources.management_groups.tf line 9, in resource "azurerm_management_group" "level_1": │ 9: resource "azurerm_management_group" "level_1" { │ ╵ PS: 12/19/2021 15:03:09> PS: 12/19/2021 15:03:09>terraform -v Terraform v1.1.2 on windows_amd64

krowlandson commented 2 years ago

@autocloudarc please refer to our issue at: https://github.com/Azure/terraform-azurerm-caf-enterprise-scale/issues/239

I believe the underlying problem should be resolved now, but there have been some other reliability issues which can usually be resolved by simply re-running your apply command.