jenkinsci / azure-cli-plugin

A Jenkins plugin to use Azure CLI for managing Azure resources.
https://plugins.jenkins.io/azure-cli/
MIT License
5 stars 18 forks source link

ERROR: Please run ‘az login’ to setup account #33

Open rzayn19 opened 1 year ago

rzayn19 commented 1 year ago

Hello Team,

I’m getting the below error while creating resources in Azure using Terraform with Jenkins Pipeline

Error building ARM Config: obtain subscription() from Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: Please run 'az login' to setup account.

The Azure_Credentials variable under Jenkins credentials shows me as successfully verified.

I’m able to run Terraform Init and Plan locally on RHEL 9 Box.

I attached Screenshots for Azure Credentials verification and Installed Azure Plugins in Jenkins Here [https://community.jenkins.io/t/error-please-run-az-login-to-setup-account/7126/8]()

Kindly Help,

Rahul