You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows
Question
We are getting following error when trying to run az login using the service principal and Federate Credential.
[command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" login --service-principal -u *** --tenant {OurTenantId} --allow-no-subscriptions --federated-token ***"
2024-05-15T20:47:16.2950443Z Error: Error building ARM Config: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
2024-05-15T20:47:16.2950869Z
2024-05-15T20:47:16.2951508Z To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'
2024-05-15T20:47:16.2952047Z auth method - instructions for which can be found here: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret
2024-05-15T20:47:16.2952264Z
2024-05-15T20:47:16.2952449Z Alternatively you can authenticate using the Azure CLI by using a User Account.
Can you please provide some guidance how to resolve this issue?
The text was updated successfully, but these errors were encountered:
Task name
Azure CLI
Task version
2.239.3
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows
Question
The text was updated successfully, but these errors were encountered: