Set-SCFabricRole

Modifies a fabric role.

Syntax

Set-SCFabricRole
   [-VMMServer <ServerConnection>]
   [-FabricRole] <FabricRole>
   [-LoadBalancerConfiguration <LoadBalancerRoleConfiguration>]
   [-GatewayConfiguration <GatewayRoleConfiguration>]
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [-OnBehalfOfUser <String>]
   [-OnBehalfOfUserRole <UserRole>]
   [<CommonParameters>]

Description

The Set-SCFabricRole cmdlet modifies a fabric role in Virtual Machine Manager (VMM).

Examples

Example 1: Modify values for a fabric role

PS C:\> $FabricRoleConfiguration = New-SCLoadBalancerRoleConfiguration -LBManagerIPAddress "15.16.17.249"" -NatIPExemptions $NatIPExemptions -VipPools $VipPools
PS C:\> $FabricRole = Set-SCFabricRole -FabricRole $FabricRole -LoadBalancerConfiguration $FabricRoleConfiguration

The first command creates a configuration by using the New-SCLoadBalancerRoleConfiguration cmdlet, and then stores it in the $FabricRoleConfiguration variable. The command includes values in variables created by other commands.

The second command updates the existing load balancer fabric role with the configuration in $FabricRoleConfiguration.

Parameters

-FabricRole

Specifies a FabricRole object.

Type:FabricRole
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-GatewayConfiguration

Specifies a GatewayRoleConfiguration object.

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

-JobVariable

Specifies a variable in which job progress is tracked and stored.

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

-LoadBalancerConfiguration

Specifies a LoadBalancerRoleConfiguration object.

Type:LoadBalancerRoleConfiguration
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False