Skip to content

Commit 371aaaf

Browse files
committed
Updated client ID info
1 parent 64ce0b7 commit 371aaaf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 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,13 @@ foreach ($ResourceGroup in $ResourceGroups)
164162

165163
---
166164

165+
### View Client ID
166+
167+
1. In your Automation account, under **Account Settings** select **Identity**.
168+
1. In **User assigned** tab , select **user assigned identity**.
169+
1. In the **Overview** page > **Essentials**, you can view the **Client ID**.
170+
171+
167172
## Graphical runbooks
168173

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

0 commit comments

Comments
 (0)