Create subnets
Within a virtual network, you need to create one or more subnets for workbenches. Cloudera AI Workbenches cannot share subnets, so if you are planning to create multiple Cloudera AI Workbenches you will need to create one subnet for each workbench. In addition, if you plan to use Azure NetApp Files for NFS, one dedicated subnet must be created and delegated to Azure NetApp Files.
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.