Microsoft Defender for Cloud
Developer and API

Enable gated deployment for AKS by using the managed cluster API

In brief

The gated deployment documentation now provides steps for configuring the managed identity and clarifies that setting the MSI objectId in the identities parameter enables runtime use by the gated deployment agent.

What Defender admins need to know

Administrators configuring gated deployments can use the clarified MSI objectId guidance.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Configure the managed identity

Perform the following steps to configure the managed identity for gated deployment:

  1. Create a Managed Service Identity (MSI) that the gated deployment agent uses.

  2. Assign the AcrPull role (or an equivalent read role) to the MSI on all ACRs the cluster uses.

    :::image type="content" source="media/gated-deployment-infrastructure-as-code/identities.png" alt-text="Screenshot of the managed cluster API configuration showing the identities parameter in the security gating section." lightbox="media/gated-deployment-infrastructure-as-code/identities.png":::

    ThisSetting the MSI's objectId in the identities parameter ensures that the gated deployment agent can use the MSI at runtime.

Next step