Share via


Get-AzsPlan

List all plans across all subscriptions.

Syntax

ListAll (Default)

Get-AzsPlan
    [-Skip <Int32>]
    [-Top <Int32>]
    [<CommonParameters>]

Get

Get-AzsPlan
    -Name <String>
    -ResourceGroupName <String>
    [<CommonParameters>]

List

Get-AzsPlan
    -ResourceGroupName <String>
    [-Skip <Int32>]
    [-Top <Int32>]
    [<CommonParameters>]

ResourceId

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

Description

List all plans across all subscriptions.

Examples

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

Get-AzsPlan -ResourceGroupName rg1 -Name plan1

Get a specifc plan under this subscriptions.

Parameters

-Name

Name of the plan.

Parameter properties

Type:String
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

-ResourceGroupName

The name of the resource group the resource is located under.

Parameter properties

Type:String
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
List
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

ListAll
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
List
Position:Named
Mandatory:False
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

ListAll
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
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.Plan