< Back

Set-NsxFirewallSavedConfiguration

Sat Jan 18, 2020 9:28 pm

NAME Set-NsxFirewallSavedConfiguration



SYNOPSIS

Update a saved Distributed Firewall configuration.





SYNTAX

Set-NsxFirewallSavedConfiguration [-SavedConfig] <XmlElement> [-Preserve] [-Name <String>] [-Description <String>]

[-Connection <PSObject>] [<CommonParameters>]





DESCRIPTION

Update a saved Distributed Firewall configuration.



A copy of every published configuration is automatically saved as a draft. A

maximum of 100 configurations can be saved at a time. 90 out of

these 100 can be auto saved configurations from a publish operation.

When the limit is reached,the oldest configuration that is not marked for

preserve is purged to make way for a new one.





PARAMETERS

-SavedConfig <XmlElement>

A valid saved configuration from Get-NsxFirewallSavedConfiguration



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Preserve [<SwitchParameter>]

Specifies whether to preserve the saved configuration to prevent it being deleted automatically. Default =

$True



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Name to call the saved configuration



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Description <String>

A meaningful description for the saved configuration



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <PSObject>

PowerNSX Connection object



Required? false

Position? named

Default value $defaultNSXConnection

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



OUTPUTS



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



PS C:\\>Get-NsxFirewallSavedConfiguration -Name Change123 | Set-NsxFirewallSavedConfiguration -Preserve



Set the Preserve flag to true on an existing saved Distributed Firewall Configuration









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



PS C:\\>Get-NsxFirewallSavedConfiguration -Name Change123 | Set-NsxFirewallSavedConfiguration -Name

Change123NewName -Description "Now With Description"



Update the name and description on an existing saved Distributed Firewall Configuration









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-NsxFirewallSavedConfiguration -Name Change123 | Set-NsxFirewallSavedConfiguration -Preserve



Set the Preserve flag to true on an existing saved Distributed Firewall Configuration











RELATED LINKS