Open bertsch-ronja-office opened 4 days ago
I did some testing and I could verify the described situation; however, I think that is intended and not a bug.
The provider is taking the value from storage_account_name
and using it to populate the AppSetting, so the explicit definition is redundant and discouraged (check docs). That been said, I would recommend you to just remove AzureWebJobsStorage__accountName
from AppSettings.
@CorrenSoft Thanks a lot for the hint - I removed the value from the config and everything worked out :)
Still I would not say that it is clear from the docs that such settings should not be explicitly set as it says:
~> Note: For storage related settings, please use related properties that are available such as storage_account_access_key, terraform will assign the value to keys such as WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, AzureWebJobsStorage in app_setting.
I am missing the information that the explicit definition is redundant and discouraged - could you add this in a more specific way?
@CorrenSoft Thanks a lot for the hint - I removed the value from the config and everything worked out :)
Happy to help :)
Still I would not say that it is clear from the docs that such settings should not be explicitly set as it says:
~> Note: For storage related settings, please use related properties that are available such as storage_account_access_key, terraform will assign the value to keys such as WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, AzureWebJobsStorage in app_setting.
I am missing the information that the explicit definition is redundant and discouraged - could you add this in a more specific way?
Well, my words are my conclusion after reading that paragraph and observing the behavior of the resource, not what the text actually says... so yes, it could be clearer.
I would like to have confirmation from the maintainers, in case I got it wrong. If that, I can submit a PR.
Is there an existing issue for this?
Community Note
Terraform Version
1.9.4
AzureRM Provider Version
4.7.0
Affected Resource(s)/Data Source(s)
azurerm_windows_function_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
No changes as the setting is not new. /
Actual Behaviour
TF apply succeeds, but the setting AzureWebJobsStorage__accountName is never added to the state file.
Steps to Reproduce
Execute terraform apply twice
Important Factoids
-
References
-