Partager via


New-AzsPlan

Creates a new plan

Syntax

New-AzsPlan
   [-Name] <String>
   [-ResourceGroupName] <String>
   [-DisplayName] <String>
   [-QuotaIds] <String[]>
   [[-Description] <String>]
   [[-SkuIds] <String[]>]
   [[-ExternalReferenceId] <String>]
   [[-Location] <String>]
   [[-SubscriptionCount] <Int64>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Creates a new plan

Examples

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

New-AzsPlan -Name "plan1" -ResourceGroupName "rg1" -QuotaIds "/subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/providers/Microsoft.Subscriptions.Admin/locations/local/quotas/delegatedProviderQuota" -Location "local" -DisplayName "plan1" -Description "asda"

Creates a new plan

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Description

Description of the plan.

Type:String
Position:5
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

Display name.

Type:String
Position:3
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ExternalReferenceId

External reference identifier.

Type:String
Position:7
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

Location of the resource.

Type:String
Aliases:ArmLocation
Position:8
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the plan.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-QuotaIds

Quota identifiers under the plan.

Type:String[]
Position:4
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The resource group the resource is located under.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SkuIds

SKU identifiers.

Type:String[]
Position:6
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionCount

Subscription count.

Type:Int64
Position:9
Default value:0
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.AzureStack.Management.Subscriptions.Admin.Models.Plan