Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AzurePowerShellCredential

Package version

This credential will use the currently-logged-in user's login information via the Azure Power Shell command line tool. This credential is not supported in browsers. This credential will use the currently logged-in user information from the Azure PowerShell module. To do so, it will read the user access token and expire time with Azure PowerShell command Get-AzAccessToken -ResourceUrl {ResourceScope}

To be able to use this credential:

  • Install the Azure Az PowerShell module with: Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force.
  • You have already logged in to Azure PowerShell using the command Connect-AzAccount from the command line.

Hierarchy

  • AzurePowerShellCredential

Implements

  • any
  • any

Index

Constructors

Methods

Constructors

constructor

Methods

getToken

  • getToken(): Promise<AccessToken | null>

Generated using TypeDoc