Creating network interfaces

Prev Next

The ether1 interface on the NDR Console virtual appliance is the only interface that Azure creates by default.

Before you create the management interface, you need to create a network security group and security rules to allow you to connect to the NDR Console via SSH and HTTPS.

Creating a network security group for a network interface

Follow these steps to create a network security group and security rules to allow you to connect to the NDR Console via SSH and HTTPS.

To create a network security group:

  1. Obtain the following information:

    • Resource group name

    • Name of the NDR Console virtual machine you want to create

  2. Using the Azure CLI, create the network security group and related rules using the following commands:

    az network nsg create 			       \
      --name <VMName-nsg>				\
      --resource-group <your-resource-group-name>
    
    az network nsg rule create 			\
      --name allow_ssh				\
      --resource-group <your-resource-group-name>	\
      --nsg-name <VMName-nsg>			\
      --priority 101				\
      --protocol Tcp				\
      --direction Inbound				\
      --destination-port-ranges 22
    
    az network nsg rule create 			\
      --name allow_web			        \
      --resource-group <your-resource-group-name>	\
      --nsg-name <VMName-nsg>			\                          \					
      --priority 102				\
      --protocol Tcp				\
      --direction Inbound				\
      --destination-port-ranges 443
    

Creating a network interface

You need the following information:

  • Resource group name

  • Location (example: “westus”)

  • Virtual Network name (example: “virtual-network-name”)

  • Subnet name

  • VM name

  • Name of the network security group you created earlier

  • The name of the public IP address created earlier

To create an interface:

Using the Azure CLI, create the management network interface using the following command.

az network nic create --name <VMName-mgmt>		\
  --public-ip-address <VMNamePublicIP>			\ 
  --vnet-name <virtual-network-name>			\
  --subnet <subnet-name>				\
  --resource-group <your-resource-group-name>