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, 2022 in Azure by Edureka
• 12,890 points
82 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

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, 2022 in Azure by Edureka
• 12,890 points
848 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What Azure availability zone is used by default?

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

answered Apr 1, 2022 in Azure by Edureka
• 11,450 points
127 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, 2022 in Azure by Edureka
• 11,450 points
112 views
0 votes
1 answer

Difference between Azure CLI and PowerShell

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

answered Mar 25, 2022 in Azure by Edureka
• 12,890 points
851 views
0 votes
1 answer

What is Azure Service Principal?

An Azure service principal is an identity ...READ MORE

answered Apr 7, 2022 in Azure by Edureka
• 11,450 points
156 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP