แก้ไข

แชร์ผ่าน


Delete an Azure Automation Run As account

Important

Azure Automation Run as accounts, including Classic Run as accounts have retired on 30 September 2023 and replaced with Managed Identities. You would no longer be able to create or renew Run as accounts through the Azure portal. For more information, see migrating from an existing Run As accounts to managed identity.

Run As accounts in Azure Automation provide authentication for managing resources on the Azure Resource Manager or Azure Classic deployment model using Automation runbooks and other Automation features. This article describes how to delete a Run As or Classic Run As account. When you perform this action, the Automation account is retained. After you delete the Run As account, you can re-create it in the Azure portal or with the provided PowerShell script.

Permissions for Run As accounts and Classic Run As accounts

To configure or update or delete a Run As account and a Classic Run As accounts, you must either be:

  • An owner of the Microsoft Entra Application for the Run As Account

    (or)

  • A member in one of the following Microsoft Entra roles

    • Application Administrator
    • Cloud Application Administrator

Delete a Run As or Classic Run As account

  1. In the Azure portal, open the Automation account.

  2. In the left pane, select Run As Accounts in the account settings section.

  3. On the Run As Accounts properties page, select either the Run As account or Classic Run As account that you want to delete.

  4. On the Properties pane for the selected account, click Delete.

    Delete Run As account

  5. While the account is being deleted, you can track the progress under Notifications from the menu. Run As accounts can't be restored after deletion.

Note

We recommend that you delete the Run As account from Automation account portal. Alternatively, you can delete the Service principal from the Microsoft Entra ID portal > App registrations > search and select your Automation account name and in the Overview page, select Delete.

Next steps