-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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_function_app_host_keys is highly unstable #9869
Comments
Having the same issue. Hoped that it will be fixed with more stable depends_on for data sources starting 0.13, but unfortunately having the same issue. Time resource upon the function recreation also works not well. |
Thanks for opening this issue. Taking a look through here this appears to be an issue with Terraform Core not enforcing the ordering correctly, rather than an issue with this Data Source directly (which assumes the Function App, and so it's keys are present at use time) - as such would you mind opening an issue on the Terraform Core repository where someone from the Terraform Core team should be able to take a look? Thanks! |
I'd disagree, that it relates to the core layer. Instead, in my humble opinion it relates to Azure API more. Looks like the function reports that it's ready before it's actually ready. |
@DovnarAlexander I guess you have to distinguish between the Function App creation and the deployment of the functions. See #8415. |
@DovnarAlexander We are on 0.14, it did not help at all and got worse |
@tombuildsstuff Even if it is, all references to this bug in the core where dismissed in the past. Since I want to use azurerm now and not in the distant future it would be great if all of azurerm would be usable right now. And this data source is highly dangerous and jsut does not work. The easiest (and fastest) solution would be for azurerm to make it a resource I guess. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Terraform 0.14
azurerm: 2.40.0
codecentric/leanix: 1.0.0-rc4
Affected Resource(s)
data azurerm_function_app_host_keys
Terraform Configuration Files
Debug Output
Expected Behaviour
This should always work.
Actual Behaviour
Sometimes it stods working , apparently because tf reads the function key too early and damages the entire function app, e.g. host keys vanish from the function app in azure and we need to redeploy the whole function.
Output is:
Error: Error: AzureRM Function App "func-name" (Resource Group "rg-gi-name") was not found
on it-azure-module/func.tf line 96, in data "azurerm_function_app_host_keys" "host_keys":
96: data "azurerm_function_app_host_keys" "host_keys" {
The error is also incorrect because the function itself is still there, only the host keys are missing and terraform is unable to recover.
Honestly, I cannot recommend azurerm_function_app_host_keys at all, it would be better to remove it until it is stable enough for production usage.
as is, it randomly breaks deployments and needs a lot of manual work to recover.
Steps to Reproduce
Run an function deployment often enough, e.g. modify the function to zip.
The text was updated successfully, but these errors were encountered: