Network security is the primary boundary for protecting Azure Files. You should disable public network access entirely and then choose between deploying a private endpoint or restricting the public endpoint to specific virtual networks and IP addresses. Use firewall rules that start with zero access and then add only the permissions that clients require. This approach follows the principle of least privilege and reduces exposure to the public internet. By limiting traffic to the Microsoft backbone network, you ensure data travels securely without crossing the open internet.
When authenticating to Azure Files over SMB, identity-based authentication with Azure AD Kerberos is the preferred method. This mechanism uses AES-256 Kerberos ticket encryption, which is far more secure than shared keys. If you must use storage account keys, store them in Key Vault, rotate them regularly, and consider disabling NTLMv2 for additional security. These practices minimize the risk of an attacker using leaked keys to gain access to your file shares.
Data protection in transit relies on strong encryption settings. Always enable the Secure transfer required option to force HTTPS connections, and configure the storage account to require TLS 1.2 or higher. For SMB traffic, restrict protocol versions to SMB 3.1.1 and only allow AES-256-GCM for channel encryption. These settings ensure that all file share traffic uses modern cryptographic algorithms and prevents downgrade attacks that could expose data.
For NFS file shares, Azure Files supports only NFS v4.1 on Linux clients and does not offer identity-based authentication. You must rely entirely on network-level security controls, such as network security groups (NSGs) and export policy rules, to grant access. Because NFS shares lack Kerberos support in Azure Files, it is critical to segment networks and restrict ingress and egress traffic. Following these guidelines guarantees that both SMB and NFS file share operations remain secure.
Are you a guardian of your domain? Lean how to leverage your aptitude in security to protect Microsoft Azure technologies, with a goal of earning the Microsoft Certified: Azure Security Engineer Associate certification!
Prepare and test your skills

Prepare and test your skills

The preferred method is identity-based authentication with Azure AD Kerberos, which uses AES-256 Kerberos ticket encryption and is far more secure than shared keys.
Disable public network access entirely, then either deploy a private endpoint or restrict the public endpoint to specific virtual networks and IP addresses, using firewall rules that start with zero access and add only required permissions.
Enable the Secure transfer required option to force HTTPS, configure the storage account to require TLS 1.2 or higher, and for SMB traffic restrict protocol versions to SMB 3.1.1 and only allow AES-256-GCM for channel encryption.
You must rely entirely on network-level security controls such as network security groups (NSGs) and export policy rules, and segment networks to restrict ingress and egress traffic.