Open sommkh opened 1 week ago
Tried to check the code to see what's going on with this connection string: relevant line - 913.
state.AppSettings
is initialized from the AppSettings from the Function App in Azure.WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
, if it is not present, then assign the new value with the new access key.
⚠ Of course, the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
is already present - we just read it ⚠Let me summon authors of the previous PRs into this thread: @xiaxyi @jackofallops
Please correct me if I'm wrong in the code analysis
Is there an existing issue for this?
Community Note
Terraform Version
1.7.1
AzureRM Provider Version
3.116.0
Affected Resource(s)/Data Source(s)
azurerm_windows_function_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING should have been updated if a new key is rotated for the storage account, it even says so in the plan that it needs to change it.
Actual Behaviour
WEBSITE_CONTENTAZUREFILECONNECTIONSTRING retains the old key for the connection string for the storage account and it fails to update.
Steps to Reproduce
Important Factoids
No response
References
Multiple such issues have been raised and on of them has been closed as well - https://github.com/hashicorp/terraform-provider-azurerm/issues/22174.
Other links maybe there as well - https://github.com/hashicorp/terraform-provider-azurerm/issues/21140 and https://github.com/hashicorp/terraform-provider-azurerm/pull/21212