Open morbendor opened 5 months ago
Hi @morbendor , thanks for submitting the issue!
From the shared configurations, I can find that your template used in azurerm_resource_group_template_deployment
is a nested template, which deploy a Microsoft.Resources/deployments
resource, and the Microsoft.Resources/deployments
resource then deploy a Microsoft.Compute/disks
resource. This is simiar to the case in https://github.com/hashicorp/terraform-provider-azurerm/issues/25458.
@teowa Do you think your PR #25466 will also fix this issue?
Yes, PR#25466 is intended to fix this, it is still under review.
Is there an existing issue for this?
Community Note
Terraform Version
1.7.0
AzureRM Provider Version
3.108.0
Affected Resource(s)/Data Source(s)
azurerm_resource_group_template_deployment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The nested Microsoft.Compute/disks resource should have been deleted successfully.
Actual Behaviour
The provider errors and is not able to remove the nested resource:
Error: removing items provisioned by this Template Deployment: API version information for RP "Microsoft.Compute" ("") was not found - nestedResource="/subscriptions/a0-ded2-4f21-b5fe-95276272403c/resourceGroups/rg-networking-test-dev/providers/Microsoft.Compute/disks/vSocket2disk"
Steps to Reproduce
terraform apply -auto-approve terraform destroy -auto-approve
Important Factoids
No response
References
No response