Update-DSGatewayFarm
Synopsis
Update a gateway farm
Syntax
__AllParameterSets
Update-DSGatewayFarm [-GatewayFarmID] <guid> [[-Name] <string>] [[-MemberGateways] <Gateway[]>]
[[-Description] <string>] [[-VaultRoleOverride] <GatewayVaultRoleOverride>]
[[-CustomVaultAccess] <guid[]>] [-IsDefault <bool>] [<CommonParameters>]Description
Update a gateway farm's properties and membership. The Devolutions Gateway module is required. The gateways used as members will also be updated when this cmdlet is run. A gateway farm's "Members" field is a computed value; manually setting it to a new value changes nothing in itself. To modify a gateway farm's members, use this cmdlet.
Examples
Example 1
PS C:\> $farm = Get-DSGateway -GatewayID $farmId
PS C:\> $newGateway = Get-DSGateway -GatewayID $newGatewayId
PS C:\> $updatedMembers = $farm.Members + $newGateway
PS C:\> Update-DSGatewayFarm -GatewayFarmID $farmId -MemberGateways $updatedMembersAdd a new gateway to an existing farm by appending to the members array.
Example 2
Remove a gateway from a farm by filtering it out of the members array.
Example 3
Replace all farm members with a new set and update the farm's name and description.
Example 4
Update a gateway farm to grant access only to specific vaults.
Parameters
-CustomVaultAccess
List of vault access roles.
-Description
Description of the gateway farm.
-GatewayFarmID
ID of the gateway farm to update.
-IsDefault
Set as the default gateway.
-MemberGateways
Array of gateways to include as members of the farm (previous members will be replaced).
-Name
Gateway farm's name.
-VaultRoleOverride
Which vaults the gateway farm grants access to (if custom, specify with CustomVaultAccess).
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Notes
For more information, type "Get-Help Update-DSGatewayFarm -detailed". For technical information, type "Get-Help Update-DSGatewayFarm -full".
Last updated
Was this helpful?