Skip to content

Commit e5c9abf

Browse files
committed
edited the info as a procedure
1 parent 8164b31 commit e5c9abf

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed
-75 Bytes
Loading
-66 Bytes
Loading

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,21 @@ foreach ($ResourceGroup in $ResourceGroups)
160160

161161
You can test the managed identity to verify if the Graphical runbook is working as expected by creating a copy of your production runbook to use the managed identity and updating your test graphical runbook code to authenticate by using the managed identity. You can add this functionality to a graphical runbook by adding `Connect-AzAccount` cmdlet.
162162

163-
To ensure that a graphical runbook that uses Run As account use managed identities, you must replace, Run As connection that uses `AzureRunAsConnection`
164-
and connection asset that internally uses PowerShell `Get-AutomationConnection` cmdlet.
163+
Listed below is an example to guide on how a graphical runbook that uses Run As account use managed identities:
165164

166-
:::image type="content" source="./media/migrate-run-as-account-managed-identity/edit-graphical-runbook-inline.png" alt-text="Screenshot of edit graphical runbook." lightbox="./media/migrate-run-as-account-managed-identity/edit-graphical-runbook-expanded.png":::
165+
1. Sign in to the [Azure portal](https://portal.azure.com).
166+
1. Open the Automation account and select **Process Automation**, **Runbooks**.
167+
1. Here, select a runbook. For example, select *Start Azure V2 VMs* runbook either from the list and select **Edit** or go to **Browse Gallery** and select *start Azure V2 VMs*.
167168

169+
:::image type="content" source="./media/migrate-run-as-account-managed-identity/edit-graphical-runbook-inline.png" alt-text="Screenshot of edit graphical runbook." lightbox="./media/migrate-run-as-account-managed-identity/edit-graphical-runbook-expanded.png":::
168170

169-
Activity to connect to Azure that uses `Connect-AzAccount` to add the authenticated Run As account for use in the runbook with `Connect-AzAccount` activity from the `Az.Accounts` cmdlet that uses the PowerShell code to connect to identity.
171+
1. Replace, Run As connection that uses `AzureRunAsConnection`and connection asset that internally uses PowerShell `Get-AutomationConnection` cmdlet with graphical runbook functionality.
170172

171-
:::image type="content" source="./media/migrate-run-as-account-managed-identity/add-functionality-inline.png" alt-text="Screenshot of add functionality to graphical runbook." lightbox="./media/migrate-run-as-account-managed-identity/add-functionality-expanded.png":::
173+
1. Connect to Azure that uses `Connect-AzAccount` to add the authenticated Run As account for use in the runbook with `Connect-AzAccount` activity from the `Az.Accounts` cmdlet that uses the PowerShell code to connect to identity.
172174

175+
:::image type="content" source="./media/migrate-run-as-account-managed-identity/add-functionality-inline.png" alt-text="Screenshot of add functionality to graphical runbook." lightbox="./media/migrate-run-as-account-managed-identity/add-functionality-expanded.png":::
176+
177+
1. Select **Code** to enter the following code.
173178

174179
```powershell-interactive
175180
try

0 commit comments

Comments
 (0)