Get-​Azure​RM​Managed​Subscription

Gets details about the target subscription of the tenant user.

Syntax

Get-AzureRMManagedSubscription
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-PipelineVariable <String>]
   [-TargetSubscriptionId <Guid>]
   [<CommonParameters>]

Description

The Get-AzureRMManagedSubscription cmdlet gets details about the target subscription of the tenant user. This cmdlet is useful to a service administrator. You must be logged in as service administrator before issuing this command.

Examples

Example 1: Get the details about the specified target subscription

Get-AzureRMManagedSubscription -TargetSubscriptionId "2fff214f-8589-4d25-b468-dc99320724bc"

This example gets the details about the target subscription that has the ID "2fff214f-8589-4d25-b468-dc99320724bc".

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
-TargetSubscriptionId

The target subscription ID of the tenant user.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.SubscriptionDefinition