Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
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)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
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
2024-10-03T00:30:32.5527509Z ##[debug]ZIP Deploy response: {"statusCode":401,"statusMessage":"Unauthorized","headers":{"content-length":"0","date":"Thu, 03 Oct 2024 00:30:31 GMT","www-authenticate":"Basic realm=\"site\""}}
2024-10-03T00:30:32.5586224Z ##[error]Failed to deploy web package to App Service.
Full task logs with system.debug enabled
UNSUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]
SUCCESSFUL RUN
[REPLACE THIS WITH YOUR INFORMATION]
Repro steps
No response