< Back

Set-LinaStrategy

Fri Jan 10, 2020 9:28 pm

NAME Set-LinaStrategy



SYNOPSIS

Changes the configuration of a strategy





SYNTAX

Set-LinaStrategy [-lina_strategy <PSObject>] [-Name] <String> [[-Tenant] <String>] [<CommonParameters>]





DESCRIPTION

Changes the configuration

Current limitations : two parameters (gateways where encryption is disabled or WAN mode disabled) cannot be

modified





PARAMETERS

-lina_strategy <PSObject>



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

Name of the strategy to modify



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Tenant <String>

Optional : Name of the tenant where the strategy to modify is. Needed if multiple strategies have the same

name across tenants



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Single LinaStrategy Object or Array of parameters





OUTPUTS

LinaStrategy Object





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>@{ RPOInMinutes = 1 } | Set-LinaStrategy -Name "MyStrat"



Modify strategy MyStrat with a RPO of 1 minute









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-LinaStrategy -Name "MyTemplate" | Set-LinaStrategy -Name "MyStrat"



Clone parameters from strategy MyTemplate to the strategy "MyStrat"











RELATED LINKS