Get-​Azure​RM​Tenant​Subscription

Gets the subscriptions associated with the current logged-in user.

Syntax

Get-AzureRMTenantSubscription
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-PipelineVariable <String>]
   [<CommonParameters>]

Description

The Get-AzureRmTenantSubscription cmdlet gets the subscriptions associated with the current logged-in user.

Examples

Example 1: Get the subscriptions associated with the current user

Get-AzureRmTenantSubscription

This example lists the user's subscriptions after the user logged in with the Add-AzureRmAccount cmdlet.

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies a variable that is used for storing an informational message.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PipelineVariable

Specifies a variable that stores the value of the current pipeline element.

Type:String
Aliases:pv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.SubscriptionDefinition