Skip to content
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

[REGRESSION]: AzureFunctionApp V1 and V2 fails with unauthorized error #20503

Open
4 of 7 tasks
sumavangala opened this issue Oct 3, 2024 · 1 comment
Open
4 of 7 tasks
Assignees
Labels

Comments

@sumavangala
Copy link
Member

sumavangala commented Oct 3, 2024

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)

  • 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

@sumavangala sumavangala added bug regression This used to work, but a change in the service/tasks broke it. labels Oct 3, 2024
@v-schhabra
Copy link
Contributor

@FinVamp1 Could you or someone from your team please check this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants