You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Migrate from a Run As account to a managed identity.
3
+
description: This article describes how to migrate from a Run As account to a managed identity in Azure Site Recovery.
4
+
author: ankitaduttaMSFT
5
+
ms.service: site-recovery
6
+
ms.author: ankitadutta
7
+
ms.topic: how-to
8
+
ms.date: 01/19/2023
9
+
---
10
+
11
+
# Manage identities for automation accounts
12
+
13
+
> [!IMPORTANT]
14
+
> - Azure Automation Run As Account will retire on September 30, 2023 and will be replaced with Managed Identities. Before that date, you'll need to start migrating your runbooks to use [managed identities](/articles/automation/automation-security-overview.md#managed-identities). For more information, see [migrating from an existing Run As accounts to managed identity](/articles/automation/migrate-run-as-accounts-managed-identity?tabs=run-as-account#sample-scripts).
15
+
> - Delaying the feature has a direct impact on our support burden, as it would cause upgrades of mobility agent to fail.
16
+
17
+
This article shows you how to migrate a Managed Identities for Azure Site Recovery applications. Azure Automation Accounts are used by Azure Site Recovery customers to auto-update the agents of their protected virtual machines. Site Recovery creates Azure Automation Run As Accounts when you enable replication via the IaaS VM Blade and Recovery Services Vault.
18
+
19
+
20
+
## Prerequisites
21
+
22
+
Before you migrate from a Run As account to a managed identity:
23
+
24
+
1. Create a [system-assigned](../automation/enable-managed-identity-for-automation.md) or [user-assigned](../automation/add-user-assigned-identity.md) managed identity, or create both types. To learn more about the differences between them, see [Managed identity types](../active-directory/managed-identities-azure-resources/overview.md#managed-identity-types).
25
+
26
+
> [!NOTE]
27
+
> - User-assigned identities are supported for cloud jobs only. It isn't possible to use the Automation account's user-managed identity on a hybrid runbook worker. To use hybrid jobs, you must create system-assigned identities.
28
+
> - There are two ways to use managed identities in hybrid runbook worker scripts: either the system-assigned managed identity for the Automation account *or* the virtual machine (VM) managed identity for an Azure VM running as a hybrid runbook worker.
29
+
> - The VM's user-assigned managed identity and the VM's system-assigned managed identity will *not* work in an Automation account that's configured with an Automation account's managed identity. When you enable the Automation account's managed identity, you can use only the Automation account's system-assigned managed identity and not the VM managed identity. For more information, see [Use runbook authentication with managed identities](../automation/automation-hrw-run-runbooks.md).
30
+
31
+
1. Assign the same role to the managed identity to access the Azure resources that match the Run As account. Follow the steps in [Check the role assignment for the Azure Automation Run As account](../automation/manage-run-as-account.md#check-role-assignment-for-azure-automation-run-as-account).
32
+
33
+
Ensure that you don't assign high-privilege permissions like contributor or owner to the Run As account. Follow the role-based access control (RBAC) guidelines to limit the permissions from the default contributor permissions assigned to a Run As account by using [this script](../automation/manage-run-as-account.md#limit-run-as-account-permissions).
34
+
35
+
## Configure managed identities
36
+
37
+
You can configure your managed identities through:
38
+
39
+
- Azure portal
40
+
- Azure CLI
41
+
- your Azure Resource Manager (ARM) template
42
+
43
+
When a managed identity is added, deleted, or modified on a running container app, the app doesn't automatically restart and a new revision isn't created.
44
+
45
+
> [!NOTE]
46
+
> For more information about migration cadence and the support timeline for Run As account creation and certificate renewal, see the [frequently asked questions](../automation/automation-managed-identity-faq.md).
47
+
48
+
> [!NOTE]
49
+
> When adding a managed identity to a container app deployed before April 11, 2022, you must create a new revision.
50
+
51
+
## Migrate from an existing Run As account to a managed identity
Copy file name to clipboardExpand all lines: articles/site-recovery/site-recovery-managed-identities.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,24 @@
1
1
---
2
-
title: Managed identities for Automation accounts
2
+
title: Managed identities for Automation accounts.
3
3
description: Learn how to migrate from Automation Run As Accounts to managed identities.
4
4
author: ankitaduttaMSFT
5
5
ms.service: site-recovery
6
6
ms.topic: conceptual
7
7
ms.date: 01/18/2023
8
8
ms.author: ankitadutta
9
-
ms.custom: template-concept
10
9
---
11
10
12
11
13
12
# Manage identities for automation accounts
14
13
15
14
> [!IMPORTANT]
16
-
> - Azure Automation Run As Account will retire on September 30, 2023 and will be replaced with Managed Identities. Before that date, you'll need to start migrating your runbooks to use [managed identities](automation-security-overview.md#managed-identities). For more information, see [migrating from an existing Run As accounts to managed identity](https://learn.microsoft.com/azure/automation/migrate-run-as-accounts-managed-identity?tabs=run-as-account#sample-scripts).
15
+
> - Azure Automation Run As Account will retire on September 30, 2023 and will be replaced with Managed Identities. Before that date, you'll need to start migrating your runbooks to use [managed identities](../automation/automation-security-overview.md#managed-identities). For more information, see [migrating from an existing Run As accounts to managed identity](../automation/migrate-run-as-accounts-managed-identity?tabs=run-as-account#sample-scripts).
17
16
> - Delaying the feature has a direct impact on our support burden, as it would cause upgrades of mobility agent to fail.
18
17
19
18
20
-
This article explains about Managed Identities for automation accounts in ASR. Azure Automation Accounts are used by Azure Site Recovery (ASR) customers to auto-update the agents of their protected virtual machines. ASR creates Azure Automation Run As Accounts when you enable replication via the IaaS VM Blade and Recovery Services Vault.
19
+
This article explains about Managed Identities for automation accounts in Azure Site Recovery. Azure Automation Accounts are used by Azure Site Recovery customers to auto-update the agents of their protected virtual machines. Site Recovery creates Azure Automation Run As Accounts when you enable replication via the IaaS VM Blade and Recovery Services Vault.
21
20
21
+
A managed identity can be [system assigned](../automation/enable-managed-identity-for-automation.md) or [user assigned](../automation/add-user-assigned-identity.md). When a new Automation account is created, a system-assigned managed identity is enabled.
22
22
23
23
## Managed identities in Azure
24
24
@@ -34,7 +34,7 @@ in Azure Active Directory (Azure AD) and using it to obtain Azure AD tokens.
34
34
- You can use managed identities to authenticate to any resource that supports Azure AD authentication, including your own applications.
35
35
- Managed identities for Azure resources are free with Azure AD for Azure subscriptions. There's no extra cost.
36
36
37
-
###Configure managed identities
37
+
## Configure managed identities
38
38
39
39
You can configure your managed identities through:
40
40
@@ -45,14 +45,14 @@ You can configure your managed identities through:
45
45
When a managed identity is added, deleted, or modified on a running container app, the app doesn't automatically restart and a new revision isn't created.
46
46
47
47
> [!NOTE]
48
-
> For more information about migration cadence and the support timeline for Run As account creation and certificate renewal, see the [frequently asked questions](automation-managed-identity-faq.md).
48
+
> For more information about migration cadence and the support timeline for Run As account creation and certificate renewal, see the [frequently asked questions](../automation/automation-managed-identity-faq.md).
49
49
50
50
51
51
## Migrate from an existing Run As account to a managed identity
52
52
53
53
### Portal experience
54
54
55
-
<contenthere>
55
+
Learn [how to migrate Automation Run as accounts to Managed Identity on Azure Site Recovery](./migrate-run-as-accounts-managed-identity.md).
56
56
57
57
58
58
### Sample scripts
@@ -164,11 +164,9 @@ foreach ($ResourceGroup in $ResourceGroups)
-[Connecting from your application to resources without handling credentials](https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview-for-developers?tabs=portal%2Cdotnet)
-[Connecting from your application to resources without handling credentials](../active-directory/managed-identities-azure-resources/overview-for-developers?tabs=portal%2Cdotnet)
170
169
-[Implementing managed identities for Microsoft Azure Resources](https://www.pluralsight.com/courses/microsoft-azure-resources-managed-identities-implementing).
171
-
-[Using a system-assigned managed identity for an Azure Automation account](https://learn.microsoft.com/en-us/azure/automation/enable-managed-identity-for-automation).
172
-
-[Using a user-assigned managed identity for an Azure Automation account](https://learn.microsoft.com/en-us/azure/automation/add-user-assigned-identity).
173
-
-[FAQ for migrating from a Run As account to a managed identity](https://learn.microsoft.com/en-us/azure/automation/automation-managed-identity-faq).
170
+
-[FAQ for migrating from a Run As account to a managed identity](../automation/automation-managed-identity-faq).
171
+
-[FAQ for Managed Identities](../active-directory/managed-identities-azure-resources/managed-identities-faq.md)
0 commit comments