-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_linux_function_app doesn't save any property of the cors section in state files -- support_credentials or allowed_origins need to be modified always #22879
Comments
Thanks @Joseluismantilla for raising this issue, may i know if the value that you set to cors is the default one like below?
|
Wichever value you assign there, it isn't being saved in the TF state file, therefore, every time it'll be updated, in fact you can ignore it to apply the default value in tf, the result is the same finally. |
I'm having the same issue on |
Still affects Terraform v1.5.7 Ignore changes is also not excluding this:
|
I'm also facing the same issue with |
Is there an existing issue for this?
Community Note
Terraform Version
1.5.4
AzureRM Provider Version
3.67,3.68
Affected Resource(s)/Data Source(s)
azurerm_linux_function_app
Terraform Configuration Files
Debug Output/Panic Output
The TF state file doesn't save any value for the cors section applying always the support_credentials default value every time you execute it.
Expected Behaviour
Save the current values in the tf state file.
Actual Behaviour
TF is not saving the cors section in the state file, applying always changes that it doesn't detect nor save. If you have 20 function apps, you must change these for the cors section, commonly, support_credentials if you don't set any value at allowed_origins.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: