liveBook · Manning

Service principal

A service principal is a nonhuman application or service identity that authenticates and receives authorized access to resources.

How 3 Manning books explain it

Azure Security

A service principal is an application identity in Microsoft Entra ID that represents software and can authenticate to access Azure resources.

How it is used
Provides an application identity for Azure resource access and CI/CD deployments.
How deep it goes
Shows creation commands, credential options, and RBAC role-and-scope setup; defers detailed permission coverage.
Examples
Uses MyAmazingApp and githubActionsApp identities for Azure access and Defender for Cloud automation.
What you can do after
Operate/configure it with Azure CLI credentials, an RBAC role, and a resource scope for CI/CD use.

Read how Azure Security explains service principal →

Microsoft Azure in Action

A service principal is a nonhuman identity used by an application or service to authenticate to Azure resources.

How it is used
Gives applications and automation their own identity for controlled access to Azure resources.
How deep it goes
Walks through app registration and client-secret creation, including secret expiry and one-time display.
Examples
Uses a deployment-bot registration and GitHub Actions to illustrate application and automation identities.
What you can do after
Operate and configure an application identity and client secret in the Azure portal.

Read how Microsoft Azure in Action explains service principal →

Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu

A service principal is an identity representing an application or automated service for authentication and authorization.

How it is used
Uses a service principal to authorize automated identities after OpenID Connect authentication succeeds.
How deep it goes
Explains the identity-mapping model and access restrictions, but defers concrete Azure configuration details.
Examples
Uses GitHub Actions and Spacelift identities mapped to cloud authorization identities, contrasting Azure service principals with AWS IAM roles.
What you can do after
Evaluate how an automated identity becomes authorized and where repository, workflow, or stack restrictions must apply.

Read how Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu explains service principal →

Also covered in

What to know first

Related concepts

Questions about service principal

What is service principal?

A service principal is a nonhuman application or service identity that authenticates and receives authorized access to resources.

Which Manning books explain service principal?

Azure Security, Microsoft Azure in Action and Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu.

What should I know before learning service principal?

Manning books that teach service principal usually introduce credential, password authentication, role-based access control and certificate first.

What is the difference between service principal and managed identity?

A service principal is a nonhuman application or service identity that authenticates and receives authorized access to resources. A managed identity is a nonhuman digital identity whose credentials and lifecycle are administered by a cloud or infrastructure service, allowing workloads to authenticate to supported resources without managing credentials directly.

What is service principal a kind of?

Service principal is a kind of identity. Identity is the property or representation by which an entity is distinguished and recognized as that particular entity, apart from changes in its attributes or state.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.