< Back
Remove-NsxFirewallSavedConfiguration
Post
NAME Remove-NsxFirewallSavedConfiguration
SYNOPSIS
Removes a saved Distributed Firewall configuration.
SYNTAX
Remove-NsxFirewallSavedConfiguration [-SavedConfig] <XmlElement> [-Confirm] [-Connection <PSObject>]
[<CommonParameters>]
DESCRIPTION
The Remove-NsxFirewallSavedConfiguration will remove a given saved
configuration.
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
-Confirm [<SwitchParameter>]
Prompt for confirmation. Specify as -confirm:$false to disable confirmation prompt
Required? false
Position? named
Default value True
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 | Remove-NsxFirewallSavedConfiguration
Remove all saved Distributed Firewall Configurations named Change123
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NsxFirewallSavedConfiguration -Name Change123 | Remove-NsxFirewallSavedConfiguration -Confirm:$false
Remove all saved Distributed Firewall Configurations named Change123 without prompting for confirmation
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-NsxFirewallSavedConfiguration -ObjectId 3278 | Remove-NsxFirewallSavedConfiguration
Remove saved Distributed Firewall Configuration with the ID 3278
RELATED LINKS
SYNOPSIS
Removes a saved Distributed Firewall configuration.
SYNTAX
Remove-NsxFirewallSavedConfiguration [-SavedConfig] <XmlElement> [-Confirm] [-Connection <PSObject>]
[<CommonParameters>]
DESCRIPTION
The Remove-NsxFirewallSavedConfiguration will remove a given saved
configuration.
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
-Confirm [<SwitchParameter>]
Prompt for confirmation. Specify as -confirm:$false to disable confirmation prompt
Required? false
Position? named
Default value True
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 | Remove-NsxFirewallSavedConfiguration
Remove all saved Distributed Firewall Configurations named Change123
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NsxFirewallSavedConfiguration -Name Change123 | Remove-NsxFirewallSavedConfiguration -Confirm:$false
Remove all saved Distributed Firewall Configurations named Change123 without prompting for confirmation
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-NsxFirewallSavedConfiguration -ObjectId 3278 | Remove-NsxFirewallSavedConfiguration
Remove saved Distributed Firewall Configuration with the ID 3278
RELATED LINKS