Create subnets

Within a virtual network, you need to create one subnet for each ML Workspace. In addition, one subnet needs to be reserved for infrastructure use.

  1. In the Virtual network overview, click +Subnet.
  2. Enter the name of the subnet, for example ‘Workspace-1’.
  3. Enter the IP address range as a CIDR address. A /25 network should be sufficient.
  4. Create two more subnets, for example ‘Workspace-2’ and ‘netapp’. The ‘netapp’ subnet is used for Cloudera Machine Learning infrastructure purposes only, and cannot be used for a workspace. Make sure that the CIDR ranges specified do not overlap.
  5. In the ‘netapp’ subnet Info page, under Subnet delegation, select Microsoft.Netapp/volumes.
  6. Click Save.

Create a subnet with the CLI

You can use the CLI to create subnets, as shown in this example.

 
                    az network vnet subnet create \ 
                    --resource-group my-cdp-resource-group \ 
                    --vnet-name my-cdp-vnet \ 
                    --name my-cml-subnet-1 \ 
                    --address-prefix 10.0.10.0/25 \ 
                    --service-endpoints Microsoft.Sql 
                

This example creates a subnet for the NetApp Files volume:

 
                    az network vnet subnet create \ 
                    --resource-group my-cdp-resource-group \ 
                    --vnet-name my-cdp-vnet \ 
                    --name my-anf-subnet \ 
                    --address-prefix 10.0.10.0/25 \ 
                    --delegations Microsoft.NetApp/volumes 
                

The --delegations and --service-endpoints flags can also be applied to an existing subnet by using the az network vnet subnet update command.