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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Versions
terraform: 1.9.5
azure provider: 3.116.0
module: 6.1.0
Description
Describe the bug
diagnostic settings deployed for management groups as part of the core module, using the variable "deploy_diagnostics_for_mg" are constantly destroyed and recreated.
Often the recreation of these resources will fail causing the pipeline to fail and requiring another deployment to resolve.
Steps to Reproduce
Deploy CORE module with the "deploy_diagnostics_for_mg" variable set to true
push an update
plan / apply will remove and attempt to recreate the resources
Often the recreation will fail due no sleep between actions
Screenshots
Additional context
This appears to be related to a long outstanding issue with the location field on diagnostic settings which are created through azapi -
Community Note
Versions
terraform: 1.9.5
azure provider: 3.116.0
module: 6.1.0
Description
Describe the bug
diagnostic settings deployed for management groups as part of the core module, using the variable "deploy_diagnostics_for_mg" are constantly destroyed and recreated.
Often the recreation of these resources will fail causing the pipeline to fail and requiring another deployment to resolve.
Steps to Reproduce
Screenshots
Additional context
This appears to be related to a long outstanding issue with the location field on diagnostic settings which are created through azapi -
Azure/terraform-provider-azapi#511
A possible solution/workaround appears to be to set a location ('global') for the resource to avoid the recreation ?
The text was updated successfully, but these errors were encountered: