This documentation is archived and is not being maintained.

Portrule

Portrule specifies details about a port rule used for the cluster, including its name, virtual IP address, protocol, mode, and so on.

noteNote
To enable this Network Load Balancing setting, the NetworkLoadBalancingFullServer package must be enabled in the Windows image you are installing. To do this, use Windows System Image Manager to add the Microsoft-Windows-Foundation-Package to your answer file, and then configure the NetworkLoadBalancingFullServer package to enable it. For more information about adding and configuring packages, see the OEM Preinstallation Kit User's Guide or the Windows Automated Installation Kit User's Guide.

Child Elements

 

Key

Specifies the name of the port rule.

VirtualIpAddress

Specifies the virtual IP address of the port rule.

Protocol

Specifies the protocol used by the port rule.

StartPort

Specifies the start port used by the port rule.

EndPort

Specifies the end port used by the port rule.

Mode

Specifies the mode of the port rule.

HostPriority

Specifies the host priority for the port rule.

EqualLoad

Specifies details about the equal load for the port rule.

LoadWeight

Specifies the load weight of the port rule.

ClientAffinity

Specifies how network multiple requests are directed in a cluster.

Valid Passes

Parent Hierarchy

Applies To

For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-NetworkLoadBalancing-Core.

XML Example

<Portrule wcm:keyValue="Portrule2">
   <VirtualIpAddress>10.100.0.223</VirtualIpAddress>
   <Protocol>Both</Protocol>
   <StartPort>80</StartPort>
   <EndPort>80</EndPort>
   <Mode>MultipleHost</Mode>
   <LoadWeight>100</LoadWeight>
   <ClientAffinity>Single</ClientAffinity>
</Portrule>

Show: