Update EnterpriseScale-Setup-azure.md (#512)
Added the command to login using az login #might prompt the user using webbrowser. Added the command to login using az login -username -password No need to ask the end-user who they are logged into as. To avoid human error, we just call the user who is logged in. Co-authored-by: Hansjoerg Scherer <hjscherer@users.noreply.github.com>
This commit is contained in:
Родитель
bbd033f448
Коммит
9582321b97
|
@ -30,7 +30,14 @@ Please ensure you are logged in as a user with UAA role enabled in AAD tenant an
|
|||
Bash
|
||||
|
||||
````bash
|
||||
az role assignment create --scope '/' --role 'Owner' --assignee-object-id $(az ad user show -o tsv --query objectId --id '<replace-me>@<my-aad-domain.com>')
|
||||
#sign into AZ CLI, this will redirect you to a webbrowser for authentication, if required
|
||||
az login
|
||||
|
||||
#if you do not want to use a web browser you can use the following bash
|
||||
read -sp "Azure password: " AZ_PASS && echo && az login -u <username> -p $AZ_PASS
|
||||
|
||||
##assign Owner role to Tenant root scope ("/") as a User Access Administrator (gets object Id of the current user (az login))
|
||||
az role assignment create --scope '/' --role 'Owner' --assignee-object-id $(az ad signed-in-user show --query objectId)
|
||||
````
|
||||
|
||||
PowerShell
|
||||
|
|
Загрузка…
Ссылка в новой задаче