Azure NetApp Files

Azure NetApp Files (ANF) is NetApp’s enterprise file storage, run by Microsoft inside Azure. It gives VMs NFS and SMB shares with very low latency and high throughput, and that’s why you’ll find it under SAP HANA, Oracle, EDA tools and big home-directory farms.

If you’ve worked with NetApp filers on premises, the ideas will feel familiar: volumes, export policies, snapshots. What’s different is the way Azure charges for it and sizes it, and that’s where most production problems begin.

There’s no small trial size for ANF, because a capacity pool starts at 1 TiB and bills by the hour. So this is a concept lesson with a simulated lab: you walk through the real Azure CLI flow, then rebuild an ANF-style NFS volume and its export policy on your laptop and break it the same way ANF volumes break.

TimeYou needCostBy the end you can
About 60 minutesFor Part B, an Ubuntu 24.04 VM in VirtualBoxNothing: Part A is a walkthrough and Part B runs on your laptop. For reference, a 1 TiB Standard pool costs about USD 167 a month in Central India (USD 0.000223 per GiB per hour, Azure Retail Prices API, October 2026)Explain accounts, pools, volumes and service levels, size throughput correctly, and fix export policy and root access problems

What it is, in one line

Azure NetApp Files gives Azure VMs fast NFS and SMB shares built on NetApp storage, sized by capacity pools and service levels.

In Simple Words

Renting a warehouse floor

Imagine renting a whole floor of a warehouse, 1,000 square metres, and paying for it whether you fill it or not; that floor is the capacity pool, and the rooms you mark out inside it for each team are the volumes. The warehouse gives you loading docks in proportion to room size, so a bigger room gets more docks and goods move in and out faster, which is how throughput is tied to volume size. Each room also has a guard with a list of which vans may unload there and whether the drivers are allowed to open sealed boxes, and that list is the export policy with its root access setting.

Engineer's View

How Azure NetApp Files is organised

  • NetApp account: a regional container that holds the pools and settings like Active Directory connections for SMB.
  • Capacity pool: provisioned capacity that you pay for, starting at 1 TiB, with a service level of Standard, Premium, Ultra or Flexible.
  • Volume: a share carved out of a pool, from 50 GiB to 100 TiB (large volumes go much higher), using NFSv3, NFSv4.1, SMB or dual-protocol.
  • Throughput: with automatic QoS, a volume gets a set throughput for each TiB of its quota, roughly 16 MiB/s on Standard, 64 on Premium and 128 on Ultra. With manual QoS you hand out throughput to each volume from the pool’s total.
  • Networking: volumes sit in a subnet delegated to Microsoft.NetApp/volumes and get a private IP. There’s no public endpoint.
  • Export policy: up to five rules per NFS volume, covering which clients are allowed, read-only or read-write, and whether root access is on or off.
  • Data protection: snapshots (instant and space-efficient), snapshot policies, backup, and replication across regions or zones.

How it works, step by step

Here’s the path from “we need shared storage for the app” to a mounted volume:

Azure NetApp Files account, capacity pool, volume and mount
  1. You create a NetApp account in the region, and then a capacity pool with a size and a service level.
  2. You delegate a subnet in the app’s VNet to Microsoft.NetApp/volumes.
  3. You create a volume with a quota, a protocol, a file path and an export policy that lets the app subnet in.
  4. ANF gives the volume a private IP in the delegated subnet.
  5. The VM mounts it with the recommended options and reads and writes to it like a local NFS filer.

The quota does two jobs at once. It limits space, and with automatic QoS it also sets throughput, so a 100 GiB Standard volume gets only about 1.6 MiB/s, and that’s why small ANF volumes often feel slow.

ANF export policy rules mapped to Linux exports options
Service levelThroughput per TiB1 TiB volume gets4 TiB volume gets
Standard16 MiB/s16 MiB/s64 MiB/s
Premium64 MiB/s64 MiB/s256 MiB/s
Ultra128 MiB/s128 MiB/s512 MiB/s

So when a team tells you “ANF is slow”, ask about the volume’s quota and service level before you look at the network.

Walk through ANF and build an ANF-style NFS volume on your laptop

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

Part A walks through the real commands with simulated output, and Part B is a hands-on NFS lab on your laptop that behaves like an ANF volume.

1Part A: account, pool and delegated subnet (simulated)

Don’t run these on a free account, because the pool starts billing as soon as it’s created. Here’s the order, with the kind of output you’d see:

az netappfiles account create --resource-group rg-saat-anf --name anf-saat --location centralindia
az netappfiles pool create --resource-group rg-saat-anf --account-name anf-saat --name pool-std --location centralindia --size 1 --service-level Standard
az network vnet subnet create --resource-group rg-saat-anf --vnet-name vnet-app --name snet-anf --address-prefixes 10.20.2.0/28 --delegations Microsoft.NetApp/volumes

2Part A: a volume with an export policy (simulated)

The volume allows only the app subnet, read-write, with root access turned on:

az netappfiles volume create --resource-group rg-saat-anf --account-name anf-saat --pool-name pool-std --name vol1 --location centralindia --service-level Standard --usage-threshold 1024 --file-path vol1 --vnet vnet-app --subnet snet-anf --protocol-types NFSv4.1 --allowed-clients 10.20.1.0/24 --rule-index 1 --unix-read-write true --has-root-access true --network-features Standard
az netappfiles volume show --resource-group rg-saat-anf --account-name anf-saat --pool-name pool-std --name vol1 --query "{ip:mountTargets[0].ipAddress, path:creationToken, quotaBytes:usageThreshold, mibps:actualThroughputMibps}"

Simulated output:

{
  "ip": "10.20.2.4",
  "path": "vol1",
  "quotaBytes": 1099511627776,
  "mibps": 16.0
}

Watch the units here: the CLI takes the quota in GiB but shows usageThreshold in bytes. 1 TiB on Standard gives you 16 MiB/s. From a VM in 10.20.1.0/24 you’d mount it like this:

sudo mkdir -p /mnt/vol1
sudo mount -t nfs -o rw,hard,rsize=262144,wsize=262144,vers=4.1,tcp 10.20.2.4:/vol1 /mnt/vol1

3Part B: build an ANF-style volume on your laptop

In an Ubuntu 24.04 VirtualBox VM, install the NFS server and create a volume folder that looks like a brand-new ANF volume (owned by root, mode 0770):

sudo apt update && sudo apt install -y nfs-kernel-server nfs-common
sudo mkdir -p /srv/anf/vol1 /mnt/vol1
sudo chmod 0770 /srv/anf/vol1
echo '/srv/anf/vol1 127.0.0.1(rw,sync,no_subtree_check,no_root_squash)' | sudo tee /etc/exports
sudo exportfs -ra
sudo exportfs -v

You should see something like this:

/srv/anf/vol1   127.0.0.1(sync,wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)

That line is your export policy: allowed client 127.0.0.1, read-write, root access on (no_root_squash). It maps one to one onto an ANF export policy rule.

4Mount it and write a file

Mount it with the same options ANF recommends, then write as root:

sudo mount -t nfs -o rw,hard,rsize=262144,wsize=262144,vers=4.1,tcp 127.0.0.1:/srv/anf/vol1 /mnt/vol1
sudo touch /mnt/vol1/hello.txt
ls -l /mnt/vol1
findmnt /mnt/vol1 -o TARGET,SOURCE,FSTYPE

You should see something like this:

total 0
-rw-r--r-- 1 root root 0 Oct 21 10:20 hello.txt
TARGET    SOURCE                    FSTYPE
/mnt/vol1 127.0.0.1:/srv/anf/vol1   nfs4

The client mounted over NFSv4.1, and root could write because root access is on.

Azure NetApp Files simulated lab with an NFS export
The laptop export and the mounted volume.
An ANF-style NFS volume exported and mounted with NFSv4.1
The export line is your export policy; the mount uses NFSv4.1.

✅ Checkpoint: Your laptop serves an NFS volume with an export policy, and the client mounts it with NFSv4.1 and writes as root.

Break It, Then Fix It

Leave the VM running for both breaks.

1Break it: the client isn’t in the export policy

The storage team tightens the policy so only the app subnet is allowed, which is how it’s normally written for ANF:

sudo umount /mnt/vol1
echo '/srv/anf/vol1 10.20.1.0/24(rw,sync,no_subtree_check,no_root_squash)' | sudo tee /etc/exports
sudo exportfs -ra
sudo mount -t nfs -o rw,hard,vers=4.1,tcp 127.0.0.1:/srv/anf/vol1 /mnt/vol1

You’ll get an error like this:

mount.nfs: access denied by server while mounting 127.0.0.1:/srv/anf/vol1

The network path is fine, because the server answered and said no. On ANF you’d get the same message when a VM in a new subnet, or a new AKS node pool, isn’t covered by any export rule.

To fix it, add the client to the policy (on ANF you’d add a rule or widen the allowed clients) and mount again:

echo '/srv/anf/vol1 127.0.0.1(rw,sync,no_subtree_check,no_root_squash) 10.20.1.0/24(rw,sync,no_subtree_check,no_root_squash)' | sudo tee /etc/exports
sudo exportfs -ra
sudo mount -t nfs -o rw,hard,vers=4.1,tcp 127.0.0.1:/srv/anf/vol1 /mnt/vol1
ls /mnt/vol1

You should see hello.txt again.

2Break it: root access turned off

Security asks for root access to be turned off on every export, which is a sensible request. Simulate it with root_squash, then try writing as root:

sudo umount /mnt/vol1
sudo sed -i 's/no_root_squash/root_squash/g' /etc/exports
sudo exportfs -ra
sudo mount -t nfs -o rw,hard,vers=4.1,tcp 127.0.0.1:/srv/anf/vol1 /mnt/vol1
sudo touch /mnt/vol1/root2.txt

You’ll get an error like this:

touch: cannot touch '/mnt/vol1/root2.txt': Permission denied

With root squashed, root on the client turns into the anonymous user nobody, and the volume (root-owned, mode 0770) won’t let nobody write. The app had been running as root on the client, so it breaks.

The right fix is to give the volume to the app’s user ID and run the app as that user. Turn root access on for a moment to set the ownership, then turn it off again:

sudo useradd -u 1500 appuser
sudo sed -i 's/root_squash/no_root_squash/g' /etc/exports && sudo exportfs -ra
sudo chown 1500:1500 /mnt/vol1
sudo sed -i 's/no_root_squash/root_squash/g' /etc/exports && sudo exportfs -ra
sudo -u appuser touch /mnt/vol1/app.txt
ls -ln /mnt/vol1

You should see something like this:

total 0
-rw-r--r-- 1 1500 1500 0 Oct 21 10:31 app.txt
-rw-r--r-- 1    0    0 0 Oct 21 10:20 hello.txt

The app writes as UID 1500, root stays squashed and the volume is safer. On ANF you’d follow the same steps: turn root access on, chown from a client, turn root access off. Keep the UID the same on every client that mounts the volume.

mount.nfs access denied by server when the client is not in the export policy
The server answered and refused this client.

3Clean up

Unmount and remove the export:

sudo umount /mnt/vol1
echo '' | sudo tee /etc/exports && sudo exportfs -ra
sudo rm -rf /srv/anf /mnt/vol1
sudo userdel appuser

✅ Checkpoint: You fixed an export policy that left out a client and a root squash problem with proper UID ownership.

This happened at work

The files that all belonged to nobody

A media company moved its render farm storage from an on-premises filer to ANF using NFSv4.1. The mounts worked, but every file showed owner nobody and group nogroup, and the render jobs couldn’t write their output folders.

The cause took some digging. NFSv4.1 sends user names with a domain rather than plain numeric IDs, and the Linux clients had their own DNS domain in /etc/idmapd.conf, while ANF expects defaultv4iddomain.com unless you use LDAP. Because the names didn’t match, the client mapped every owner to nobody.

What they changed: they set Domain = defaultv4iddomain.com in /etc/idmapd.conf through their VM image, cleared the ID map cache with nfsidmap -c and remounted. The migration checklist now covers the NFSv4.1 ID domain, matching UIDs across clients, and a test file written by the app user before go-live.

Common mistakes and troubleshooting

MistakeWhat you seeWhat to do
Client subnet missing from export policyaccess denied by server while mountingAdd a rule for the client subnet.
Root access off, app runs as rootPermission denied on writeRun the app as a user that owns the files.
NFSv4.1 ID domain mismatchFiles owned by nobodySet the idmapd domain to defaultv4iddomain.com, or use LDAP.
Small quota on StandardSlow reads and writesRaise the quota, change service level, or use manual QoS.
Subnet not delegatedVolume creation failsDelegate a subnet to Microsoft.NetApp/volumes.
Mounting without hard and large rsize/wsizeTimeouts and poor throughputUse Microsoft’s recommended mount options.

Interview questions

Click a question to open it. Each one is worded the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. What is Azure NetApp Files?

Why they ask this: The basic concept.

How you might answer: It’s a first-party Azure service built on NetApp that gives VMs and containers high-performance NFS and SMB volumes.

2. Account, pool, volume: what is each?

Why they ask this: Basic vocabulary.

How you might answer: The account is the regional container, the pool is provisioned capacity with a service level, and the volumes are shares carved out of the pool.

3. What is an export policy?

Why they ask this: NFS basics.

How you might answer: It’s a set of rules on an NFS volume listing the allowed clients, read or read-write access, and whether root access is allowed.

2–5 years experience

4. A VM gets access denied when mounting. What do you check?

Why they ask this: A real troubleshooting path.

How you might answer: I’d check the export policy rules for the VM’s IP or subnet first, then the protocol version in the mount command, whether the VM can reach the mount IP, and any NSGs or UDRs on the path.

5. How is ANF throughput decided?

Why they ask this: They want sizing knowledge.

How you might answer: With automatic QoS it’s the quota times the service level’s MiB/s per TiB. With manual QoS you assign throughput to each volume from the pool total, and Flexible separates throughput from capacity.

6. Users see files owned by nobody on NFSv4.1. Why?

Why they ask this: A classic ANF issue.

How you might answer: The NFSv4 ID mapping domain on the clients doesn’t match the server’s, so the names can’t be mapped. I’d set the domain in idmapd.conf or use LDAP, then clear the cache and remount.

Senior level

7. ANF, Azure Files or Elastic SAN?

Why they ask this: They want a design answer.

How you might answer: ANF when you need high-performance NFS or SMB with NetApp features, Azure Files for general SMB and NFS shares at a lower cost, and Elastic SAN for block storage over iSCSI. I’d decide on protocol, latency, throughput and cost.

8. How do you protect ANF data against a regional outage?

Why they ask this: DR depth.

How you might answer: Snapshot policies, ANF backup and cross-region replication to a volume in the paired region, plus a tested failover runbook that covers the mounts and DNS.

9. How do you keep ANF costs under control?

Why they ask this: FinOps thinking.

How you might answer: I’d right-size the pools and move volumes between pools or levels when needed, use cool access for cold data, and use manual QoS so we’re not oversizing quota just to get throughput. Reserved capacity helps for steady workloads.

Quick quiz

Q1. Minimum size of a capacity pool (Standard network features)?

  1. 100 GiB
  2. 1 TiB
  3. 4 TiB
  4. 10 TiB
Show answer

B — 1 TiB is the minimum today.

Q2. A 2 TiB Premium volume with automatic QoS gets about?

  1. 16 MiB/s
  2. 128 MiB/s
  3. 512 MiB/s
  4. 1 GiB/s
Show answer

B — 64 MiB/s per TiB times 2.

Q3. mount.nfs: access denied by server means?

  1. Wrong DNS
  2. Client not allowed by export policy
  3. Disk full
  4. Wrong service level
Show answer

B — The server refused this client.

Q4. Root access off; root can’t write. Best fix?

  1. Turn root access on forever
  2. Give the volume to the app user ID
  3. Delete the volume
  4. Use SMB
Show answer

B — Run the app as a non-root owner.

Q5. Subnet requirement for ANF volumes?

  1. A public subnet
  2. Delegated to Microsoft.NetApp/volumes
  3. GatewaySubnet
  4. Any subnet with an NSG
Show answer

B — Volumes need a delegated subnet.

Quick recap

You now know how ANF is built, sized and secured, and you’ve practised the two NFS faults that turn up in every migration.

  • Pools are paid capacity; volumes carve them up.
  • Throughput follows quota and service level with automatic QoS.
  • Export policies decide who can mount and whether root is trusted.
  • Run apps as a real UID instead of relying on root access.
  • For NFSv4.1, the ID domain must match or files show nobody.

Next lesson

Lesson 57: iSCSI and MPIO on Azure VMs → You build an iSCSI target with targetcli, connect to it over two paths with MPIO, and learn how Azure Elastic SAN fits in.

Further reading: Azure NetApp Files

Want to go deeper into Azure NetApp Files? See Microsoft’s What is Azure NetApp Files? and Resource limits for Azure NetApp Files. You can also see the full plan for this course on the Azure Cloud Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.