Open cveld opened 5 months ago
Hi @cveld , thanks for submitting this!
The API does not returns correct resource providers used if nested template(perform a deployment inside template_content
) is used, as in https://github.com/Azure/azure-rest-api-specs/issues/28517, I have submitted PR https://github.com/hashicorp/terraform-provider-azurerm/pull/25466 to handle this.
Is there an existing issue for this?
Community Note
Terraform Version
1.7.1
AzureRM Provider Version
3.97.1
Affected Resource(s)/Data Source(s)
azurerm_resource_group_template_deployment
Terraform Configuration Files
nested.bicep:
Debug Output/Panic Output
https://gist.github.com/cveld/281f7f785da48c47cb6c68235d7f9527
Expected Behaviour
The nested microsoft.insights/activityLogAlerts resource should have been deleted successfully.
Actual Behaviour
The provider errors and is not able to remove the nested resource:
Steps to Reproduce
terraform apply -auto-approve terraform destroy -auto-approve
Important Factoids
No response
References
No response