< Back
Remove-NsxServiceGroup
Post
NAME Remove-NsxServiceGroup
SYNOPSIS
Removes the specified NSX Service Group.
SYNTAX
Remove-NsxServiceGroup [-ServiceGroup] <XmlElement> [-Confirm] [-force] [[-Connection] <PSObject>]
[<CommonParameters>]
DESCRIPTION
A service group is a container that includes Services and other Service
Groups. These Service Groups are used by the NSX Distributed Firewall
when creating firewall rules. They can also be referenced by Service
Composer's Security Policies.
This cmdlet removes the specified Service Group.
PARAMETERS
-ServiceGroup <XmlElement>
Required? true
Position? 1
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
-force [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object
Required? false
Position? 2
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-NsxServiceGroup Heartbeat | Remove-NsxServiceGroup
This will remove the Service Group Heartbeat. All members of the Service
Group are not affected.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NsxServiceGroup | Remove-NsxServiceGroup -confirm:$false
This will retrieve and remove ALL Service Groups without confirmation
prompt.
RELATED LINKS
SYNOPSIS
Removes the specified NSX Service Group.
SYNTAX
Remove-NsxServiceGroup [-ServiceGroup] <XmlElement> [-Confirm] [-force] [[-Connection] <PSObject>]
[<CommonParameters>]
DESCRIPTION
A service group is a container that includes Services and other Service
Groups. These Service Groups are used by the NSX Distributed Firewall
when creating firewall rules. They can also be referenced by Service
Composer's Security Policies.
This cmdlet removes the specified Service Group.
PARAMETERS
-ServiceGroup <XmlElement>
Required? true
Position? 1
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
-force [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object
Required? false
Position? 2
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-NsxServiceGroup Heartbeat | Remove-NsxServiceGroup
This will remove the Service Group Heartbeat. All members of the Service
Group are not affected.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-NsxServiceGroup | Remove-NsxServiceGroup -confirm:$false
This will retrieve and remove ALL Service Groups without confirmation
prompt.
RELATED LINKS