< Back
get-azureRMToken
Post
NAME get-azureRMToken
SYNOPSIS
Retrieve special Azure RM token to use for the main.iam.ad.ext.azure.com endpoint
SYNTAX
get-azureRMToken [-Username] <Object> [-Password] <Object> [[-tenantId] <Object>] [<CommonParameters>]
DESCRIPTION
The Azure RM token can be used for various actions that are not possible using Powershell cmdlets. This is
experimental and should be used with caution!
PARAMETERS
-Username <Object>
the UPN of a user with sufficient permissions to call the endpoint (this depends on what you'll use the token
for)
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <Object>
Password of Username
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-tenantId <Object>
If supplied, logs in to specified tenant.
Required? false
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
NOTES
filename: get-azureRMToken.ps1
author: Jos Lieben
blog: www.lieben.nu
created: 12/6/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$token = get-azureRMToken -Username you@domain.com -Password Welcome01
RELATED LINKS
SYNOPSIS
Retrieve special Azure RM token to use for the main.iam.ad.ext.azure.com endpoint
SYNTAX
get-azureRMToken [-Username] <Object> [-Password] <Object> [[-tenantId] <Object>] [<CommonParameters>]
DESCRIPTION
The Azure RM token can be used for various actions that are not possible using Powershell cmdlets. This is
experimental and should be used with caution!
PARAMETERS
-Username <Object>
the UPN of a user with sufficient permissions to call the endpoint (this depends on what you'll use the token
for)
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <Object>
Password of Username
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-tenantId <Object>
If supplied, logs in to specified tenant.
Required? false
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
NOTES
filename: get-azureRMToken.ps1
author: Jos Lieben
blog: www.lieben.nu
created: 12/6/2018
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$token = get-azureRMToken -Username you@domain.com -Password Welcome01
RELATED LINKS