Set-​Azure​RM​Plan

Updates the existing plan with the given modified plan object.

Syntax

Set-AzureRMPlan
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-PipelineVariable <String>]
   -Plan <AdminPlanModel>
   -ResourceGroup <String>
   [<CommonParameters>]

Description

The Set-AzureRMPlan cmdlet updates the existing plan with the given modified plan object.

Examples

Example 1: Change a property of an existing plan

$planToUpdate = Get-AzureRMPlan -Name "ComputePlan" -ResourceGroup "PlanGroup" -Managed
$planToUpdate.DisplayName = "Plan A"
Set-AzureRMPlan -Plan $planToUpdate -ResourceGroup "PlanGroup"

This example modifies the DisplayName property of the plan named "ComputePlan" in the "PlanGroup" resource group. The first statement gets the plan and stores the object in the $planToUpdate variable. After the DisplayName property of the plan is changed, the updated object is passed in the Plan parameter of the Set-AzureRMPlan cmdlet.

Required Parameters

-Plan

Specifies an updated AdminPlanModel object to be used for updating the existing plan data.

Type:AdminPlanModel
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ResourceGroup

Specifies the name of the resource group of the plan.

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

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

Inputs

None

Outputs

Microsoft.AzureStack.Management.Models.AdminPlanModel