File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ title: Migrate from a Run As account to a managed identity
33description : This article describes how to migrate from a Run As account to a managed identity in Azure Automation.
44services : automation
55ms.subservice : process-automation
6- ms.date : 04/27 /2022
6+ ms.date : 10/17 /2022
77ms.topic : conceptual
88ms.custom : devx-track-azurepowershell
99---
@@ -107,6 +107,7 @@ The following examples of runbook scripts fetch the Resource Manager resources b
107107> Enable appropriate RBAC permissions for the system identity of this Automation account. Otherwise, the runbook might fail.
108108
109109 ``` powershell
110+ try
110111 {
111112 "Logging in to Azure..."
112113 Connect-AzAccount -Identity
@@ -133,6 +134,7 @@ The following examples of runbook scripts fetch the Resource Manager resources b
133134# [ User-assigned managed identity] ( #tab/ua-managed-identity )
134135
135136``` powershell
137+ try
136138{
137139
138140 "Logging in to Azure..."
You can’t perform that action at this time.
0 commit comments