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.
- In the Virtual network overview, click +Subnet.
- Enter the name of the subnet, for example ‘Workspace-1’.
- Enter the IP address range as a CIDR address. A /25 network should be sufficient.
- 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.
- In the ‘netapp’ subnet Info page, under Subnet delegation, select Microsoft.Netapp/volumes.
- 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.