Skip to content

Commit 4395dc6

Browse files
authored
Merge pull request #230568 from SnehaSudhirG/14Mar-RunAsAccount-Migration
Updated client ID info
2 parents ecdc457 + 7dd0223 commit 4395dc6

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed
235 KB
Loading
235 KB
Loading
46.8 KB
Loading
46.8 KB
Loading

articles/automation/migrate-run-as-accounts-managed-identity.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Migrate from a Run As account to Managed identities
33
description: This article describes how to migrate from a Run As account to managed identities in Azure Automation.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 03/03/2023
6+
ms.date: 03/14/2023
77
ms.topic: conceptual
88
ms.custom: devx-track-azurepowershell
99
---
@@ -99,9 +99,7 @@ try
9999
{
100100
101101
"Logging in to Azure..."
102-
103-
$identity = Get-AzUserAssignedIdentity -ResourceGroupName <myResourceGroup> -Name <myUserAssignedIdentity>
104-
Connect-AzAccount -Identity -AccountId $identity.ClientId
102+
Connect-AzAccount -Identity -AccountId <Client Id of myUserAssignedIdentity>
105103
}
106104
catch {
107105
Write-Error -Message $_.Exception
@@ -164,6 +162,18 @@ foreach ($ResourceGroup in $ResourceGroups)
164162

165163
---
166164

165+
### View client ID of user assigned identity
166+
167+
1. In your Automation account, under **Account Settings**, select **Identity**.
168+
1. In **User assigned** tab, select user assigned identity.
169+
170+
:::image type="content" source="./media/migrate-run-as-account-managed-identity/user-assigned-inline.png" alt-text="Screenshot that shows the navigation path to view client ID." lightbox="./media/migrate-run-as-account-managed-identity/user-assigned-expanded.png":::
171+
172+
1. Go to **Overview**> **Essentials**, to view the **Client ID**.
173+
174+
:::image type="content" source="./media/migrate-run-as-account-managed-identity/view-client-id-inline.png" alt-text="Screenshot that shows how to view a client ID." lightbox="./media/migrate-run-as-account-managed-identity/view-client-id-expanded.png":::
175+
176+
167177
## Graphical runbooks
168178

169179
### Check if a Run As account is used in graphical runbooks

0 commit comments

Comments
 (0)