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
Error: web.AppsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible." Details=[{"Message":"Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"99022","Message":"Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible.","MessageTemplate":"Creation of storage file share failed with: '{0}'. Please check if the storage account is accessible.","Parameters":["The remote server returned an error: (403) Forbidden."]}}]
Steps to Reproduce
terraform apply --> error
change azurerm to version 2.76.0
terraform init -upgrade
terraform apply --> no error
Important Factoids
It seems that 2.77.0 automatically sets WEBSITE_CONTENTSHARE and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING, while 2.76.0 does not do it. According to this comment not setting WEBSITE_CONTENTSHARE and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING allows to deploy a Premium Plan when the network access to the storage account is restricted.
I think this new behaviour was introduced with #13349.
To conclude, is my error a bug or expected behavior? If it is expected behavior, any ideas how to make my config work in 2.77.0? I tried to set WEBSITE_CONTENTSHARE and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING explicitly to empty strings, but the log shows that they get overwritten.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v1.0.7
azurerm v2.77.0
Affected Resource(s)
azurerm_function_app
Terraform Configuration Files
Debug Output
While looking at the logs I found the following relevant difference between the 2.77.0 run and the 2.76.0 run.
Panic Output
Expected Behaviour
Configuration is applied without error.
Actual Behaviour
Terraform throws the following error:
Error: web.AppsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible." Details=[{"Message":"Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"99022","Message":"Creation of storage file share failed with: 'The remote server returned an error: (403) Forbidden.'. Please check if the storage account is accessible.","MessageTemplate":"Creation of storage file share failed with: '{0}'. Please check if the storage account is accessible.","Parameters":["The remote server returned an error: (403) Forbidden."]}}]
Steps to Reproduce
terraform apply
--> errorazurerm
to version2.76.0
terraform init -upgrade
terraform apply
--> no errorImportant Factoids
It seems that
2.77.0
automatically setsWEBSITE_CONTENTSHARE
andWEBSITE_CONTENTAZUREFILECONNECTIONSTRING
, while2.76.0
does not do it. According to this comment not settingWEBSITE_CONTENTSHARE
andWEBSITE_CONTENTAZUREFILECONNECTIONSTRING
allows to deploy a Premium Plan when the network access to the storage account is restricted.I think this new behaviour was introduced with #13349.
To conclude, is my error a bug or expected behavior? If it is expected behavior, any ideas how to make my config work in
2.77.0
? I tried to setWEBSITE_CONTENTSHARE
andWEBSITE_CONTENTAZUREFILECONNECTIONSTRING
explicitly to empty strings, but the log shows that they get overwritten.The text was updated successfully, but these errors were encountered: