microsoft/azure-pipelines-tasks

[BUG]: ARM template deployment az login fails when using certificate for authentication

Opened this issue · 2 comments

New issue checklist

Task name

ARM template deployment

Task version

3.*

Issue Description

Same issue that we had with Azure CLI a few weeks back. ARM template deployment task needs to change the parameter "--password" with "certificate". Looks like ARM template deployment task utilizes AZ CLI for auth. That's where the issue is. Please read below the log.

We need this fixed ASAP! This is breaking all production pipelines.

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

windows-latest

Relevant log output

Log -
2024-12-10T11:57:51.4300005Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" login --service-principal -u *** "--password=D:\a\_temp\spnCert.pem" --tenant {REMOVED} --allow-no-subscriptions"

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Any updates, please? This is breaking production setup

Any updates on this please?