Easily obtain AccessToken (Bearer) from an existing AzureRM PowerShell session

You'll find in this function an easy way to extract the information required for you to build a Bearer token and all this from YOUR credentials within an authenticated PowerShell Azure session. You can then use this token to talk to Azure Resource Manager REST API.

profile.ps1
 
 
 
 
 
4.6 Star
(5)
2,905 times
Add to favorites
Windows Azure
3/14/2019
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Very Cool
    2 Posts | Last post February 09, 2019
    • Very cool, and usefull was looking for something like this.
      also nice that it is prepared/works with the az cmdlets as well.
    • Very glad you find it useful