Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article helps you configure Microsoft Entra Kerberos authentication for hybrid and cloud-only identities on Azure NetApp Files.
Hybrid identities:
Hybrid identities are user accounts that originate in on-premises Active Directory Domain Services (AD DS) and synchronize to Microsoft Entra ID. This synchronization creates a single, common identity that you can use to authenticate and authorize access to both on-premises and cloud resources.
Cloud-only identities:
Cloud-only identities are user accounts that exist only in Microsoft Entra ID and aren’t synchronized from an on-premises directory. You create and manage these identities entirely within the Microsoft Entra tenant.
Considerations
- You must create a NetApp account in the region where you deploy the Azure NetApp Files volumes.
- Azure NetApp Files supports multiple Microsoft Entra ID connections per subscription, but you can configure only one Microsoft Entra ID connection per NetApp account.
- Azure NetApp Files accounts support either Microsoft Entra ID–based authentication or Active Directory Domain Services (AD DS)–based authentication, but not both at the same time.
- For customer-managed key (CMK) configurations, Azure NetApp Files uses a managed identity assigned to the NetApp account to access Azure Key Vault.
- You can assign multiple managed identities per NetApp account, with one managed identity used per feature, or reuse the same managed identity across features, depending on your configuration.
- Azure NetApp Files uses a user‑assigned or system‑assigned managed identity for the Microsoft Entra ID connection.
Unsupported features
The following features aren't supported:
- File access logs
- Cache volumes
- Application volume group
Register the feature
Support for Microsoft Entra Kerberos authentication with Azure NetApp Files is currently in preview. Before configuring Microsoft Entra Kerberos authentication, register the feature:
Register the feature:
Register-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFEntraIDCheck the status of the feature registration:
Note
The RegistrationState can remain in the
Registeringstate for up to 60 minutes before changing toRegistered. Wait until the status isRegisteredbefore continuing.Get-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFEntraID
Use Azure CLI commands az feature register and az feature show to register the feature and display the registration status.
Requirements
Before creating a new Entra ID connection, complete the following steps:
Ensure your Microsoft Entra ID environment is configured for the identity model you want to use:
- Hybrid identities: Configure Microsoft Entra Connect Sync to synchronize on-premises Active Directory users with Microsoft Entra ID.
- Cloud-only identities: No Microsoft Entra Connect Sync or on-premises Active Directory configuration is required.
Enable a system-assigned managed identity for the NetApp account
Before creating and uploading the certificate and granting Azure Key Vault permissions, enable the system-assigned managed identity for the NetApp account.
In the Azure portal, navigate to Azure NetApp Files > NetApp account.
Under Settings, select Identity.
Azure NetApp Files supports either a system-assigned or user-assigned managed identity. For this procedure, select the system-assigned identity.
On the System assigned tab, set the status to On.
Select Save.
Azure NetApp Files uses the NetApp account managed identity to access Azure Key Vault during Microsoft Entra Kerberos authentication configuration.
Register an application in Microsoft Entra ID. Register the application by using either the Microsoft Entra admin center or the Azure portal. Use the Azure portal so you can stay in a single workflow while configuring Azure NetApp Files resources. Complete the application registration with the following settings:
Application Name
Enter a user-defined application name that meets the naming guidelines.Supported account types
Single tenant only - Tenant_Name
Note
From the application’s Overview page, record the Application (client) ID. This ID uniquely identifies your application and is used in your application's code as part of validating the security tokens it receives from the Microsoft identity platform.
After you register your application, create and upload the certificate for authorization and set up permissions to configure Microsoft Entra ID connections.
Upload the certificate and set up permissions:
From the Azure portal, create a key vault by using Azure portal, Azure CLI, or Azure PowerShell.
Note the following two properties:
Vault Name
Azure NetApp Files uses the NetApp account–managed identity when accessing Azure Key Vault.Vault URI Applications that use your vault through its REST API must use this URI format -
https://vault_name.vault.azure.net
Grant the NetApp account’s managed identity the Key Vault Secrets User role on the associated Azure Key Vault. Select the NetApp account that's associated with the Azure NetApp Files volume used for Microsoft Entra Kerberos authentication (hybrid or cloud-only identities).
You need to set and retrieve the certificate from Azure Key Vault. All access to secrets takes place through Azure Key Vault.
Grant application permissions to Microsoft Graph for the application registration.
From the Overview page of your application registration in Microsoft Entra ID, under Manage select API permissions.
Select + Add a permission.
Select Microsoft Graph, and then select Application permissions.
Validate that the following permissions are assigned:
- Application.ReadWrite.OwnedBy
- User.Read
After adding permissions, select Grant admin consent for tenant-name and confirm the consent action.
Add a public certificate to the application registration.
- In Application registrations, select your application.
- Select Certificates & secrets > Certificates > Upload certificate.
- Select the file you want to upload. It must be one of the following file types: .cer, .pem, .crt.
- Select Add.
Self-signed certificates are supported but aren't recommended for production use. Azure NetApp Files requires outbound connectivity to Microsoft Graph for Microsoft Entra Kerberos authentication.
Configure an Azure Network Address Translation (NAT) gateway to provide outbound internet connectivity from the virtual network hosting Azure NetApp Files volumes, enabling access to graph.microsoft.com.
In the Azure portal, create an Azure NAT gateway in your subscription.
When creating the NAT gateway, provide the following information:
Resource group
The resource group where the NAT gateway will be created.NAT gateway name
A user‑defined name for the NAT gateway.SKU
Standard: Supports zonal deploymentPublic IP addresses
One or more public IP addresses that the NAT gateway uses for outbound internet traffic.Virtual network
Select the virtual network that contains the Azure NetApp Files delegated subnet.Subnets
Associate the NAT gateway with the subnets delegated to Azure NetApp Files and the subnet that includes clients.
Save the configuration.
After the NAT gateway is associated with the Azure NetApp Files subnet, outbound access to graph.microsoft.com is enabled, allowing Microsoft Entra ID communication required for authentication.
Note
The NAT gateway is used for outbound connectivity only. No inbound access or additional firewall rules are required for this configuration.
Create Entra ID connection
Create a Microsoft Entra ID connection for the NetApp account by using the application registration, certificate, Azure Key Vault, and managed identity that you configured in the preceding sections. The connection enables Azure NetApp Files to use Microsoft Entra Kerberos authentication for SMB volumes.
From the NetApp account, go to Azure NetApp Files > Entra ID connection, and then select Create.
Enter the following information:
Application ID
To use REST or Microsoft Graph API, you need OAuth 2.0 tokens. Configure the application ID as part of the prerequisite with the required permission and certificate.Domain Name
Domain of Active Directory that's synced with Entra ID for hybrid identities or any custom domain.Azure Key Vault URI
Azure Key Vault URI to fetch the certificate and private key to get tokens. The public certificate of this PFX certificate must match the one you upload during registration.Certificate name
Enter the certificate name from Azure Key Vault that's associated with your app registration.SMB server prefix
The naming prefix for a new application created on the Entra ID. This is the FQDN through which you mount the SMB volume.
After creating the Microsoft Entra ID connection, create an SMB volume that uses the connection.
Create the SMB volume
Create an SMB volume that uses the Microsoft Entra ID connection you configured in the previous section. Follow the steps in Create an SMB volume for Azure NetApp Files.
After creating the volume, record the following information:
- The SMB server name and fully qualified domain name (FQDN)
- The mount path
- The name of the autogenerated Microsoft Entra application associated with the volume
You use this information to grant admin consent, configure the client virtual machine, and mount the volume in the following sections.
Grant admin consent to the Microsoft Entra application created for the SMB volume
Grant admin consent to the Microsoft Entra application created for the SMB volume:
- Open Microsoft Entra ID.
- Under Manage, select App registrations.
- Select All Applications.
- Select the application whose name begins with the SMB server prefix and includes the autogenerated characters shown in the volume’s mount instructions. Example: SMB-PREFIX.Random_chars
- Under Manage, select API permissions.
- Select Grant admin consent for [Directory Name] to grant consent for the three requested API permissions (openid, profile, and User.Read) for all accounts in the directory.
- Select Yes to confirm.
Note
The service principal is autogenerated and isn't used for authorization to the file share. Don't make any edits to this autogenerated service principal other than the ones listed in this procedure. If you do, you might get an error.
Create Windows virtual machines to connect to Azure NetApp Files using Microsoft Entra Kerberos authentication
In some environments, you might not be able to connect directly to an Entra ID–joined virtual machine using Remote Desktop Protocol (RDP). In these cases, use an Entra ID–registered virtual machine as a jump box to establish the connection to the Entra ID–joined virtual machine. If you can connect directly to the Entra ID–joined virtual machine by signing in with your AzureAD\user@EntraIDdomain account, the Entra ID–registered virtual machine isn't required.
Depending on your environment, create one or two Windows virtual machines that you use to connect to Azure NetApp Files SMB volumes using Microsoft Entra Kerberos authentication. These virtual machines provide the client-side context required for Microsoft Entra Kerberos authentication and SMB access. Azure NetApp Files doesn't prompt for user credentials or issue Kerberos tickets. Windows clients obtain Kerberos tickets during an interactive sign-in.
Entra ID–joined virtual machine (Primary)
Create an Entra ID–joined virtual machine to use Kerberos authentication and SMB access to Azure NetApp Files. Use this virtual machine to:
- Sign in as a hybrid user using Microsoft Entra ID credentials.
- Obtain a cloud-issued Kerberos ticket during interactive sign-in.
- Mount the Azure NetApp Files SMB volume using Kerberos authentication.
To configure the Entra ID–joined virtual machine:
- Go to Work and school account > Connect to Azure > Use global Entra ID cloud account username and password.
- Sign in as hybrid or Entra ID cloud-only user by using Microsoft Entra ID credentials
- Obtain a cloud-issued Kerberos ticket during interactive sign-in.
- Mount the Azure NetApp Files SMB volume using Kerberos authentication.
This virtual machine represents the client that uses the end-to-end Microsoft Entra Kerberos authentication flow.
Entra ID–registered virtual machine (if required for remote access)
Note
The Entra ID–registered virtual machine is a jump host to facilitate testing.
Create an Entra ID–registered virtual machine to facilitate access to the Entra ID–joined virtual machine. Use this virtual machine to:
- Sign in with a global Microsoft Entra ID account.
- Register the device with Microsoft Entra ID.
To configure the Entra ID–registered virtual machine:
- Go to Work and school account > Connect to Azure > Use global Entra ID cloud account username and password.
- Sign in with a global Microsoft Entra ID account.
- Register the device with Microsoft Entra ID.
This virtual machine is typically used for identity validation and administrative access and doesn't mount Azure NetApp Files SMB volumes.
Important
- Production environments can use Entra ID–joined virtual machines to access Azure NetApp Files SMB volumes using Microsoft Entra Kerberos authentication.
- The authentication configuration (Microsoft Entra ID, certificates, Azure Key Vault, NAT gateway) remains valid after testing without these virtual machines.
Configure the Microsoft Entra ID-joined virtual machine
Configure the Microsoft Entra ID-joined virtual machine to obtain cloud Kerberos tickets and connect to the Azure NetApp Files SMB volume by using Microsoft Entra Kerberos authentication.
Sign in to Entra Joined VM as a hybrid user to mount the volume:
AzureAD\user@EntraIDdomain Example: AzureAD\jsmith@contoso.comNote
If you encounter any issues, select More Choices and then enter the credentials.
Go to Group Policy > Computer Configuration > Administrative Templates > System > Kerberos.
Enable Allow retrieving the cloud kerberos ticket during the logon.
Select Define host name-to-kerberos realm mappings and provide the FQDN for the Azure NetApp Files volume.
Example:
- Value name:
KERBEROS.MICROSOFTONLINE.COM - Value:
smbserver.contoso.com
- Value name:
Go to Group Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options.
Enable Network security: Allow PKU2U authentication requests to this computer to use online identities.
Add the hybrid user to the Remote Desktop Users by running the command:
net localgroup "Remote Desktop Users" /add <AzureAD\UPN>
Create an entry in the Windows hosts file to map the IP address to the Azure NetApp Files volume to the SMB Server FQDN.
Example:
102.54.94.97 smbserver.contoso.com
Configure directory-level and file-level permissions for Azure NetApp Files shares
By default, any user can access the share, but you maintain control by using the Access Control List (ACL) for users and groups. You can configure Windows access control lists (ACLs), also known as NTFS permissions. Windows ACLs (NTFS permissions) operate at a more granular level to control the operations the user can perform at the directory or file level. You can set Windows ACLs at the root, directory, or file level. When a user tries to access a file or directory, file-level and directory-level permissions are enforced. If there are differences among them, only the most restrictive one applies.
Configure Windows ACLs by using icacls
To grant full permissions to a hybrid user on directories and files under the file share, run the following command from the Entra Joined Windows VM’s command prompt where the share is mounted.
Note
You can configure access control lists only by using icacls. For more information, see icacls.
Mount the SMB volume by using the mount path you recorded when you created the volume.
Grant permissions by using a mapped drive
icacls <mapped-drive-letter>: /grant AzureAD\ AzureAD\user@<EntraIDdomain>:(f)
Grant permissions by using the file share
icacls \\<smbserver>.contoso.com\entravol /grant " AzureAD\user@<EntraIDdomain>":(R,W)
Note
The following configurations aren't supported:
- Icacls for groups isn't supported to apply ACLs for the Entra ID only identities.
- Configure Windows ACLs by using Windows File Explorer isn't supported for both hybrid as well as Entra ID only identities.
Edit Entra ID connection
In the Azure portal, from the NetApp account, go to Microsoft Entra ID.
Select
...and then select Edit to modify the Entra ID connection values.Note
For Entra-dependent volumes, you can modify only the Azure Key Vault URI, certificate name, and managed identity resource ID.
Delete Entra ID connection
In the Azure portal, go to the Entra ID Connection.
Select
...and then select Delete to delete the Entra ID connection.Note
You can delete the Entra ID connection only when there are no Entra dependent volumes.