< Back
Add-NsxServiceGroupMember
Post
NAME Add-NsxServiceGroupMember
SYNOPSIS
Adds a single Service, numerous Services, or a Service Group to a Service
Group
SYNTAX
Add-NsxServiceGroupMember -ServiceGroup <XmlElement> [-Member] <XmlElement[]> [-Connection <PSObject>]
[<CommonParameters>]
DESCRIPTION
Adds the defined Service or Service Group to an NSX Service Groups. Service
groups contain a mixture of selected ports to represent a potential
grouping of like ports.
This cmdlet adds the defined Services or Service Groups within a Service
Group for specific or all Service Groups
PARAMETERS
-ServiceGroup <XmlElement>
Mastergroup added from Get-NsxServiceGroup
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Member <XmlElement[]>
The [] in XmlElement means it can expect more than one object!
Required? true
Position? 2
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:\\>$Service1 = Get-NsxService http -LocalOnly
PS C:\\> Get-NsxServiceGroup SG_PowerNSX | Add-NsxServiceGroupMember -Member $Service1
Add service http to Service Group SG_PowerNSX
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$Service1 = Get-NsxService http -LocalOnly
PS C:\\> $Service2 = Get-NsxService https -LocalOnly
PS C:\\> Get-NsxServiceGroup SG_PowerNSX2 | Add-NsxServiceGroupMember $Service1, $Service2
Add service http and https to Service Group SG_PowerNSX2
RELATED LINKS
SYNOPSIS
Adds a single Service, numerous Services, or a Service Group to a Service
Group
SYNTAX
Add-NsxServiceGroupMember -ServiceGroup <XmlElement> [-Member] <XmlElement[]> [-Connection <PSObject>]
[<CommonParameters>]
DESCRIPTION
Adds the defined Service or Service Group to an NSX Service Groups. Service
groups contain a mixture of selected ports to represent a potential
grouping of like ports.
This cmdlet adds the defined Services or Service Groups within a Service
Group for specific or all Service Groups
PARAMETERS
-ServiceGroup <XmlElement>
Mastergroup added from Get-NsxServiceGroup
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Member <XmlElement[]>
The [] in XmlElement means it can expect more than one object!
Required? true
Position? 2
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:\\>$Service1 = Get-NsxService http -LocalOnly
PS C:\\> Get-NsxServiceGroup SG_PowerNSX | Add-NsxServiceGroupMember -Member $Service1
Add service http to Service Group SG_PowerNSX
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$Service1 = Get-NsxService http -LocalOnly
PS C:\\> $Service2 = Get-NsxService https -LocalOnly
PS C:\\> Get-NsxServiceGroup SG_PowerNSX2 | Add-NsxServiceGroupMember $Service1, $Service2
Add service http and https to Service Group SG_PowerNSX2
RELATED LINKS