Update-AzWvdScalingPlan
update a scaling plan.
Syntax
Update-AzWvdScalingPlan
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-Description <String>]
[-ExclusionTag <String>]
[-FriendlyName <String>]
[-HostPoolReference <IScalingHostPoolReference[]>]
[-Schedule <IScalingSchedule[]>]
[-Tag <Hashtable>]
[-TimeZone <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdScalingPlan
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdScalingPlan
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdScalingPlan
-InputObject <IDesktopVirtualizationIdentity>
[-Description <String>]
[-ExclusionTag <String>]
[-FriendlyName <String>]
[-HostPoolReference <IScalingHostPoolReference[]>]
[-Schedule <IScalingSchedule[]>]
[-Tag <Hashtable>]
[-TimeZone <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
update a scaling plan.
Examples
Example 1: Update a Windows Virtual Desktop Scaling Plan by name
Update-AzWvdScalingPlan `
-ResourceGroupName ResourceGroupName `
-Name 'ScalingPlan1' `
-Description 'Description' `
-FriendlyName 'Friendly Name' `
-TimeZone 'Pacific Standard Time' `
-Schedule @(
@{
'Name' = 'Work Week';
'DaysOfWeek' = @('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday');
'RampUpStartTime' = @{
'Hour' = 7
'Minute' = 0
};
'RampUpLoadBalancingAlgorithm' = 'BreadthFirst';
'RampUpMinimumHostsPct' = 20;
'RampUpCapacityThresholdPct' = 20;
'PeakStartTime' = @{
'Hour' = 9
'Minute' = 30
};
'PeakLoadBalancingAlgorithm' = 'DepthFirst';
'RampDownStartTime' = @{
'Hour' = 16
'Minute' = 15
};
'RampDownLoadBalancingAlgorithm' = 'BreadthFirst';
'RampDownMinimumHostsPct' = 20;
'RampDownCapacityThresholdPct' = 20;
'RampDownForceLogoffUser' = $true;
'RampDownWaitTimeMinute' = 30;
'RampDownNotificationMessage' = 'Log out now, please.';
'RampDownStopHostsWhen' = 'ZeroSessions';
'OffPeakStartTime' = @{
'Hour' = 18
'Minute' = 0
};
'OffPeakLoadBalancingAlgorithm' = 'DepthFirst';
}
) `
-HostPoolReference @(
@{
'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName1';
'ScalingPlanEnabled' = $false;
},
@{
'HostPoolArmPath' = '/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/HostPoolName2';
'ScalingPlanEnabled' = $false;
}
)
Location Name Type
-------- ---- ----
westcentralus scalingPlan1 Microsoft.DesktopVirtualization/scalingplans
This command updates a Windows Virtual Desktop Scaling Plan in a Resource Group.
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 |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Description of scaling plan.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExclusionTag
Exclusion tag for scaling plan.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FriendlyName
User friendly name of scaling plan.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostPoolReference
List of ScalingHostPoolReference definitions.
Type: | IScalingHostPoolReference[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter
Type: | IDesktopVirtualizationIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JsonFilePath
Path of Json file supplied to the Update operation
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JsonString
Json string supplied to the Update operation
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the scaling plan.
Type: | String |
Aliases: | ScalingPlanName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Schedule
List of ScalingSchedule definitions.
Type: | IScalingSchedule[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription. The value must be an UUID.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag
tags to be updated
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TimeZone
Timezone of the scaling plan.
Type: | String |
Position: | Named |
Default value: | None |
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 |
Inputs
IDesktopVirtualizationIdentity
Outputs
Azure PowerShell