Skip to content

Commit 7d789f8

Browse files
author
Ankita Dutta
committed
ASR managed identities for automation accounts
1 parent 052f54d commit 7d789f8

File tree

2 files changed

+73
-13
lines changed

2 files changed

+73
-13
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
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
52+
53+
### Portal experience
54+
55+
56+
57+
## Next steps
58+
59+
Learn more about:
60+
- [Managed identities](../active-directory/managed-identities-azure-resources/overview).
61+
- [Using a system-assigned managed identity for an Azure Automation account](../automation/enable-managed-identity-for-automation).
62+
- [Using a user-assigned managed identity for an Azure Automation account](../automation/add-user-assigned-identity).

articles/site-recovery/site-recoverymanaged-identities.md renamed to articles/site-recovery/site-recovery-managed-identities.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
title: Managed identities for Automation accounts
2+
title: Managed identities for Automation accounts.
33
description: Learn how to migrate from Automation Run As Accounts to managed identities.
44
author: ankitaduttaMSFT
55
ms.service: site-recovery
66
ms.topic: conceptual
77
ms.date: 01/18/2023
88
ms.author: ankitadutta
9-
ms.custom: template-concept
109
---
1110

1211

1312
# Manage identities for automation accounts
1413

1514
> [!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).
1716
> - Delaying the feature has a direct impact on our support burden, as it would cause upgrades of mobility agent to fail.
1817
1918

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.
2120

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.
2222

2323
## Managed identities in Azure
2424

@@ -34,7 +34,7 @@ in Azure Active Directory (Azure AD) and using it to obtain Azure AD tokens.
3434
- You can use managed identities to authenticate to any resource that supports Azure AD authentication, including your own applications.
3535
- Managed identities for Azure resources are free with Azure AD for Azure subscriptions. There's no extra cost.
3636

37-
### Configure managed identities
37+
## Configure managed identities
3838

3939
You can configure your managed identities through:
4040

@@ -45,14 +45,14 @@ You can configure your managed identities through:
4545
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.
4646

4747
> [!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).
4949
5050

5151
## Migrate from an existing Run As account to a managed identity
5252

5353
### Portal experience
5454

55-
<content here>
55+
Learn [how to migrate Automation Run as accounts to Managed Identity on Azure Site Recovery](./migrate-run-as-accounts-managed-identity.md).
5656

5757

5858
### Sample scripts
@@ -164,11 +164,9 @@ foreach ($ResourceGroup in $ResourceGroups)
164164
## Next steps
165165

166166
Learn more about:
167-
168-
- [Managed identities](https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview).
169-
- [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)
167+
- [Managed identities](../active-directory/managed-identities-azure-resources/overview).
168+
- [Connecting from your application to resources without handling credentials](../active-directory/managed-identities-azure-resources/overview-for-developers?tabs=portal%2Cdotnet)
170169
- [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)
174172

0 commit comments

Comments
 (0)