< Back
Add-NsxFirewallExclusionListMember
Post
NAME Add-NsxFirewallExclusionListMember
SYNOPSIS
Adds a virtual machine to the exclusion list, which are excluded from the
distributed firewall
SYNTAX
Add-NsxFirewallExclusionListMember [-VirtualMachine] <VirtualMachineInterop> [[-Connection] <PSObject>]
[<CommonParameters>]
DESCRIPTION
The 'Exclusion List' is a list of virtual machines which are excluded from
the distributed firewall rules. They are not protected and/or limited by it.
If a virtual machine has multiple vNICs, all of them are excluded from
protection.
VMware recommends that you place the following service virtual machines in
the Exclusion List
* vCenter Server.
* Partner service virtual machines.
* Virtual machines that require promiscuous mode.
This cmdlet adds a VM to the exclusion list
PARAMETERS
-VirtualMachine <VirtualMachineInterop>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
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:\\>Add-NsxFirewallExclusionListMember -VirtualMachine (Get-VM -Name myVM)
Adds the VM myVM to the exclusion list
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-VM | where-object { $_.name -match 'mgt'} | Add-NsxFirewallExclusionListMember
Adds all VMs with mgt in their name to the exclusion list.
RELATED LINKS
SYNOPSIS
Adds a virtual machine to the exclusion list, which are excluded from the
distributed firewall
SYNTAX
Add-NsxFirewallExclusionListMember [-VirtualMachine] <VirtualMachineInterop> [[-Connection] <PSObject>]
[<CommonParameters>]
DESCRIPTION
The 'Exclusion List' is a list of virtual machines which are excluded from
the distributed firewall rules. They are not protected and/or limited by it.
If a virtual machine has multiple vNICs, all of them are excluded from
protection.
VMware recommends that you place the following service virtual machines in
the Exclusion List
* vCenter Server.
* Partner service virtual machines.
* Virtual machines that require promiscuous mode.
This cmdlet adds a VM to the exclusion list
PARAMETERS
-VirtualMachine <VirtualMachineInterop>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
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:\\>Add-NsxFirewallExclusionListMember -VirtualMachine (Get-VM -Name myVM)
Adds the VM myVM to the exclusion list
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-VM | where-object { $_.name -match 'mgt'} | Add-NsxFirewallExclusionListMember
Adds all VMs with mgt in their name to the exclusion list.
RELATED LINKS