Share via


Get-AzsSubscriptionPlan

Get a collection of all acquired plans that subscription has access to.

Syntax

List (Default)

Get-AzsSubscriptionPlan
    -TargetSubscriptionId <Guid>
    [-Top <Int32>]
    [-Skip <Int32>]
    [<CommonParameters>]

Get

Get-AzsSubscriptionPlan
    -AcquisitionId <Guid>
    -TargetSubscriptionId <Guid>
    [<CommonParameters>]

ResourceId

Get-AzsSubscriptionPlan
    -ResourceId <String>
    [<CommonParameters>]

Description

Get a collection of all acquired plans that subscription has access to.

Examples

-------------------------- EXAMPLE 1 --------------------------

Get-AzsSubscriptionPlan -TargetSubscriptionId "c90173b1-de7a-4b1d-8600-b832b0e65946"

Get a collection of all acquired plans that subscription has access to.

Parameters

-AcquisitionId

The plan acquisition Identifier

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceId

The resource id.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:id

Parameter sets

ResourceId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Skip

Skip the first N items as specified by the parameter value.

Parameter properties

Type:Int32
Default value:-1
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetSubscriptionId

The target subscription ID.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Top

Return the top N items as specified by the parameter value. Applies after the -Skip parameter.

Parameter properties

Type:Int32
Default value:-1
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

Microsoft.AzureStack.Management.Subscriptions.Admin.Models.PlanAcquisition