Skip to content

Commit 778d406

Browse files
Merge pull request #219626 from b-ahibbard/anf-disableshowmount
Disable Showmount
2 parents ef165b4 + 4d937aa commit 778d406

File tree

4 files changed

+61
-1
lines changed

4 files changed

+61
-1
lines changed

articles/azure-netapp-files/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@
219219
href: configure-nfs-clients.md
220220
- name: Convert an NFS volume between NFSv3 and NFSv4.1
221221
href: convert-nfsv3-nfsv41.md
222+
- name: Disable showmount
223+
href: disable-showmount.md
222224
- name: Manage SMB volumes
223225
items:
224226
- name: Create an SMB volume
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Disable showmount in Azure NetApp Files | Microsoft Docs
3+
description: Showmount on NFS clients has historically been how users can see exported file systems on an NFS server. You can disable the showmount if it presents a security concern for your needs.
4+
services: azure-netapp-files
5+
documentationcenter: ''
6+
author: b-ahibbard
7+
manager: ''
8+
editor: ''
9+
10+
ms.assetid:
11+
ms.service: azure-netapp-files
12+
ms.workload: storage
13+
ms.tgt_pltfrm: na
14+
ms.topic: how-to
15+
ms.date: 03/16/2023
16+
ms.author: anfdocs
17+
---
18+
# Disable showmount in Azure NetApp Files (preview)
19+
20+
Showmount on NFS clients has historically been how users can see exported file systems on an NFS server. By default, Azure NetApp Files enables showmount functionality to show exported paths but 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.
21+
22+
This functionality might 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. In those scenarios, you might want to disable showmount on Azure NetApp Files.
23+
24+
Some applications, however, make use of showmount for functionality, such as Oracle OVM. In those scenarios, inform the security team of the application requirements.
25+
26+
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.
27+
28+
1. Register the feature by running the following commands:
29+
30+
```azurepowershell-interactive
31+
Register-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFDisableShowmount
32+
```
33+
34+
2. Check the status of the feature registration:
35+
36+
> [!NOTE]
37+
> The **RegistrationState** may be in the `Registering` state for up to 60 minutes before changing to `Registered`. Wait until the status is `Registered` before continuing.
38+
39+
```azurepowershell-interactive
40+
Get-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFDisableShowmount
41+
```
42+
43+
You can also use [Azure CLI commands](/cli/azure/feature) `az feature register` and `az feature show` to register the feature and display the registration status.
44+
45+
3. Confirm that you've disabled the showmount in the **Overview** menu of your Azure subscription. The attribute **Disable Showmount** displays as true if the operation succeeded.
46+
47+
:::image type="content" source="../media/azure-netapp-files/disable-showmount.png" alt-text="Screenshot of the Azure interface depicting the disable showmount option." lightbox="../media/azure-netapp-files/disable-showmount.png":::
48+
49+
4. If you need to enable showmount, unregister the feature.
50+
51+
```azurepowershell-interactive
52+
Unregister-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFDisableShowmount
53+
```

articles/azure-netapp-files/whats-new.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.service: azure-netapp-files
1212
ms.workload: storage
1313
ms.tgt_pltfrm: na
1414
ms.topic: overview
15-
ms.date: 03/01/2023
15+
ms.date: 03/16/2023
1616
ms.author: anfdocs
1717
---
1818
# What's new in Azure NetApp Files
@@ -21,6 +21,10 @@ Azure NetApp Files is updated regularly. This article provides a summary about t
2121

2222
## March 2023
2323

24+
* [Disable showmount](disable-showmount.md) (Preview)
25+
26+
By default, Azure NetApp Files enables [showmount functionality](/windows-server/administration/windows-commands/showmount) to show NFS exported paths. The setting allows NFS clients tp use the `showmount -e` command to see a list of exports available on the Azure NetApp Files NFS-enabled storage endpoint. This functionality might 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. In those scenarios, you might want to disable showmount on Azure NetApp Files. This setting allows you to enable/disable showmount for your NFS-enabled storage endpoints.
27+
2428
* [Active Directory support improvement](create-active-directory-connections.md#preferred-server-ldap) (Preview)
2529

2630
The Preferred server for LDAP client option allows you to submit the IP addresses of up to two Active Directory (AD) servers as a comma-separated list. Rather than sequentially contacting all of the discovered AD services for a domain, the LDAP client will contact the specified servers first.
@@ -148,6 +152,7 @@ Azure NetApp Files is updated regularly. This article provides a summary about t
148152
* Azure Managed Disk as an alternate storage back end
149153

150154
* [Active Directory connection enhancement: Reset Active Directory computer account password](create-active-directory-connections.md#reset-active-directory) (Preview)
155+
>>>>>>> 15252d24ac8fc6f9c2853c1a0deeb10d3393f104
151156
152157
## June 2022
153158

87.3 KB
Loading

0 commit comments

Comments
 (0)