Set-​Azure​RM​Plan

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

Syntax

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

Examples

Example 1:

$Plan = Get-AzureRMPlan -Name "ComputePlan" -ResourceGroup "PlanGroup" -Managed; # Modify the plan object for the need;  Set-AzureRMPlan -Plan $Plan -ResourceGroup "PlanGroup"

Description

-----------

The example gets a plan, modifies the plan object and then updates the plan

Required Parameters

-Plan

Specifies the plan object. The object can be got by executing Get-AzureRmPlan cmdlet

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

Specifies the resource group name of the plan

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

Optional Parameters

-InformationAction

Not SpecifiedThe following values are permitted for this object type.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Not Specified

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PipelineVariable

Not Specified

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

Outputs

Microsoft.AzureStack.Management.Models.AdminPlanModel