共用方式為


New-AzsSubscriptionPlan

Creates a subscription plan.

Syntax

New-AzsSubscriptionPlan
   [[-AcquisitionId] <Guid>]
   [-PlanId] <String>
   [-TargetSubscriptionId] <Guid>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Creates a subscription plan.

Examples

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

New-AzsSubscriptionPlan -PlanId "/subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/resourceGroups/rg1/providers/Microsoft.Subscriptions.Admin/plans/plan1" -AcquisitionId $([Guid]::NewGuid()) -TargetSubscriptionId "c90173b1-de7a-4b1d-8600-b832b0e65946"

Create an subscription plan.

Parameters

-AcquisitionId

Acquisition identifier.

Type:Guid
Position:1
Default value:$([Guid]::NewGuid())
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-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

-PlanId

Plan identifier in the tenant subscription context.

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

-TargetSubscriptionId

The target subscription ID.

Type:Guid
Position:3
Default value:None
Required:True
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.PlanAcquisition