Set-SCComputerTier

Modifies the properties of a VMM computer tier object.

Syntax

Set-SCComputerTier [-AvailabilitySetName <String>] -ComputerTier <ComputerTier> [-Description <String>]
 [-InstanceMaximumCount <Int32>] [-InstanceMinimumCount <Int32>] [-JobVariable <String>] [-Name <String>]
 [-OnBehalfOfUser <String>] [-OnBehalfOfUserRole <UserRole>] [-PROTipID <Guid>] [-RunAsynchronously]
 [-ServicingType <ServicingTypeValues>] [<CommonParameters>]

Description

The Set-SCComputerTier cmdlet modifies the properties of a Virtual Machine Manager (VMM) computer tier object.

Examples

Example 1: Set the maximum virtual machine count for a computer tier

PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> $Tier = Get-SCComputerTier -Service $Service
PS C:\> Set-SCComputerTier -ComputerTier $Tier -InstanceMaximumCount 10

The first command gets the service object named Service01 and stores the object in the $Service variable.

The second command gets the computer tier for the service stored in $Service and stores the object in the $Tier vairable.

The last command sets the maximum virtual machine count for the computer tier stored in $Tier to 10.

Parameters

-AvailabilitySetName

Specifies the name of an availability set.

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

Specifies a computer tier object.

Type:ComputerTier
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Description

Specifies a description for the computer tier object.

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

Specifies the maximum number of virtual machines to which a service instance can scale out.

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InstanceMinimumCount

Specifies the minimum number of virtual machines to which a service instance can scale in.

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

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

Specifies the name of a VMM object.

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

Specifies a user name. This cmdlet operates on behalf of the user that this parameter specifies.

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

Specifies a user role. To obtain a user role, use the Get-SCUserRole cmdlet. This cmdlet operates on behalf of the user role that this parameter specifies.

Type:UserRole
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServicingType

Specifies the type of servicing for a service. Valid values are: UseStandardServicing, UseImageBasedServicing.

Type:ServicingTypeValues
Parameter Sets:UseStandardServicing, UseImageBasedServicing
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ComputerTier

This cmdlet returns a **ComputerTier** object.