< Back
New-NsxService
Post
NAME New-NsxService
SYNOPSIS
Creates a new NSX Service (aka Application).
SYNTAX
New-NsxService [-Name] <String> [[-Description] <String>] [-Protocol] <String> [[-port] <String>] [[-SourcePort]
<String>] [[-scopeId] <String>] [-Universal] [-EnableInheritance] [-ReturnObjectIdOnly] [[-Connection] <PSObject>]
[<CommonParameters>]
DESCRIPTION
An NSX Service defines a service as configured in the NSX Distributed
Firewall.
This cmdlet creates a new service of the specified configuration.
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Protocol <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-port <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SourcePort <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-scopeId <String>
Scope of object. For universal object creation, use the -Universal switch.
Required? false
Position? 6
Default value globalroot-0
Accept pipeline input? false
Accept wildcard characters? false
-Universal [<SwitchParameter>]
Create the Service as Universal object.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-EnableInheritance [<SwitchParameter>]
Create the Service with the inheritance set. Allows the Service to be used at a lower scope.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ReturnObjectIdOnly [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object
Required? false
Position? 7
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:\\>New-NsxService -Name TestService -Description "Test creation of a
service" -Protocol TCP -port 1234
RELATED LINKS
SYNOPSIS
Creates a new NSX Service (aka Application).
SYNTAX
New-NsxService [-Name] <String> [[-Description] <String>] [-Protocol] <String> [[-port] <String>] [[-SourcePort]
<String>] [[-scopeId] <String>] [-Universal] [-EnableInheritance] [-ReturnObjectIdOnly] [[-Connection] <PSObject>]
[<CommonParameters>]
DESCRIPTION
An NSX Service defines a service as configured in the NSX Distributed
Firewall.
This cmdlet creates a new service of the specified configuration.
PARAMETERS
-Name <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Protocol <String>
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-port <String>
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SourcePort <String>
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-scopeId <String>
Scope of object. For universal object creation, use the -Universal switch.
Required? false
Position? 6
Default value globalroot-0
Accept pipeline input? false
Accept wildcard characters? false
-Universal [<SwitchParameter>]
Create the Service as Universal object.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-EnableInheritance [<SwitchParameter>]
Create the Service with the inheritance set. Allows the Service to be used at a lower scope.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ReturnObjectIdOnly [<SwitchParameter>]
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
PowerNSX Connection object
Required? false
Position? 7
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:\\>New-NsxService -Name TestService -Description "Test creation of a
service" -Protocol TCP -port 1234
RELATED LINKS