What is Azure Service Principal

0 votes

My requirement is simple. I want to login to Azure through my shell script in non-interactive mode, but "az login -u username -p password" command gives the following error:

Get Token request returned http error: 400 and server response: {"error":"invalid_grant","error_description":"AADSTS70002: Error validating credentials. : SAML token is invalid. : The element with ID 'xxxxxx' was either unsigned or the signature was invalid.

Some site told me to create a service principal. Now my question is, what is a service principal, and how do I create a service principal so that I can execute my commands (for creating different resources like app gateway) from my shell script?

Apr 4 in Azure by Edureka
• 5,760 points
29 views

1 answer to this question.

0 votes
An Azure service principal is an identity that may be used to access Azure resources through apps, hosted services, and automated tools. The responsibilities granted to the service principal restrict this access, providing you control over which resources may be accessed and at what degree.
answered Apr 7 by Edureka
• 5,460 points

Related Questions In Azure

0 votes
1 answer

What is the difference between "Azure Web app" and "Azure App Service"?

Azure App Services Azure App Services is a ...READ MORE

answered Mar 8 in Azure by Edureka
• 5,760 points
26 views
0 votes
1 answer
0 votes
1 answer

Difference between Azure CLI and PowerShell

The Azure CLI comes with an installer ...READ MORE

answered Mar 25 in Azure by Edureka
• 5,760 points
32 views
0 votes
0 answers

What is Azure Service Principal?

My requirement is simple. I want to ...READ MORE

Apr 4 in Azure by Edureka
• 5,760 points
18 views
0 votes
1 answer

What Azure availability zone is used by default?

Azure availability zones are physically and conceptually ...READ MORE

answered Apr 1 in Azure by Edureka
• 5,460 points
46 views
0 votes
1 answer

Azure Translator Text API: What is the definition of a character?

A letter to an individual. Punctuation. A ...READ MORE

answered Apr 12 in Azure by Edureka
• 5,460 points
16 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP