-
Notifications
You must be signed in to change notification settings - Fork 2.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
[BUG]: AzureFunctionApp@2 recommending to add a variable that it removes #18970
Comments
Hi there, thanks for reporting this. Can you share your YAML file? |
|
Hello, @israelhdz08 in order for this to be a consistent experience we need to carry out the following steps.
As the user owns the App Settings we need to follow this order to ensure that the app settings are configured correctly and to support moving from Run From Package =1 from Run From Package =URL. I can see how this might be confusing and if you have any suggestions about how you would like to see this presented. Adding @patelchandni as well. |
This is in our backlog. Will check to see what improvements we could make to help this. |
Same here, this seems more like a bug. We're using deployment method 'runFromPackage'.
Task log: Starting: Deploy FunctionAppTask : Azure Functions Deploy
|
We all of the sudden have the exact same issue @RobinDijkstra is mentioning above. Is there any update about his? We now don't dare to deploy anything to production in fear that we would have the same issue there as well. We already rolled back any of our latest changes, but the issue seems Azure related. The functions all apear running, but they don't process any messages anymore after deploy. Sometimes after rerunning the pipeline it works for several minutes and then breaks down again without any exception being logged (and the status still "running"). |
If you're still seeing this issue can you provide a Site Region and perhaps also check the AppSettings and let me know if you have this app setting? WEBSITE_ENABLE_SYNC_UPDATE_SITE = true or 1 |
Since a couple of weeks, we are facing the same issue using the Yaml:
Task output with warning:
|
We still have the issue but found a work-around by setting the pipeline into debug mode. We did this in order to troubleshoot the issue, but found that when the pipeline is running in debug mode the issue does not occur. Perhaps because of a process taking slightly longer in debug mode so something can complete. But it is strange that this all of the sudden started happening. All of the alterations mentioned within this thread were already tried and did not resolve the issue. |
We're also having the setting WEBSITE_ENABLE_SYNC_UPDATE_SITE = true on all out function apps and are also located in the West Europe region. |
We are also experiencing this issue. Are there any updates? |
Hello all, We've been investigating this issue and there is a timing issue where this can happen.
Our investigations have identified that the AzureRMWebAppDeployment tasks have logic to detect this situation and will wait until Kudu\SCM has the right settings. So if you're running into this issue please let us know if using the AzureRMWebAppDeployment task resolves the issue for you and we are planning to make this change into the Functions Task in the current sprint. |
We are also affected by this and when I tried to reproduce the issue with system.debug set to true I wasn't able to, which might indicate that this is indeed a timing issue that is "resolved" by slowing down the pipeline with debug mode. |
We have a tracking item for the fix for this here Update FunctionApp Task |
@FinVamp1 Thanks, I've found it but there is a character too many in the link. |
Thanks for the spot, I've updated the link. |
#20191 has a fix for this. |
@FinVamp1, any updates on this? We are still experiencing the issue |
We are experiencing this issue too, affecting many of our deployments. Using version 2.244.5. |
@FinVamp1 @manolerazvan It has been over a year with this bug, when will this be fixed? As it is now we can't rely on this task at all since it seems to fail to often. |
@patelchandni Is anyone from Microsoft looking at this issue? |
Hello, @ki-dro I thought I had replied last week but it may have gone missed? Can you please check if you can send me Deployment logs with the Debug variable enabled and test again? The change should be in there and I was not able to reproduce this so I used the same logic as the AzureRMWebAppDeployment@4 task which should have helped. If you can't share publicly then please open a support case and I can work with you and support to look at this. Finbar |
@FinVamp1 My deployment logs are the same as in #19909 (comment) |
Task name
AzureFunctionApp
Task version
2
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 11
Task log
The task first deletes the WEBSITE_RUN_FROM_PACKAGE variable from the Azure function, then it complains that it should exist.
The text was updated successfully, but these errors were encountered: