Service principal
A service principal is a nonhuman application or service identity that authenticates and receives authorized access to resources.
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.
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.
Also covered in
What to know first
- credentialA credential is information or an artifact presented to verify an entity’s identity or establish its authorization to access a system or resource.
- password authenticationPassword authentication is a method of verifying a claimed identity or access by checking a supplied secret password, often alongside a user identifier.
- role-based access controlRole-based access control is an authorization model that assigns permissions to roles and grants users or other principals access through their assigned roles.
- certificateA digital certificate is a digitally signed credential that binds an identity to a public key and enables verification of that binding for authentication or secure communication.
Related concepts
- managed identityalternative to · 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.
- identitykind of · 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.
- openid connectalternative to · OpenID Connect is an identity layer built on OAuth 2.0 that enables clients to authenticate end users and obtain standardized identity claims.
- password authenticationuses · Password authentication is a method of verifying a claimed identity or access by checking a supplied secret password, often alongside a user identifier.
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.


