< Back
New-LinaStrategy
Post
NAME New-LinaStrategy
SYNOPSIS
Creates a new strategy from scrath or from another one (cloning).
SYNTAX
New-LinaStrategy [-lina_strategy <PSObject>] [-Name] <String> [[-Tenant] <String>] [<CommonParameters>]
DESCRIPTION
Creates a new strategy with the provided name and configuration.
Current limitations : two parameters (gateways where encryption is disabled or WAN mode disabled) are not kept
when cloning/creating
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 create
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Tenant <String>
Optional : Name of the tenant where the new strategy should be created.
If not provided, strategy will be created in the same tenant as the original (global if not provided)
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:\\>Get-LinaStrategy -Name "MyStrat" | New-LinaStrategy -Name "Strat2"
Clone the strategy MyStrat to Strat2 in same tenant and keep all settings
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-LinaStrategy -Name "MyStrat" | New-LinaStrategy -Name "Strat2" -Tenant "Customer2"
Clone the strategy MyStrat to Strat2 in tenant Customer2 and keep all settings
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>@{ RPOInMinutes = 1 } | New-LinaStrategy -Name "Strat4"
Creates a new strategy with default parameters except for RPO.
RELATED LINKS
SYNOPSIS
Creates a new strategy from scrath or from another one (cloning).
SYNTAX
New-LinaStrategy [-lina_strategy <PSObject>] [-Name] <String> [[-Tenant] <String>] [<CommonParameters>]
DESCRIPTION
Creates a new strategy with the provided name and configuration.
Current limitations : two parameters (gateways where encryption is disabled or WAN mode disabled) are not kept
when cloning/creating
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 create
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Tenant <String>
Optional : Name of the tenant where the new strategy should be created.
If not provided, strategy will be created in the same tenant as the original (global if not provided)
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:\\>Get-LinaStrategy -Name "MyStrat" | New-LinaStrategy -Name "Strat2"
Clone the strategy MyStrat to Strat2 in same tenant and keep all settings
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-LinaStrategy -Name "MyStrat" | New-LinaStrategy -Name "Strat2" -Tenant "Customer2"
Clone the strategy MyStrat to Strat2 in tenant Customer2 and keep all settings
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>@{ RPOInMinutes = 1 } | New-LinaStrategy -Name "Strat4"
Creates a new strategy with default parameters except for RPO.
RELATED LINKS