Skip to content

Commit 3bbf1a9

Browse files
Merge pull request #212745 from ShawnJackson/two-automation-articles
edit pass: Two articles about migration to managed identity
2 parents ba1c9b2 + c7a2c5e commit 3bbf1a9

File tree

2 files changed

+107
-102
lines changed

2 files changed

+107
-102
lines changed
Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Azure Automation migration to managed identity FAQ
3-
description: This article gives answers to frequently asked questions when you're migrating from Run As account to managed identity
3+
description: This article gives answers to frequently asked questions when you're migrating from a Run As account to a managed identity.
44
services: automation
55
ms.subservice: process-automation
66
ms.topic: conceptual
@@ -9,61 +9,66 @@ ms.custom: devx-track-azurepowershell
99
#Customer intent: As an implementer, I want answers to various questions.
1010
---
1111

12-
# Frequently asked questions when migrating from Run As account to managed identities
12+
# FAQ for migrating from a Run As account to a managed identity
1313

14-
This Microsoft FAQ is a list of commonly asked questions when you're migrating from Run As account to Managed Identity. If you have any other questions about the capabilities, go to the [discussion forum](https://aka.ms/retirement-announcement-automation-runbook-start-using-managed-identities) and post your questions. When a question is frequently asked, we add it to this article so that it benefits all.
14+
The following FAQ can help you migrate from a Run As account to a managed identity in Azure Automation. If you have any other questions about the capabilities, post them on the [discussion forum](https://aka.ms/retirement-announcement-automation-runbook-start-using-managed-identities). When a question is frequently asked, we add it to this article so that it benefits everyone.
1515

16-
## How long will you support Run As account?
16+
## How long will you support a Run As account?
1717

18-
Automation Run As account will be supported for the next one year until **September 30, 2023**. While we continue to support existing users, we recommend all new users to use Managed identities as the preferred way of runbook authentication. Existing users can still create the Run As account, see the account properties and renew the certificate upon expiration till **January 30, 2023**. After this date, you won't be able to create a Run As account from the Azure portal. You will still be able to create a Run As account through [PowerShell script](/azure/automation/create-run-as-account#create-account-using-powershell) until the supported time of one year. You can [use this script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/RunAsAccountAssessAndRenew.ps1) to renew the certificate post **January 30, 2023** until **September 30, 2023**. This script will assess automation account which has configured Run As accounts and renews the certificate if the user chooses to do so. On confirmation, it will renew the key credentials of Azure-AD App and upload new self-signed certificate to the Azure-AD App.
18+
Automation Run As accounts will be supported until *September 30, 2023*. Although we continue to support existing users, we recommend that all new users use managed identities for runbook authentication.
1919

20+
Existing users can still create a Run As account. You can go to the account properties and renew a certificate upon expiration until *January 30, 2023*. After that date, you won't be able to create a Run As account from the Azure portal.
21+
22+
You'll still be able to create a Run As account through a [PowerShell script](/azure/automation/create-run-as-account#create-account-using-powershell) until support ends. You can [use this script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/RunAsAccountAssessAndRenew.ps1) to renew the certificate after *January 30, 2023*, until *September 30, 2023*. This script will assess the Automation account that has configured Run As accounts and renew the certificate if you choose to do so. On confirmation, the script will renew the key credentials of the Azure Active Directory (Azure AD) app and upload new a self-signed certificate to the Azure AD app.
2023

2124
## Will existing runbooks that use the Run As account be able to authenticate?
22-
Yes, they will be able to authenticate and there will be no impact to the existing runbooks using Run As account.
25+
Yes, they'll be able to authenticate. There will be no impact to existing runbooks that use a Run As account.
2326

24-
## How can I renew the existing Run as accounts post January 30, 2023 when portal support to renew the account to removed?
25-
You can [use this script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/RunAsAccountAssessAndRenew.ps1) to renew the Run As account certificate post January 30, 2023 until September 30, 2023.
27+
## How can I renew an existing Run As account after January 30, 2023, when portal support to renew the account is removed?
28+
You can [use this script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/RunAsAccountAssessAndRenew.ps1) to renew the Run As account certificate after January 30, 2023, until September 30, 2023.
2629

27-
## Can Run As account still be created post September 30, 2023 when Run As account will retire?
28-
Yes, you can still create the Run As account using the [PowerShell script](../automation/create-run-as-account.md#create-account-using-powershell). However, this would be an unsupported scenario.
30+
## Can Run As accounts still be created after September 30, 2023, when Run As accounts will retire?
31+
Yes, you can still create Run As accounts by using the [PowerShell script](../automation/create-run-as-account.md#create-account-using-powershell). However, this will be an unsupported scenario.
2932

30-
## Can Run As accounts still be renewed post September 30, 2023 when Run As account will retire?
31-
You can [use this script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/RunAsAccountAssessAndRenew.ps1) to renew the Run As account certificate post September 30, 2023 when Run As account will retire. However, it would be an unsupported scenario.
33+
## Can Run As accounts still be renewed after September 30, 2023, when Run As account will retire?
34+
You can use [this script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/RunAsAccountAssessAndRenew.ps1) to renew the Run As account certificate after September 30, 2023, when Run As accounts will retire. However, it will be an unsupported scenario.
3235

33-
## Will the runbooks that still use the Run As account be able to authenticate even after September 30, 2023?
36+
## Will runbooks that still use the Run As account be able to authenticate after September 30, 2023?
3437
Yes, the runbooks will be able to authenticate until the Run As account certificate expires.
3538

36-
## What is managed identity?
37-
Managed identities provide an automatically managed identity in Azure Active Directory for applications to use when connecting to resources that support Azure Active Directory (Azure AD) authentication. Applications can use managed identities to obtain Azure AD tokens without managing credentials, secrets, certificates or keys.
39+
## What is a managed identity?
40+
Applications use managed identities in Azure AD when they're connecting to resources that support Azure AD authentication. Applications can use managed identities to obtain Azure AD tokens without managing credentials, secrets, certificates, or keys.
3841

3942
For more information about managed identities in Azure AD, see [Managed identities for Azure resources](/azure/active-directory/managed-identities-azure-resources/overview).
4043

4144
## What can I do with a managed identity in Automation accounts?
42-
An Azure Automation managed identity from Azure Active Directory (Azure AD) allows your runbook to access other Azure AD-protected resources easily. This identity is managed by the Azure platform and doesn't require you to provision or rotate any secrets. Key benefits are:
45+
An Azure Automation managed identity from Azure AD allows your runbook to access other Azure AD-protected resources easily. This identity is managed by the Azure platform and doesn't require you to provision or rotate any secrets.
46+
47+
Key benefits are:
4348
- You can use managed identities to authenticate to any Azure service that supports Azure AD authentication.
44-
- Managed identities eliminate the management overhead associated with managing Run As account in your runbook code. You can access resources via a managed identity of an Automation account from a runbook without worrying about creating the service principal, Run As Certificate, Run As Connection and so on.
45-
- You dont have to renew the certificate used by the Automation Run As account.
49+
- Managed identities eliminate the overhead associated with managing Run As accounts in your runbook code. You can access resources via a managed identity of an Automation account from a runbook without worrying about creating the service principal, Run As certificate, Run As connection, and so on.
50+
- You don't have to renew the certificate that the Automation Run As account uses.
4651

47-
## Are Managed identities more secure than Run As account?
48-
Run As account creates an Azure AD app used to manage the resources within the subscription through a certificate having contributor access at the subscription level by default. A malicious user could use this certificate to perform a privileged operation against resources in the subscription leading to potential vulnerabilities. Run As accounts also have a management overhead associated that involves creating a service principal, RunAsCertificate, RunAsConnection, certificate renewal and so on.
52+
## Are managed identities more secure than a Run As account?
53+
A Run As account creates an Azure AD app that's used to manage the resources within the subscription through a certificate that has contributor access at the subscription level by default. A malicious user could use this certificate to perform a privileged operation against resources in the subscription, leading to potential vulnerabilities.
4954

50-
Managed identities eliminate this overhead by providing a secure method for the users to authenticate and access resources that support Azure AD authentication without worrying about any certificate or credential management.
55+
Run As accounts also have a management overhead that involves creating a service principal, Run As certificate, Run As connection, certificate renewal, and so on. Managed identities eliminate this overhead by providing a secure method for users to authenticate and access resources that support Azure AD authentication without worrying about any certificate or credential management.
5156

52-
## Can managed identity be used for both cloud and hybrid jobs?
53-
Azure Automation supports [System-assigned managed identities](/azure/automation/automation-security-overview#managed-identities) for both cloud and Hybrid jobs. Currently, Azure Automation [User-assigned managed identities](/azure/automation/automation-security-overview#managed-identities-preview) can only be used for cloud jobs only and cannot be used for jobs run on a Hybrid Worker.
57+
## Can a managed identity be used for both cloud and hybrid jobs?
58+
Azure Automation supports [system-assigned managed identities](/azure/automation/automation-security-overview#managed-identities) for both cloud and hybrid jobs. Currently, Azure Automation [user-assigned managed identities](/azure/automation/automation-security-overview#managed-identities-preview) can be used for cloud jobs only and can't be used for jobs that run on a hybrid worker.
5459

55-
## Can I use Run as account for new Automation account?
56-
Yes, only in a scenario when Managed identities aren't supported for specific on-premises resources. We'll allow the creation of Run As account through [PowerShell script](/azure/automation/create-run-as-account#create-account-using-powershell).
60+
## Can I use a Run As account for new Automation account?
61+
Yes, but only in a scenario where managed identities aren't supported for specific on-premises resources. We'll allow the creation of a Run As account through a [PowerShell script](/azure/automation/create-run-as-account#create-account-using-powershell).
5762

58-
## How can I migrate from existing Run As account to managed identities?
59-
Follow the steps mentioned in [migrate Run As accounts to Managed identity](/azure/automationmigrate-run-as-accounts-managed-identity).
63+
## How can I migrate from an existing Run As account to a managed identity?
64+
Follow the steps in [Migrate an existing Run As account to a managed identity](/azure/automation/migrate-run-as-accounts-managed-identity).
6065

61-
## How do I see the runbooks that are using Run As account and know what permissions are assigned to the Run As account?
62-
Use the [script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/Check-AutomationRunAsAccountRoleAssignments.ps1) here to find out which Automation accounts are using Run As account. If your Azure Automation accounts contain a Run As account, it will by default, have the built-in contributor role assigned to it. You can use this script to check the role assignments of your Azure Automation Run As accounts and determine if their role assignment is the default one or if it has been changed to a different role definition.
66+
## How do I see the runbooks that are using a Run As account and know what permissions are assigned to that account?
67+
Use [this script](https://github.com/azureautomation/runbooks/blob/master/Utility/AzRunAs/Check-AutomationRunAsAccountRoleAssignments.ps1) to find out which Automation accounts are using a Run As account. If your Azure Automation accounts contain a Run As account, it will have the built-in contributor role assigned to it by default. You can use the script to check the Azure Automation Run As accounts and determine if their role assignment is the default one or if it has been changed to a different role definition.
6368

6469
## Next steps
6570

66-
If your question isn't answered here, you can refer to the following sources for more questions and answers.
71+
If your question isn't answered here, you can refer to the following sources for more questions and answers:
6772

6873
- [Azure Automation](https://docs.microsoft.com/answers/topics/azure-automation.html)
6974
- [Feedback forum](https://feedback.azure.com/d365community/forum/721a322e-bd25-ec11-b6e6-000d3a4f0f1c)

0 commit comments

Comments
 (0)