Poul K. Sørensen
Poul K. Sørensen

Reputation: 17540

Is it possible to write out Oauth Token from Azure Powershell for debugging

After authentication with Add-AzureRMAccount i would like to print out the oauth token to debug its claims.

Is this possible in Azure Powershell?

Upvotes: 2

Views: 70

Answers (1)

juvchan
juvchan

Reputation: 6255

No, it is not possible.

The output object from Add-AzureRMAccount only has the following properties:

  • Environment
  • Account
  • TenantId
  • SubscriptionId
  • CurrentStorageAccount

Even with the -Debug switch for Add-AzureRMAccount, the debug messages also do not print out the actual OAuth token, only the token hash is printed out.

enter image description here

Update 1: Tested again with the Microsoft Azure PowerShell January 2016 (1.1.0)

Still only show the token hash.

enter image description here

Upvotes: 1

Related Questions