-
Notifications
You must be signed in to change notification settings - Fork 447
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
Functions disappear from app after arm template deploy #8189
Comments
Hi @SanderDeclerck , You can find the information related to your issue here. Please let us know if it helps. |
Thanks for looking into this @Ved2806. I'm mainly concerned about 2 things that don't seem to be documented: First: What would be a valid setting for WEBSITE_RUN_FROM_PACKAGE when someone only wants to deploy the infrastructure - and not his app?
Second: Since the setting is using a SAS token - with a maximum expiry date of a year. What happens if the app doesn't get deployed for a year and the SAS token expires? I guess most of it comes down to the question: is the function team planning on implementing WEBSITE_RUN_FROM_PACKAGE = 1 for consumption based linux function apps some point in the future? Is there already an open issue for that? |
Hi @pragnagopa Could you please look into this? |
This needs investigation. Tagging @eliaslopezgt @amamounelsayed @kulkarnisonia16 for triage cc @balag0 |
Yes we are working on WEBSITE_RUN_FROM_PACKAGE=1 for Linux Consumption Apps |
@anirudhgarg Thanks for the update. Is there any issue I can follow to track the status of WEBSITE_RUN_FROM_PACKAGE=1 for Linux Consumption Apps? Perhaps this issue can be linked to the WEBSITE_RUN_FROM_PACKAGE=1 so it can be closed. |
I have the same problem with Premium plan (EP1):
What would be the correct workflow to update infrastructure using ARM/Bicep without losing the deployed function? |
I just hit this issue today - minor bicep change and my function went offline. my to cents would be to leave WEBSITE_RUN_FROM_PACKAGE alone if not present in the bicep script |
Same here with EP2 plan, if I don't include the |
I am facing similar issue too and ideally WEBSITE_RUN_FROM_PACKAGE should not be overridden until unless explicitly defined in arm template, although I do understand it will break the consistency. So there should be a better way of solving this, but the current behavior is not desirable |
I'm using an EP plan, deploying the function from Bicep and then deploying the function code with a release pipeline without issue. What does your bicep file and release deployment step look like? |
I have the same problem after applying terraform configuration. It looks like it is similar problem. I couldn't find any examples how to do it properly. The goal is to create azure functions with terraform (or arm template) and deploy code with github actions. |
Similar discussion within scope of Bicep templating here: Azure/bicep-registry-modules#949 Retaining configuration values is possible but required extra templating and/or extra tools. |
This is a good workaround for until its fixed somehow in a different way https://stackoverflow.com/a/72946083/4479322. I just tried it in the app and works nicely. |
Are there any news on this:
|
Are there any news? |
Is suggest subscribing also Azure/bicep-registry-modules#949 for a reference. Sadly looks like the issue is being stalled on AVM too. |
It's been little bit less than 2 years and still no answer ? Was it an April fool's joke ? |
I just want to bump this back up. I run into the same error when I run |
I can confirm this is still happen. |
thats actually crazy, that after 2yrs there's no actual progress on this.. |
We are also affected. We use Terraform to maintain several Function apps. There was a change in the Application Insight connection string, so it made a minor change in that property of the Function apps. As a side effect, the value The Is there any progress here? Is there any cure for that? I am afraid of making any change in the infrastructure because it can silently remove my application from the Function app as a side effect. |
For those using Azure Bicep to provision infrastructure, a workaround I've used for myself is this: https://blog.dotnetstudio.nl/posts/2021/04/merge-appsettings-with-bicep/ From the article's introduction:
Basically, it merges any new settings you're implementing with the current settings of the app. |
This behavior is absolutely insane, unsafe, and unexpected. We explicitly ignore the |
Someone from ACA PG recommended me to open support ticket when I mentioned this issue on an interview. Flexible consumption function app introduces some changes for function app config but TBH not enough. There should be dedicated sections for IaC driven configs and function app developer driven configs. |
Investigative information
Please provide the following:
Repro steps
Provide the steps required to reproduce the problem:
WEBSITE_RUN_FROM_PACKAGE
to 1WEBSITE_RUN_FROM_PACKAGE
setting tohttps://{storage_account}/azure-pipelines-deploy/{package_name}?{SAS token}
Expected behavior
The functions should still exist in the function app, and the function app should still work
Actual behavior
The setting
WEBSITE_RUN_FROM_PACKAGE
is reset to 1 and the functions disappear from the app.The text was updated successfully, but these errors were encountered: