Quickstart: Enable managed identities for your Automation account using the Azure portal

This Quickstart shows you how to enable managed identities for an Azure Automation account. For more information on how managed identities work with Azure Automation, see Managed identities.

Prerequisites

Enable system-assigned managed identity

  1. Sign in to the Azure portal and navigate to your Automation account.

  2. Under Account Settings, select Identity (Preview).

    Navigating to Identity in portal.

  3. Set the system-assigned Status option to On and then press Save. When you're prompted to confirm, select Yes.

    Your Automation account can now use the system-assigned identity, that is registered with Microsoft Entra ID and is represented by an object ID.

    Managed identity object ID.

Add user-assigned managed identity

This section continues from where the last section ended.

  1. Select the User assigned tab, and then select + Add or Add user assigned managed identity to open the Add user assigned managed i... page.

    User-assigned tab in portal.

  2. From the Subscription drop-down list, select the subscription for your user-assigned managed identity.

    Add user-assigned page in portal.

  3. Under User assigned managed identities, select your existing user-assigned managed identity and then select Add. You'll then be returned to the User assigned tab.

    Added user-assigned in portal.

Clean up resources

If you no longer need the user-assigned managed identity attached to your Automation account, perform the following steps:

  1. From the User assigned tab, select your user-assigned managed identity.

  2. From the top menu, select Remove, and then select Yes when prompted for confirmation.

If you no longer need the system-assigned managed identity enabled for your Automation account, perform the following steps:

  1. From the System assigned tab, under Status, select Off.

  2. From the top menu, select Save, and then select Yes when prompted for confirmation.

Next steps

In this Quickstart, you enabled managed identities for an Azure Automation account. To use your Automation account with managed identities to execute a runbook, see.