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
• 13,620 points
613 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, 2022 by Edureka
• 12,690 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, 2022 in Azure by Edureka
• 13,620 points

edited Jun 27, 2023 by Khan Sarfaraz 2,710 views
0 votes
1 answer
0 votes
1 answer

What is the Difference between VSO, VSTS and Azure Devops

Azure DevOps was previously known as VSO ...READ MORE

answered Mar 8, 2022 in Azure by Edureka
• 13,620 points

edited Jun 27, 2023 by Khan Sarfaraz 1,831 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
• 13,620 points
1,890 views
0 votes
0 answers

What is Azure Service Principal?

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

Apr 4, 2022 in Azure by Edureka
• 13,620 points
438 views
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
• 12,690 points
624 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
• 12,690 points
584 views
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