-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not update Azure resource if only AzApi-specific meta-properties are changed (e.g. retry, lock) #723
Comments
Thanks for this issue @cwe1ss this does seem like a bug with the provider. Are you only fine-tuning for one resource and seeing changes across all the resources configured? |
It only affects the resource where we set it. But since we set the retry-property on many resources, and since we use our modules in many terraform stacks, it often results in many changes. |
Gotcha! Have you set
I know this adds more code, but it should suppress any state diff that is caused from this. |
Will using E.g., if I've initially set |
Your next apply will not set the value to |
Hi all, I think it's better to improve the azapi's behavior that changing the azapi meta-properties won't trigger the http request. |
See #745 |
Whenever we have to fine-tune the
retry
error messages, thelocks
-property (or any other AzAPI meta-property), all existing resources in all our terraform stacks show changes and execute updates to their underlying Azure APIs, even though nothing has actually changed about the resources. This is slow and results in many unnecessary Azure requests.Is there any way for AzApi to fully ignore these changes (showing "No changes" in a terraform plan-step), or at least not execute a call to the underlying Azure API in the terraform apply-step?
The text was updated successfully, but these errors were encountered: