Integration Azure Logic Apps premium

Logic Apps managed identity

Logic Apps managed identity lets a workflow prove who it is when it talks to Azure resources. Instead of putting a password, storage key, or client secret inside a workflow, Azure gives the logic app an identity in Microsoft Entra ID. You then grant that identity only the roles it needs, such as reading a Key Vault secret or writing to a storage queue. In plain terms, it replaces secret handling with role-based trust. It does not grant access by itself; RBAC and target service permissions still decide what the workflow can do.

Aliases
No aliases mapped yet
Difficulty
intermediate
CLI mappings
4
Last verified
2026-05-16

Microsoft Learn

A Logic Apps managed identity is the Microsoft Entra identity assigned to a Logic Apps workflow or Standard logic app resource so the workflow can authenticate to supported Azure resources without storing passwords, shared keys, or long-lived secrets in governed production environments.

Microsoft Learn: Authenticate connections with managed identities in Azure Logic Apps2026-05-16

Technical context

Technically, Logic Apps managed identity can be system-assigned or user-assigned, depending on workflow type and service support. The identity becomes a service principal in Microsoft Entra ID and can request tokens for Azure resources that support Entra authentication. Consumption workflows use workflow identity commands, while Standard logic apps also have app-level identity behavior similar to App Service. The identity is then granted RBAC or service-specific permissions on Key Vault, Storage, Service Bus, Event Hubs, SQL, or other targets. Operators must track identity object ID, client ID, assignment scope, connector support, and token audience.

Why it matters

A Logic Apps managed identity matters because workflows often connect important systems and move sensitive data. Without managed identity, teams may store secrets in connection settings, workflow definitions, app settings, or deployment pipelines. Those secrets expire, leak, get copied into tickets, or remain valid after the person who created them leaves. Managed identity gives the workflow a first-class identity that can be granted, reviewed, rotated by Azure, and removed through RBAC. It also makes automation easier to audit because access belongs to the workflow, not a shared human account. That improves security while reducing credential maintenance. It also gives reviewers a concrete checkpoint before production decisions.

Where you see it

Signals, screens, and Azure surfaces where this term usually becomes operational.

Signal 01

In workflow connection settings, managed identity appears when a Logic App authenticates to Key Vault, Storage, Service Bus, SQL, or another Entra-protected service during release review, incident triage, and ownership checks.

Signal 02

In Azure RBAC, operators assign the logic app's identity to a target scope instead of storing passwords, client secrets, or shared keys during release review, incident triage, and ownership checks.

Signal 03

In secret-rotation reviews, managed identity reduces manual credential handling because the workflow obtains tokens from Microsoft Entra rather than embedded secrets during release review, incident triage, and ownership checks.

When this becomes relevant

Specific situations where this term helps solve real Azure design, operations, migration, security, reliability, cost, or governance problems.

  • Let a workflow read secrets from Key Vault without embedding client secrets in connection settings or definitions.
  • Grant a Logic App permission to send messages to Service Bus, write blobs, or call Azure resources securely.
  • Replace shared service accounts in integration workflows with auditable Microsoft Entra identities.
  • Support repeatable deployments where identity and role assignments are reviewed alongside workflow definitions.

Real-world case studies

Different enterprise-style examples that show the term being used to hit measurable objectives.

Case study 01

Removing secrets from payment reconciliation

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

Coho Payments ran a reconciliation workflow that pulled secrets from app settings and failed whenever manually rotated credentials were missed.

Business/Technical Objectives
  • Remove long-lived secrets from the workflow configuration.
  • Give the workflow read access to one Key Vault only.
  • Reduce authentication-related failed runs by 80%.
  • Keep access evidence ready for PCI review.
Solution Using Logic Apps managed identity

The architect enabled Logic Apps managed identity on the reconciliation workflow and granted the principal Key Vault Secrets User on the specific vault that stored approved API credentials. Storage and Service Bus access were granted through separate data-plane roles, each scoped to the required resource. Operators used CLI to capture the identity principal ID and role assignment output before the workflow was tested. Secure inputs and outputs were enabled for actions that handled sensitive values. The old shared service principal secret was removed from deployment variables and rotated out of use. The runbook also named Logic Apps managed identity ownership, rollback evidence, and validation checks so support could repeat the pattern safely. Security stored the role assignment ID with the reconciliation control evidence.

Results & Business Impact
  • Stored workflow secrets were reduced from seven to one transitional value, then removed.
  • Authentication-related failed runs dropped 91% over two months.
  • PCI evidence included principal IDs and scoped assignments.
  • Credential rotation support tickets fell by 68%.
Key Takeaway for Glossary Readers

Logic Apps managed identity turns workflow authentication into reviewable Azure access instead of hidden secret handling.

Case study 02

Securing queue writes for claims processing

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

Fourth Coffee Insurance needed a claims workflow to place messages on Service Bus without sharing namespace keys across multiple integration teams.

Business/Technical Objectives
  • Stop distributing Service Bus shared access keys.
  • Limit the workflow to sending messages only.
  • Preserve claims-processing throughput during the change.
  • Make access review easier for platform owners.
Solution Using Logic Apps managed identity

The integration team enabled a system-assigned managed identity for the Logic App and assigned Service Bus Data Sender on the claims queue scope. The workflow action was updated to use identity-based authentication where supported. Operators confirmed the principal ID, listed role assignments, and ran controlled test messages before switching production traffic. The old shared access policy remained disabled after validation, and the runbook documented how to recheck identity access during incidents. Azure Monitor alerts watched failed sends so authorization mistakes would be caught quickly. The runbook also named Logic Apps managed identity ownership, rollback evidence, and validation checks so support could repeat the pattern safely. The claims platform team reviewed queue permissions after each workflow deployment. Production support also received a query showing every authorized queue path.

Results & Business Impact
  • Shared access keys were removed from three team runbooks.
  • Test and production sends succeeded with no throughput regression.
  • Access review time for the queue fell from two hours to 25 minutes.
  • No unauthorized manage or listen permissions were granted.
Key Takeaway for Glossary Readers

Managed identity lets Logic Apps use messaging resources with the exact permission the workflow needs.

Case study 03

Stabilizing monthly compliance exports

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

GreenRiver Analytics rebuilt its monthly compliance export workflow frequently, causing system-assigned identity changes and broken storage permissions.

Business/Technical Objectives
  • Avoid role assignment churn during workflow redeployments.
  • Keep export permissions scoped to one storage container.
  • Reduce failed monthly exports caused by missing access.
  • Document identity ownership for compliance operations.
Solution Using Logic Apps managed identity

Architects created a user-assigned managed identity for the export workflow and attached it to the Logic App during each deployment. The identity received Storage Blob Data Contributor only on the compliance export container. Azure CLI checks were added to the deployment pipeline to confirm identity attachment and role assignment before enabling the trigger. Operations documented the identity name, client ID, target scope, and approval owner. Because the identity persisted across resource rebuilds, deployments no longer invalidated storage access. The runbook also named Logic Apps managed identity ownership, rollback evidence, and validation checks so support could repeat the pattern safely. Operators captured run IDs, command output, and approval notes to make the implementation auditable. The deployment pipeline verified the identity binding before promoting the workflow to production.

Results & Business Impact
  • Monthly export failures caused by identity drift dropped to zero.
  • Role assignments stayed stable across six redeployments.
  • Compliance operators received a documented identity evidence pack.
  • Deployment validation time improved by 40%.
Key Takeaway for Glossary Readers

User-assigned managed identity is useful when Logic App deployments need stable access across rebuilds or environment promotion.

Why use Azure CLI for this?

Azure CLI is useful for a Logic Apps managed identity because operators must verify both the workflow identity and target-resource permissions. Commands show identity assignment, role assignments, connection references, and deployment evidence.

CLI use cases

  • Assign a system-managed identity to a Consumption workflow or confirm that identity already exists.
  • Show the workflow or Standard logic app and capture principal ID, tenant ID, and identity type.
  • Create target-resource role assignments for the managed identity after approval from the resource owner.
  • List role assignments to prove whether a failed workflow has access at the expected scope.

Before you run CLI

  • Confirm whether the workflow is Consumption or Standard so you use workflow identity or logicapp commands correctly.
  • Identify the target resource scope and the least-privilege role before creating any role assignment.
  • Know whether system-assigned identity lifecycle is acceptable or whether a reusable user-assigned identity is needed.
  • Capture current identity and role assignment output before deleting, recreating, or redeploying production workflows.

What output tells you

  • Identity output shows whether Azure created a principal and which object ID should receive target-resource permissions.
  • Role assignment output proves whether the managed identity has access at the right scope, not merely somewhere in Azure.
  • Workflow output helps confirm the identity type selected by the resource before testing connector authentication.
  • Missing or stale assignments explain authorization failures that look like connector, secret, or downstream service problems.

Mapped Azure CLI commands

Identity assignment and RBAC verification

Direct
Az logic workflow identity assign --resource-group <resource-group> --name <workflow-name> --system-assigned true
az logic workflow identitysecureIntegration
Az logic workflow show --resource-group <resource-group> --name <workflow-name> --query identity
az logic workflowdiscoverIntegration
Az logicapp show --resource-group <resource-group> --name <logic-app-name> --query identity
az logicappdiscoverIntegration
Az role assignment list --assignee <principal-id> --scope <target-resource-id> --output table
az role assignmentdiscoverIntegration

Architecture context

Logic Apps managed identity connects to Integration architecture through scope, identity, data flow, monitoring, cost, and operational ownership. Treat it as a production design checkpoint: verify the Azure resource, the caller, the dependency path, the monitoring signal, and the rollback evidence before changing it.

Security

Security benefit is strongest when managed identity is paired with least privilege. Enabling identity only creates the principal; it does not mean the workflow should receive broad Contributor access. Grant narrowly scoped roles such as Key Vault Secrets User, Storage Blob Data Contributor, or Service Bus Data Sender when those match the action. Review connector support because some managed connectors still rely on connection objects or OAuth consent. Protect run history, secure inputs and outputs, and deployment files because identities do not hide payload data. Operators should review stale identities, inherited roles, cross-environment reuse, and whether user-assigned identities are shared safely.

Cost

Managed identity itself is not the cost driver, but it changes how securely and efficiently teams operate integrations. It can reduce labor spent rotating secrets, recovering from expired credentials, and investigating mysterious authentication failures. It can also prevent costly incidents caused by leaked keys or overbroad shared accounts. Indirect costs appear when identity design is sloppy: broad role assignments, duplicated user-assigned identities, failed workflows retrying for hours, or teams opening support tickets because the wrong scope was granted. FinOps reviews should connect identity failures to retry cost, failed-run volume, engineer time, and any downstream charges from repeated actions. It also helps owners explain spend during monthly FinOps reviews.

Reliability

Reliability improves because managed identity removes many credential-expiration and secret-rotation failures. Workflows no longer depend on someone renewing a client secret or pasting the correct key after a rotation event. However, reliability still depends on the target resource accepting Microsoft Entra tokens, the role assignment being present, and the workflow using the identity-aware connection or action correctly. During incidents, operators should check identity assignment, object ID, role scope, token audience, and target service permissions before blaming the connector. User-assigned identities can improve continuity across redeployments, while system-assigned identities are simpler but tied to resource lifecycle. It also gives responders a safer signal during outage triage.

Performance

Performance impact is usually indirect. Managed identity token acquisition adds normal authentication work, but the bigger performance issues come from retries after authorization failures, connector throttling, and downstream resource latency. A workflow that lacks the right role can repeatedly fail, retry, and block later actions. Good identity design keeps the action path predictable: the token audience is correct, role assignment scope is narrow but sufficient, and the target service accepts Entra authentication. For high-frequency workflows, monitor action latency, authentication failures, and retry volume. Avoid adding unnecessary secret lookups or role checks inside loops when one validated connection can serve the run.

Operations

Operations teams should treat Logic Apps managed identity as part of the workflow's dependency map. Runbooks need the identity type, principal ID, target resources, assigned roles, approval owner, and cleanup path. Azure CLI can assign identity, list the workflow or app, and verify role assignments. For production changes, capture identity output before granting roles, then test the exact workflow action that uses the identity. When deleting or recreating a logic app, confirm whether the identity changes and whether stale role assignments remain. Access reviews should include managed identities, not only human users and groups. It also makes ownership and rollback easier for the support team.

Common mistakes

  • Enabling managed identity and assuming access works without assigning the identity a role on the target resource.
  • Granting Contributor at subscription scope when the workflow only needs to read one secret or send one queue message.
  • Recreating a system-assigned identity and forgetting that the old role assignment points to a deleted principal.
  • Using a connector or action that does not support managed identity for the target authentication scenario.