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.
On NFS clients, the showmount enables users to see exported file systems on an NFS server. By default, Azure NetApp Files enables showmount functionality to show exported paths. Azure NetApp Files doesn't list the allowed client access. Instead, showmount displays that everyone has access. The setting allows NFS clients to use the showmount -e
command to see a list of exports available on the Azure NetApp Files NFS-enabled storage endpoint.
This functionality can cause security scanners to flag the Azure NetApp Files NFS service as having a vulnerability because these scanners often use showmount to see what is being returned. If you encounter this scenario, you can disable the functionality.
Some applications such as Oracle OVM, rely on showmount. In those scenarios, inform the security team of the application requirements.
The disable showmount capability is currently in preview. If you're using this feature for the first time, you need to register the feature first. By registering the feature, you disable the showmount. By unregistering the feature, you enable the showmount.
Register the feature by running the following commands:
Register-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFDisableShowmount
Check the status of the feature registration:
Note
The RegistrationState can remain in the
Registering
state for up to 60 minutes before changing toRegistered
. Wait until the status isRegistered
before continuing.Get-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFDisableShowmount
You can also use Azure CLI commands
az feature register
andaz feature show
to register the feature and display the registration status.Confirm that the disablement of the feature in the Overview menu of your Azure subscription. The attribute Disable Showmount displays as true if the operation succeeded.
If you need to enable showmount, unregister the feature.
Unregister-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFDisableShowmount