< Back
Get-AzureADAuthTokens
Post
NAME Get-AzureADAuthTokens
SYNOPSIS
This can be used to get Azure Authentication Tokens.
SYNTAX
Get-AzureADAuthTokens [-TenantId] <String> [-ADAppCliendId] <String> [-ADAppClientSecret] <String>
[<CommonParameters>]
DESCRIPTION
This function takes TenantId, ADAppCliendId, ADAppClientSecret and generated Auth tokens for
management.azure.com,storage.azure.com an vault.azure.net
PARAMETERS
-TenantId <String>
Provide a valid Tenant Id
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ADAppCliendId <String>
AD App Application Id. This will be used for login to Azure
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ADAppClientSecret <String>
AD App Application Secret Key. This will be used for login to Azure
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$tokens = Get-AzureADAuthTokens -TenantId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -ADAppCliendId
'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -ADAppClientSecret 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PS C:\\$tokens
RELATED LINKS
SYNOPSIS
This can be used to get Azure Authentication Tokens.
SYNTAX
Get-AzureADAuthTokens [-TenantId] <String> [-ADAppCliendId] <String> [-ADAppClientSecret] <String>
[<CommonParameters>]
DESCRIPTION
This function takes TenantId, ADAppCliendId, ADAppClientSecret and generated Auth tokens for
management.azure.com,storage.azure.com an vault.azure.net
PARAMETERS
-TenantId <String>
Provide a valid Tenant Id
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ADAppCliendId <String>
AD App Application Id. This will be used for login to Azure
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ADAppClientSecret <String>
AD App Application Secret Key. This will be used for login to Azure
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$tokens = Get-AzureADAuthTokens -TenantId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -ADAppCliendId
'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -ADAppClientSecret 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PS C:\\$tokens
RELATED LINKS