Created
November 25, 2019 15:39
-
-
Save pmatthews05/1bd30320140a19f70ded796866526228 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Once signed into Azure CLI | |
$Token = az account get-access-token --resource-type "aad-graph" | ConvertFrom-Json | |
$AzAccount = az account show | ConvertFrom-Json | |
Connect-AzureAD -AadAccessToken $($Token.accessToken) -AccountId:$($AzAccount.User.Name) -TenantId:$($AZAccount.tenantId) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment