Skip to content

Commit fd45da6

Browse files
authored
data-factory/create-shared-self-hosted-integration-runtime-powershell.md: Use more readable parameter for role definition
1 parent a53fe6e commit fd45da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/data-factory/create-shared-self-hosted-integration-runtime-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Grant permission to the data factory that needs to access the self-hosted integr
168168
```powershell
169169
New-AzRoleAssignment `
170170
-ObjectId $factory.Identity.PrincipalId ` #MSI of the Data Factory with which it needs to be shared
171-
-RoleDefinitionId 'b24988ac-6180-42a0-ab88-20f7382dd24c' ` #This is the Contributor role
171+
-RoleDefinitionName 'Contributor' `
172172
-Scope $SharedIR.Id
173173
```
174174

@@ -195,7 +195,7 @@ To revoke the access of a data factory from the shared integration runtime, run
195195
```powershell
196196
Remove-AzRoleAssignment `
197197
-ObjectId $factory.Identity.PrincipalId `
198-
-RoleDefinitionId 'b24988ac-6180-42a0-ab88-20f7382dd24c' `
198+
-RoleDefinitionName 'Contributor' `
199199
-Scope $SharedIR.Id
200200
```
201201

0 commit comments

Comments
 (0)