Skip to content

Commit 6766b14

Browse files
Merge pull request #214714 from SnehaSudhirG/17Oct-MI-TypoCorrection
Added the word try in sample code
2 parents 72d188f + 97f32c0 commit 6766b14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Migrate from a Run As account to a managed identity
33
description: This article describes how to migrate from a Run As account to a managed identity in Azure Automation.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 04/27/2022
6+
ms.date: 10/17/2022
77
ms.topic: conceptual
88
ms.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..."

0 commit comments

Comments
 (0)