Main menu
Definition

Service principal

A service principal is the identity an application, service, or automation tool uses to access resources in Microsoft Entra ID and Azure. Learn how service principals work, how they compare with managed identities, and how to keep their secrets safe.

DTDevolutions Team·November 12, 2026·2 min read

What is a service principal?

A service principal is a security identity in a Microsoft Entra tenant that represents an application or automation rather than a person. Scripts, CI/CD pipelines, and integrations use it to sign in and call Azure or Microsoft Graph APIs. It is one of the most common kinds of non-human identity in Microsoft environments.

How does a service principal work?

  1. An app registration is created in Microsoft Entra ID, and a service principal represents it in the tenant.
  2. The service principal receives a credential: a client secret, a certificate, or a federated credential.
  3. Roles are assigned to it on subscriptions, resource groups, or APIs.
  4. The application authenticates with its client ID, tenant ID, and credential, then acts within those roles.

Remote Desktop Manager has an Azure service principal credential entry for storing these values. See our documentation: Azure service principal.

Service principal vs. managed identity

A managed identity is a special type of service principal whose credentials Azure creates and rotates automatically for Azure resources. A standard service principal uses a secret or certificate that someone must store, rotate, and protect. Where a workload runs in Azure, managed identities remove that burden; elsewhere, service principals remain common.

Why do service principals matter?

Service principals often hold broad roles and long-lived secrets, and they don't use interactive MFA. A leaked client secret can give an attacker the same access as the automation. Assign least-privilege roles, prefer certificates or federated credentials over long-lived secrets, store secrets in a vault, rotate them, and review unused service principals.

Frequently asked questions

What is a service principal?

A service principal is an identity in Microsoft Entra ID that represents an application or automation, used to sign in and access Azure and Microsoft Graph resources without a person signing in.

What is the difference between an app registration and a service principal?

The app registration is the global definition of an application. The service principal is its local instance in a specific tenant, where roles and permissions are assigned.

How do you secure a service principal?

Grant only the roles it needs, prefer certificates, federated credentials, or managed identities over long-lived client secrets, keep secrets in a vault, rotate them, and remove unused service principals.

Keep automation credentials out of scripts

Store and share client secrets and other credentials securely from one vault.

Explore Remote Desktop Manager

Related terms

Non-human identity (NHI)

A digital identity used by software rather than a person, such as a service account, API key, workload, bot, or AI agent.

Read now →

Credential rotation

Regularly replacing passwords, keys, and other secrets with new values to limit how long a stolen credential remains useful.

Read now →

Secrets management

The practice of securely storing, distributing, rotating, and auditing machine credentials such as API keys, tokens, certificates, and database passwords.

Read now →