az vmware workload-network port-mirroring

Note

This reference is part of the vmware extension for the Azure CLI (version 2.11.0 or higher). The extension will automatically install the first time you run an az vmware workload-network port-mirroring command. Learn more about extensions.

Commands to manage a Port Mirroring workload network.

Commands

az vmware workload-network port-mirroring create

Create a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring delete

Delete a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring list

List of port mirroring profiles in a private cloud workload network.

az vmware workload-network port-mirroring show

Get a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring update

Update a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring create

Create a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring create --port-mirroring
                                                 --private-cloud
                                                 --resource-group
                                                 [--destination]
                                                 [--direction]
                                                 [--display-name]
                                                 [--revision]
                                                 [--source]

Examples

Create a port mirroring profile by ID in a workload network.

az vmware workload-network port-mirroring create --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1

Required Parameters

--port-mirroring

NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--destination

Destination VM Group.

--direction

Direction of port mirroring profile.

--display-name

Display name of the port mirroring profile.

--revision

NSX revision number.

--source

Source VM Group.

az vmware workload-network port-mirroring delete

Delete a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring delete --port-mirroring
                                                 --private-cloud
                                                 --resource-group
                                                 [--yes]

Examples

Delete a port mirroring profile by ID in a workload network.

az vmware workload-network port-mirroring delete --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1

Required Parameters

--port-mirroring

NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--yes

Delete without confirmation.

az vmware workload-network port-mirroring list

List of port mirroring profiles in a private cloud workload network.

az vmware workload-network port-mirroring list --private-cloud
                                               --resource-group

Examples

List of port mirroring profiles in a workload network.

az vmware workload-network port-mirroring list --resource-group group1 --private-cloud cloud1

Required Parameters

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az vmware workload-network port-mirroring show

Get a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring show --port-mirroring
                                               --private-cloud
                                               --resource-group

Examples

Get a port mirroring profile by ID in a workload network.

az vmware workload-network port-mirroring show --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1

Required Parameters

--port-mirroring

NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az vmware workload-network port-mirroring update

Update a port mirroring profile by ID in a private cloud workload network.

az vmware workload-network port-mirroring update --port-mirroring
                                                 --private-cloud
                                                 --resource-group
                                                 [--destination]
                                                 [--direction]
                                                 [--display-name]
                                                 [--revision]
                                                 [--source]

Examples

Update a port mirroring profile by ID in a workload network.

az vmware workload-network port-mirroring update --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1

Required Parameters

--port-mirroring

NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--destination

Destination VM Group.

--direction

Direction of port mirroring profile.

--display-name

Display name of the port mirroring profile.

--revision

NSX revision number.

--source

Source VM Group.