diff --git a/azurerm/resource_arm_management_group.go b/azurerm/resource_arm_management_group.go index 21a8554d3901..d8b9a27caf49 100644 --- a/azurerm/resource_arm_management_group.go +++ b/azurerm/resource_arm_management_group.go @@ -159,7 +159,7 @@ func resourceArmManagementGroupCreateUpdate(d *schema.ResourceData, meta interfa log.Printf("[DEBUG] Assigning Subscription ID %q to management group %q", subscriptionId, groupId) _, err = subscriptionsClient.Create(ctx, groupId, subscriptionId, managementGroupCacheControl) if err != nil { - return fmt.Errorf("[DEBUG] Error assigning Subscription ID %q to Management Group %q", subscriptionId, groupId) + return fmt.Errorf("[DEBUG] Error assigning Subscription ID %q to Management Group %q: %+v", subscriptionId, groupId, err) } }