Skip to content

Commit 4ed8f72

Browse files
authored
Merge pull request #52066 from bergmeister/patch-6
data-factory/create-shared-self-hosted-integration-runtime-powershell: Use more readable parameter for role definition
2 parents 086d7c0 + fd45da6 commit 4ed8f72

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
@@ -170,7 +170,7 @@ Grant permission to the data factory that needs to access the self-hosted integr
170170
```powershell
171171
New-AzRoleAssignment `
172172
-ObjectId $factory.Identity.PrincipalId ` #MSI of the Data Factory with which it needs to be shared
173-
-RoleDefinitionId 'b24988ac-6180-42a0-ab88-20f7382dd24c' ` #This is the Contributor role
173+
-RoleDefinitionName 'Contributor' `
174174
-Scope $SharedIR.Id
175175
```
176176

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

0 commit comments

Comments
 (0)