Set-WebSitesVirtualFarm

Set-WebSitesVirtualFarm

Updates the properties of a virtual server farm.

Syntax

Parameter Set: Default
Set-WebSitesVirtualFarm [-Name] <String> [-ExclusiveAssignment <Boolean> ] [-MaximumSiteWeight <Int32> ] [-OwnerName <String> ] [-PipelineVariable <String> ] [-TargetNumberOfWorkers <Int32> ] [-TargetWorkerSize {Small | Medium | Large} ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The Set-WebSitesVirtualFarm updates the properties of a virtual server farm.

Parameters

-ExclusiveAssignment<Boolean>

Indicates whether a worker is exclusive to the virtual server farm.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-MaximumSiteWeight<Int32>

Specifies the maximum site weight.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Name<String>

Specifies the name of a virtual server farm.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-OwnerName<String>

Specifes the name of the owner of a virtual server farm.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-TargetNumberOfWorkers<Int32>

Specifies the target number of workers for the virtual server farm.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-TargetWorkerSize<WorkerSize>

Specifies the size of the target worker for the virtual server farm. Valid values are:

-- Small

-- Medium

-- Large

The acceptable values for this parameter are:

 

Small

 

Medium

 

Large

 

 

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Update a virtual server farm

This command updates the virtual server farm named Farm01, specifying that the worker is exclusive to this farm, and that the target worker size is large.

PS C:\> Set-WebSitesVirtualFarm -Name "Farm01" -ExclusiveAssignment $True -TargetWorkerSize Large

 

Related topics

Get-WebSitesVirtualFarm