M365Con 2027 – free online conference · 11–22 Jan 2027 · 120 sessions m365con.net

Blog · Mirko Peters

What Are Microsoft Entra Workload Identities? A Practical Guide

By ·

Microsoft Entra workload identities explained: app registrations vs service principals vs managed identities, workload identity federation, Workload ID Premium licensing, Conditional Access for apps and a decision table.

Microsoft Entra workload identities are the identities software uses to sign in. A Logic App reading a mailbox at 2 a.m. or a pipeline deploying to Azure can't approve an MFA prompt. It needs its own identity, permissions and sign-in logs, not a shared service account with a password in a config file.

Key points

  • Every workload identity needs a named owner, only the permissions its job requires, and sign-in logs that someone actually reviews.
  • The app registration is the global template. The service principal is the local identity in each tenant that gets the permissions.
  • A managed identity is a special service principal for an Azure resource. You never see or rotate its credentials, and it costs nothing extra.
  • Workload identity federation lets GitHub Actions, Kubernetes, Google Cloud or AWS workloads get Entra tokens without a stored secret.
  • Conditional Access and ID Protection for workload identities need Workload ID Premium, listed at $3 per workload identity per month.
  • Microsoft's credential order: managed identity, then federation, then a certificate. Avoid client secrets.

My recommendation: start with an inventory. In the Microsoft Entra admin center, go to Entra ID > Enterprise apps > All applications and use the Application Type filter to list Enterprise Applications and Managed Identities separately.

What Microsoft Entra workload identities are

Microsoft Learn defines a workload identity as an identity assigned to an application, service, script or container so it can access other services. In Entra, that means three things: applications, service principals and managed identities. Unlike a person, a workload often juggles several credentials, and nobody tracks when they should be removed.

App registration, service principal, managed identity

ObjectWhat it isWhere you find itCredentials
App registration (application object)The one global definition of an app, in its home tenantApp registrationsSecrets, certificates or federated credentials you manage
Service principalThe local instance of the app in one tenant. It gets the permissionsEnterprise applicationsUses the app's credentials
Managed identityA special service principal for an Azure resource, with no app objectEnterprise applications (and the Azure resource)Handled by Azure, never visible to you

A single-tenant app has one service principal in its home tenant. A multitenant app gets one in every tenant that consents to it, and each tenant decides what it may do.

A practical trap: when you scope a policy, use the object ID from Enterprise applications. The one on App registrations belongs to the application object. More in Service principals in Entra ID: best practices and pitfalls.

System-assigned vs user-assigned managed identities

A managed identity removes the credential problem for code running in Azure. Azure handles the credentials, you can't see them, and managed identities come at no extra cost.

System-assignedUser-assigned
CreatedAs part of an Azure resource (VM, App Service, Function, Logic App)As a standalone Azure resource
LifecycleDeleted with the parent resourceIndependent, must be deleted explicitly
SharingOne resource onlyCan be attached to several resources
Good forOne workload on one resourceSeveral resources needing the same access, pre-authorization before deployment, resources that are recycled often

Microsoft's overview calls user-assigned the recommended type for Microsoft services. My rule of thumb: system-assigned for one self-contained resource, user-assigned when you redeploy often or need the role assignment before the resource exists.

Enabling a managed identity grants nothing. Assign the smallest role or Graph permission the job needs. For permission errors, see Automation managed identity: Graph insufficient privileges.

Workload identity federation for code outside Azure

Workload identity federation lets a user-assigned managed identity or an app registration trust tokens from an external identity provider. No secret sits in the pipeline.

Supported scenarios include GitHub Actions, Kubernetes, Google Cloud, AWS and Azure Pipelines. The federated credential's issuer, subject and audience must match the incoming token exactly, and the match is case-sensitive. For GitHub Actions, a job tied to an environment sends repo:contoso/infra:environment:prod, while a job without an environment sends a ref subject like repo:contoso/infra:ref:refs/heads/main. A credential for the first won't match the second. A wrong subject saves without error and fails only at token exchange.

Workload ID Premium: what is free and what isn't

According to the Workload identities FAQ, these are free: creating and managing workload identities, authenticating and getting tokens, sign-in activity and audit logs, managed identities, workload identity federation and application management policies.

These need Workload ID Premium: Conditional Access for workload identities, ID Protection for workload identities, access reviews for service principals in privileged roles, and App Health Recommendations. Microsoft lists it as a standalone SKU at $3 per workload identity per month, not included in other plans, with a 90-day free trial (30 days in the Modern channel). The FAQ states that only workload identities eligible for premium features require licensing, and license assignment isn't required. Access reviews of managed identities are the exception: you license by the number of managed identities.

My recommendation: license only the identities that need premium features, such as your privileged service principals. Twenty of them cost 20 x $3 = $60 per month.

Conditional Access for workload identities

  • Policies apply only to single-tenant service principals registered in your tenant. Managed identities, Microsoft apps and multitenant SaaS apps are not covered.
  • The main conditions are locations and service principal risk (from ID Protection). The page also lists use in combination with authentication contexts.
  • Block access is the only grant control. There is no MFA for apps.
  • Assigning a group that contains a service principal doesn't work. Add the service principal directly as a workload identity.
  • Report-only mode is available.

My recommendation: start with a location policy for privileged service principals, run it in report-only for two weeks, then enable it.

Secret hygiene

Where neither managed identity nor federation works, Microsoft recommends a certificate, preferably from a trusted CA and stored in Azure Key Vault, and no client secrets. Also:

  • Use application management policies to limit secret lifetimes or block new secrets.
  • Rotate credentials often and don't share them across apps.
  • Keep owners to a small set of people and review them every few months.
  • Scan pipelines so credentials never reach code repositories.

For certificate-based scripts, see Connect-MgGraph with a certificate for unattended automation.

Decision table

Where the workload runsUseAvoid
Azure resource that supports managed identitiesManaged identity (system- or user-assigned)App registration with a secret
GitHub Actions, Kubernetes, AWS, Google CloudWorkload identity federationSecret stored in the pipeline
On-premises server or script, no federation optionApp registration with a certificateClient secret, shared user account
Legacy app that only supports secretsSecret with short lifetime, owner and expiry alertSecrets with no owner

Checklist before go-live

My rule of thumb: answer five questions for every workload identity. Who owns it? What can it access? How does it sign in? Where are its sign-in logs reviewed? When is it removed?

Sources

Follow the showApple PodcastsSpotify

FAQ

What are Microsoft Entra workload identities?

They are identities for software, not people: applications, service principals and managed identities. An app, script, pipeline or container uses one to authenticate and get tokens for other services, with its own permissions and its own sign-in logs.

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

The app registration (application object) is the one global definition of an app in its home tenant. A service principal is the local instance of that app in each tenant where it is used, and it is the object that receives permissions. You manage app registrations under App registrations and service principals under Enterprise applications.

Should I use a system-assigned or user-assigned managed identity?

System-assigned fits one resource with its own identity, because it is deleted with that resource. User-assigned is a standalone resource you can attach to several resources and pre-authorize before deployment. Microsoft calls user-assigned the recommended type for Microsoft services.

Do I need a license for workload identities?

No for the basics. Creating workload identities, managed identities, federation, sign-in logs and app management policies are free. Conditional Access, ID Protection, access reviews for privileged service principals and App Health Recommendations need Workload ID Premium.

Can Conditional Access require MFA for a service principal?

No. For workload identities, Block access is the only grant control. Policies apply only to single-tenant service principals registered in your tenant, not to managed identities or multitenant SaaS apps, and you must add the service principal directly, not through a group.

Entities in this article

Topics of this article:

Microsoft Entra Workload ID – Part of Microsoft Entra Managed identity – Concept Workload identity federation – Narrower topic of Microsoft Entra Workload ID Conditional Access – Part of Microsoft Entra ID Microsoft Entra ID – Identity and security tool by Microsoft Non-human identity – Concept

Related articles

More articles on Microsoft Entra ID:

RSS