Open topic with navigation

# Preparing the Subnet for the NFS Server and Jump Host

You can skip this step if you already have a subnet prepared for the installation of AKS.

In this section, you will prepare the subnets for the NFS server and for the jump host. Place all of the resources in the same virtual network to prevent performance issues caused by network latency. Such resources include resource group, AKS cluster, jumphost, Azure NetApp files, and so on.

## Portal

To prepare the subnet for the NFS server and jump host using the Azure Portal:

1. Open the virtual network used for the installation AKS. In our example, this is `demo-vnet` in resource group `srg-demo.`

1. On the Virtual network page, under Settings, select Subnets.
2. Click + Subnet.
3. In Name, specify nfs-subnet.
4. In Address range, specify an address range based on the IP assigned by Azure. In our example, `aks-subnet` uses the address range `10.1.1.0/24`, so we use `10.1.2.0/24.`

If you plan to use NetApp as an NFS service, under Subnet delegation, the subnet must be delegated to `Microsoft.NetApp/volumes.`

1. Click Save to create the subnet.

1. Repeat steps 3 and 6 to create a subnet for the jump host.

   - For name, use jumphost-subnet.
   - For address range, specify an appropriate range. For example, 10.1.3.0/24.

## CLI

To prepare the subnet for the NFS server and jump host using the Azure Cloud Shell:

Required permissions:create subnets inside the AKS virtual network

1. Create the NFS subnet by running the command:

    az network vnet subnet create \
    --address-prefixes <ADDRESS PREFIX> \
    --name nfs-subnet \
    -g <RESOURCE GROUP> \
    --vnet-name <VIRTUAL NETWORK>

where:

- `<VIRTUAL NETWORK>` is the virtual network name where you want to create the subnet. We will use the virtual network created earlier.
- `<RESOURCE GROUP>` is the resource group where the virtual network is located.

If you are using NetApp as an NFS service, add the argument `--delegations Microsoft.NetApp/volumes` to the above command.
For example, the following command would create nfs-subnet in virtual network demo-vnet, from resource group srg-demo with range 10.1.2.0/24 :
`az network vnet subnet create --address-prefixes 10.1.2.0/24 --name nfs-subnet -g srg-demo --vnet-name demo-vnet`

2. Create the jump host subnet by running a similar command to the one in Step 1, but with a different name and address prefix.

For example, the following command would create the jumphost-subnet, in virtual network demo-vnet from resource group srg-demo with range 10.1.3.0/24
`az network vnet subnet create --address-prefixes 10.1.3.0/24 --name jumphost-subnet -g srg-demo --vnet-name demo-vnet`

Next Step - If you are using NetApp as an NFS Server: (Conditional) If NetApp will be used as an NFS Server

Next Step: Preparing the Jump Host Virtual Machine