Skip to content

Instantly share code, notes, and snippets.

@ciphertxt
Created May 29, 2020 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ciphertxt/1a7257f03cb04ad71b09e2415a3150eb to your computer and use it in GitHub Desktop.
Save ciphertxt/1a7257f03cb04ad71b09e2415a3150eb to your computer and use it in GitHub Desktop.
$tokenPoSh = ((New-Object Microsoft.Azure.Commands.ResourceManager.Common.RMProfileClient([Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureRmProfileProvider]::Instance.Profile)).AcquireAccessToken((Gaz account get-access-tokenId)).AccessToken
$tokenCLI = az account get-access-token --query "accessToken"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment