Creating and Preparing the Volume

- In your NetApp account resource, browse to Storage service.
- Select Volumes.
- Press + Add volume.
- Enter a name for the volume
- Ensure that your volume is in the same virtual network as
aks-virtual-network
andnfs-subnet.
- For Subnet, select nfs-subnet.
- Click Next:Protocol
- Ensure that the Protocol type is NFS and Version is NFSv4.1..
- In Export policy section , select the checkbox for 0.0.0.0/0 Read & Write.
- Enter the file path that will be used to create the export path for the volume
- Click Review + Create at the bottom of the page. If you are satisfied with your settings, click Create.

- Set your main resource group name to an environment variable:
# RESOURCE GROUP=<your resource group name>
For example:
# RESOURCE GROUP=srg-demo
- Run the command:
# az netappfiles volume create -g $RESOURCE_GROUP --account-name <ACCOUNT_NAME> --pool-name <POOL_NAME> --name <VOLUME_ROOT> -l <LOCATION> --service-level premium --usage-threshold <VOLUME_SIZE> --file-path <FILE_PATH> --vnet <VIRTUAL_NETWORK> --subnet <NFS_SUBNET_NAME> --protocol-types NFSv4.1 --rule-index <INDEX> --allowed-clients <CLIENT_LIST>
Parameters:
<INDEX>
the integer number of nfs creation rule.
<ACCOUNT_NAME>
is your netApp account name.
<POOL_NAME>
is the capacity pool created on the previous step.
<VOLUME_ROOT>
is your volume root name.
<LOCATION>
is location of your NetApp.
<VOLUME_SIZE>
size for NFS volume in GB.
<FILE_PATH>
is the path to your volumes.
<VIRTUAL_NETWORK>
the virtual network to which your subnets belong.
<NFS_SUBNET_NAME>
is your subnet for NFS.
CLIENT_LIST>
Specification as comma separated strings with IPv4 CIDRs, IPv4 host addresses and host names to access the NFS share. Ensure to include either the range of subnets and separate IP addresses or hostnames along with the jumphost.
For example:az netappfiles volume create -g $RESOURCE_GROUP --account-name SrgDemoNetAppAdmin --pool-name srg-demo-pool-name --name volumename -l westeurope --service-level premium --usage-threshold 100 --file-path "nfs" --vnet demo-vnet --subnet nfs-subnet --protocol-types NFSv4.1 --allowed-clients 20.120.3.0/24 --rule-index 1
Next Step: Configure and Create the Volumes