[REGRESSION]: AzureFunctionApp V1 and V2 fails with unauthorized error #20503
Labels
bug
FunctionsBacklogPri1
FunctionsTaskBacklog
regression
This used to work, but a change in the service/tasks broke it.
Task: AzureFunction
triage
New issue checklist
Task name
AzureFunctionApp
Breaking task version
1.244.1
Last working task version
1.242.1
Regression Description
We use AzureFunctionApp@1 to deploy a function app on Linux from a pipeline which runs on ubuntu-latest agent. We didn't make any code or deployment or pipeline related changes. But it started to fail with the following error:
"Error: Error: Failed to deploy web package to App Service. Unauthorized (CODE: 401)"
ZIP Deploy response: {"statusCode":401,"statusMessage":"Unauthorized","headers":{"content-length":"0","date":"Sat, 07 Sep 2024 20:50:20 GMT","www-authenticate":"Basic realm="site""}}
I tried upgrading to AzureFunctionApp@2 but still seeing the same error.
We use this task with a service connection setup using workload identity federation. The identity used to deploy already has Reader, Contributor and UAA roles on the subscription.
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
Ubuntu 22.04.5
Relevant log output
Full task logs with system.debug enabled
UNSUCCESSFUL RUN
SUCCESSFUL RUN
Repro steps
No response
The text was updated successfully, but these errors were encountered: