Skip to content

Commit

Permalink
User -SignedIn to get current user (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjompen authored Nov 28, 2022
1 parent f4e7d01 commit ff07fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/wiki/Deploying-ALZ-Pre-requisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Powershell:
Connect-AzAccount
#get object Id of the current user (that is used above)
$user = Get-AzADUser -UserPrincipalName (Get-AzContext).Account
$user = Get-AzAduser -SignedIn
#assign Owner role to Tenant root scope ("/") as a User Access Administrator
New-AzRoleAssignment -Scope '/' -RoleDefinitionName 'Owner' -ObjectId $user.Id
Expand Down

0 comments on commit ff07fc8

Please sign in to comment.