Skip to content

Commit 8bc3c61

Browse files
Merge pull request #246790 from SnehaSudhirG/31July-Sourcecontrol-docedit
updated the code for assign MI to contributor role
2 parents e171a39 + 3ef7c96 commit 8bc3c61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/automation/source-control-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use source control integration in Azure Automation
33
description: This article tells you how to synchronize Azure Automation source control with other repositories.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 04/12/2023
6+
ms.date: 07/31/2023
77
ms.topic: conceptual
88
ms.custom: devx-track-azurepowershell
99
---
@@ -58,7 +58,7 @@ This example uses Azure PowerShell to show how to assign the Contributor role in
5858

5959
```powershell
6060
New-AzRoleAssignment `
61-
-ObjectId <automation-Identity-object-id> `
61+
-ObjectId <automation-Identity-Object(Principal)-Id> `
6262
-Scope "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}" `
6363
-RoleDefinitionName "Contributor"
6464
```

0 commit comments

Comments
 (0)