File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: Migrate from a Run As account to Managed identities
3
3
description : This article describes how to migrate from a Run As account to managed identities in Azure Automation.
4
4
services : automation
5
5
ms.subservice : process-automation
6
- ms.date : 03/03 /2023
6
+ ms.date : 03/14 /2023
7
7
ms.topic : conceptual
8
8
ms.custom : devx-track-azurepowershell
9
9
---
99
99
{
100
100
101
101
"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>
105
103
}
106
104
catch {
107
105
Write-Error -Message $_.Exception
@@ -164,6 +162,13 @@ foreach ($ResourceGroup in $ResourceGroups)
164
162
165
163
---
166
164
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
+
167
172
## Graphical runbooks
168
173
169
174
### Check if a Run As account is used in graphical runbooks
You can’t perform that action at this time.
0 commit comments