[JIRA] (JENKINS-61860) Jenkins pipeline terraform for azure using azure service principle

0 views
Skip to first unread message

mmreddy1582@gmail.com (JIRA)

unread,
Apr 10, 2020, 12:23:04 AM4/10/20
to jenkinsc...@googlegroups.com
muragaiah muthirevula created an issue
 
Jenkins / Bug JENKINS-61860
Jenkins pipeline terraform for azure using azure service principle
Issue Type: Bug Bug
Assignee: Azure DevOps
Components: azure-credentials-plugin
Created: 2020-04-10 04:22
Priority: Minor Minor
Reporter: muragaiah muthirevula

I am trying to build the pipeline to azure using terraform ,i have used azure credential plugin ,created golbal credential .

getting below error .Please kindly advise .

 

 

Error:

 

Error building AzureRM Client: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).

  

To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'

 

auth method - instructions for which can be found here: https://www.terraform.io/docs/providers/azurerm/guides/service_principal_client_secret.html

  

Alternatively you can authenticate using the Azure CLI by using a User Account.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

xuzhang3@microsoft.com (JIRA)

unread,
Apr 10, 2020, 5:49:02 AM4/10/20
to jenkinsc...@googlegroups.com
xu zhang commented on Bug JENKINS-61860
 
Re: Jenkins pipeline terraform for azure using azure service principle

muragaiah muthirevula

Can you provide more detailed information?  How do you use service principle credentials in pipeline and terraform script, you can omit the sensitive things.  Reproducible steps are very helpful for me to follow up this issue. 

xuzhang3@microsoft.com (JIRA)

unread,
Apr 10, 2020, 6:08:03 AM4/10/20
to jenkinsc...@googlegroups.com
xu zhang edited a comment on Bug JENKINS-61860
[~mmreddy1582]

Can Looks like you provide more detailed information?  How do you use trying to log in to the Azure CLI using service principle credentials in pipeline , and then run terraform script, you can omit the sensitive things scripts . Terraform-provider-azurerm does not support service principle login. They only support   Reproducible steps are very helpful for me to follow up this issue authenticating using the Azure CLI as a regular user  
Reply all
Reply to author
Forward
0 new messages