-
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 Storage options not working #19134
Comments
Thanks @rdvansloten for raising this issue, may I know the service plan? Is it standard plan or premium/ elastic? |
@xiaxyi I am using Consumption (Y) tier. Another thing is that if I deploy via Terraform and set these settings manually, I am unable to push Python code via VS Code. I have to create the Functions manually, then import. It seems that this env var needs to be set at create time, or the storage never gets linked. |
@rdvansloten I will raise a pr for the fix, the current provider didn't sets this property for consumption plan. |
@rdvansloten , you can track the status in the pr #18258 |
This functionality has been released in v3.48.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.2.0
AzureRM Provider Version
3.29.1
Affected Resource(s)/Data Source(s)
azurerm_linux_function_app
Terraform Configuration Files
Expected Behaviour
storage_account_name and storage_account_access_key are set, and the promised vars should have been generated. They have not.
From the docs:
"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."
AzureWebJobsStorage vars are set, but WEBSITE_CONTENTAZUREFILECONNECTIONSTRING and WEBSITE_CONTENTSHARE are not.
When creating through the Portal, this all works. The docs are either wrong or incomplete, or the module is not doing what it should.
Actual Behaviour
The environment variables that were promised, are not generated. This causes deployments to fail, because there is no storage.

Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: