KV-backed named value PUT fails "System-Assigned Managed Identity is required … not enabled" although system-assigned identity is enabled (stv2.1)

Brad-3588 40 Reputation points
2026-11-21T13:45:06.8+00:00

Developer-tier APIM instance in East US, platformVersion stv2.1. Since 2026-11-21 (first failure 12:13 UTC), every PUT of an existing Key Vault-backed named value fails:

ValidationError, target identityClientId: "System-Assigned Managed Identity is required to access keyvault secret, which is not enabled. For more information please see aka.ms/apimmsi."

What I've verified:

  • The instance has identity.type = SystemAssigned with a principalId. It reads back identically at API versions 2023-09-01 preview, 2024-05-01 and 2024-06-01-preview.
  • That principal holds Key Vault Secrets User on the secret.
  • The named value omits identityClientId, as documented for system-assigned identity.
  • The identical Bicep template and API version succeeded on 2026-11-20 at 19:36 UTC.
  • A direct PUT of the same body fails at both 2023-09-01-preview and 2024-05-01.
  • The runtime Key Vault refresh still succeeds (keyVault.lastStatus = Success), so only the management-plane PUT is affected.
  • Two other instances (Basic and Developer) on platform stv2, deployed from the identical template, still succeed.
  • Diagnose and solve problems → Service Upgrade shows unexplained container events at 2026-11-21 04:18 and 05:05 UTC. These fall between the last successful PUT and the first failure, and none were initiated by us.

Questions:

  1. Was there a platform or resource-provider change to named-value identity validation on stv2.1?
  2. Is there a way to re-sync the instance's identity binding?

Workaround in place: we skip the named-value PUT in our deployment. I can share correlation IDs and the resource ID privately.

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.


1 answer

Sort by: Oldest
  1. AI answer

    2026-11-21T13:46:07.5233333+00:00

    Do not disable and re-enable the system-assigned identity as an initial repair; keep skipping the named-value PUT and open an Azure support request for an APIM resource-provider investigation because there is no documented non-destructive APIM identity re-sync operation.

    What the evidence indicates

    Your request matches the documented contract:

    • For a Key Vault-backed named value, identityClientId must be null or omitted to select the system-assigned identity.
    • identityClientId is populated only when selecting a user-assigned identity.
    • API version 2024-05-01 supports this operation and contract. ^1^
    • Developer tier supports managed identities, and an APIM system-assigned identity is represented by type: SystemAssigned plus principalId and tenantId. ^2^

    Nothing in the published documentation identifies an stv2.1-specific named-value validation change. The combination of:

    • an unchanged request succeeding before the service events,
    • failure across two API versions,
    • unchanged APIM identity and principal,
    • successful runtime Key Vault refresh,
    • successful identical deployments to other instances,

    isolates the failure to this instance’s management-plane validation path rather than the Bicep schema, Key Vault RBAC, or runtime Key Vault connectivity. That is strong incident evidence, but only Microsoft can confirm whether a regional rollout or resource-provider change caused it.

    Create an Azure support request under API Management → Management operations/deployment and include:

    1. APIM resource ID, tier, region, and platformVersion.
    2. Last successful PUT: 2026-11-20 19:36 UTC.
    3. Service Upgrade events: 2026-11-21 04:18 and 05:05 UTC.
    4. First failure: 2026-11-21 12:13 UTC.
    5. Correlation/request IDs from at least one failed 2024-05-01 PUT and one failed 2023-09-01-preview PUT.
    6. The sanitized request body and complete ARM error response.
    7. A GET showing identity.type, principalId, and tenantId.
    8. A GET of the named value showing keyVault.lastStatus.code = Success.
    9. The successful comparison-instance result and its platform version.
    10. A request to check:
    • APIM resource-provider deployment history in East US,
    • the instance’s internal system-identity binding,
    • the two unexplained service-upgrade events,
    • whether the instance can be repaired or re-stamped without identity recreation.

    The Activity Log’s JSON view exposes the ARM correlationId; events sharing it belong to the same broader control-plane action. ^3^

    Why identity toggling is risky here

    A matching APIM Q&A reports that switching the system-assigned identity off and back on cleared this exact error in some temporary cases. ^4^ However, APIM documentation states that removing the identity deletes it from Microsoft Entra ID. Re-enabling it therefore creates a different principal, requiring all Key Vault and other downstream assignments to be recreated. ^2^

    In this case, toggling also risks disrupting the currently successful runtime refresh. It should be used only if Microsoft Support explicitly recommends it or if you accept the identity replacement.

    If that becomes necessary:

    1. Inventory every role assignment and Key Vault access policy for the current principalId.
    2. Check for APIM custom-domain certificates or other resources that depend on this identity; APIM can reject identity removal when a Key Vault-backed custom certificate is configured. ^2^
    3. Disable and re-enable the identity.
    4. Record the new principalId.
    5. Recreate every assignment for that new principal.
    6. Allow propagation, then test Key Vault runtime refresh before retrying the named-value PUT.

    Do not repeatedly PUT the APIM service resource with the same SystemAssigned identity expecting a documented “rebind”: the documentation describes enabling or updating the identity, but does not state that an unchanged update refreshes an internal APIM binding. Continuing the deployment workaround is the safer option until the resource-provider state is examined.


    References

    1. Named Value - Create Or Update - REST API (Azure API Management) | Microsoft Learn
    2. Use managed identities in Azure API Management
    3. Get operation correlation ID from Activity Log for Microsoft Discovery
    4. APIM connection to KV via Managed Identity fails - Microsoft Q&A
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.