-
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 deployment gets stuck and fails sporadically #18766
Comments
Exactly the same error since yesterday |
Having the same error too. All my Azure DevOps / Azure stack is impacted because of this bug I could not deploy. Thanks for your help. |
If possible, can you enable the debug logs (systm.debug=true) and share the logs please? |
Additionally, can you send some dates/times/app names to jzaballos @ microsoft.com? Thank you! |
Following a consultation with Azure Support, the integration of the subsequent parameter into my resource configuration effectively addressed the issue: WEBSITE_WEBDEPLOY_USE_SCM = "true" |
@VictorFavreau can you send me the details of your support ticket to finbarr @ microsoft.com so that I can follow up on this. I would like to understand why that setting helped. |
We have been experiencing this issue since the start of November. Switching from this task to Azure CLI seems to have fixed our deployment timing out after 60 mins to <1 minute. No changes to the Function App. - task: AzureCLI@2
inputs:
azureSubscription: "${{ parameters.AzureSubscription }}"
scriptType: "pscore"
scriptLocation: "inlineScript"
inlineScript: |
az functionapp deployment source config-zip --src "$(Pipeline.Workspace)/artifacts/package.zip" --name "${{ parameters.FunctionAppName }}" --resource-group "${{ parameters.ResourceGroupName }}" --slot "staging" |
also having this issue, started since a couple of weeks back. |
We have this as well but not only with functions. |
We have the same issue for an Azure Function in a private network with a private endpoint. We are deploying via our custom Windows agent. I'm using the task : |
@FinVamp1 Have you more information about this problem? For us a big App Service Plan solved it but we actually don't know why.
|
+1 to the env var above. For an Azure App Service (running Linux), adding |
This is still in our backlog. Plan to introduce a backoff and timeout when calling validation to avoid the task getting stuck. |
I'm having this issue now for about a week, didn't find any solution up until now |
Hi @FinVamp1, @v-mohithgc, et. al.: We've been getting this error intermittently for a while now, we've been working with azure support for a while now trying different parameters and configuration settings on the functions deployment without success. I am attaching a full deployment log of an occurrance of the issue: Azure support has been pointing to disk space as the root cause of the issue, saying that because we don't have the WEBSITE_RUN_FROM_PACKAGE parameter on our Function app upon creation. Not to paraphrase Azure support conclusion, here it is:
However, AzureFunctionAppV2 sets
The thing that strikes me is that a little bit further down the log in line 37968, the
The command we are using to initiate the deployment via DevOps YAML pipelines is the following:
Your attention to this issue is greatly appreciated. I have plenty of occurrences of the issue since we have a couple dozen services in CI/CD pipelines, so if you are in need of more logs, just let me know. |
The first deploy to a new App Service works, but after that, always getting the error:
|
Same issue here! Deploying to dev resource works (consumption plan windows) After different retries the deployment was successful... |
Just want to add that I have the same issue with a zipped package deployment. It deploys successfully on an automated retry, but it would be nice if it didn't fail every time the first time. |
Needs more investigation as the error is the same but the root issue can differ. |
Task name
AzureFunctionApp
Task version
2.225.1
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows-latest
Task log
Relevant log output
##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
Aditional info
The text was updated successfully, but these errors were encountered: