Skip to content

Commit 66e72b8

Browse files
authored
Merge pull request #8129 from MicrosoftDocs/khdownie-patch-3
Update files-troubleshoot-smb-connectivity.md
2 parents 100efd0 + 2456981 commit 66e72b8

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

support/azure/azure-storage/files/connectivity/files-troubleshoot-smb-connectivity.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Troubleshoot problems connecting to and accessing SMB Azure file sh
44
services: storage
55
ms.service: azure-file-storage
66
ms.custom: sap:Connectivity, devx-track-azurepowershell, linux-related-content
7-
ms.date: 09/12/2024
7+
ms.date: 01/30/2025
88
ms.reviewer: kendownie, jarrettr, v-weizhu, v-six, hanagpal
99
---
1010
# Troubleshoot Azure Files connectivity and access issues (SMB)
@@ -106,7 +106,7 @@ SourceAddress : <your-ip-address>
106106
TcpTestSucceeded : True
107107
```
108108

109-
> [!Note]
109+
> [!NOTE]
110110
> This command returns the current IP address of the storage account. This IP address is not guaranteed to remain the same, and may change at any time. Don't hardcode this IP address into any scripts, or into a firewall configuration.
111111
112112
#### Solutions for cause 1
@@ -231,6 +231,8 @@ Make sure port 445 is open and [check DNS resolution and connectivity to your fi
231231

232232
### [Linux](#tab/linux)
233233

234+
Linux clients can use [AzFileDiagnostics](https://github.com/Azure-Samples/azure-files-samples/tree/master/AzFileDiagnostics/Linux) to automate symptom detection and ensure that they have the correct prerequisites.
235+
234236
Common causes for this problem are:
235237

236238
- You're using a Linux distribution with an outdated SMB client. See [Use Azure Files with Linux](/azure/storage/files/storage-how-to-use-files-linux) for more information on common Linux distributions available in Azure that have compatible clients.
@@ -262,17 +264,17 @@ To learn more, see [Prerequisites for mounting an Azure file share with Linux an
262264
1. Connect from a client that supports SMB encryption or connect from a virtual machine in the same datacenter as the Azure storage account that's used for the Azure file share.
263265
2. Verify the [Secure transfer required](/azure/storage/common/storage-require-secure-transfer) setting is disabled on the storage account if the client doesn't support SMB encryption.
264266

265-
##### Cause 2: Virtual network or firewall rules are enabled on the storage account
267+
##### Cause 2: Virtual network or firewall rules are enabled on the storage account, or port 445 is blocked
266268

267-
If virtual network (VNET) and firewall rules are configured on the storage account, network traffic will be denied access unless the client IP address or virtual network is allowed access.
269+
If virtual network (VNET) and firewall rules are configured on the storage account, network traffic will be denied access unless the client IP address or virtual network is allowed access. In addition, if your company or ISP is blocking port 445 outbound, you won't be able to mount the share.
268270

269271
##### Solution for cause 2
270272

271-
Verify that the VNET and firewall rules are configured properly on the storage account and the port 445 is allowlisted. To test if virtual networks or firewall rules cause the issue, you can temporarily change the setting on the storage account to **Allow access from all networks**. To learn more, see [Configure Azure Storage firewalls and virtual networks](/azure/storage/common/storage-network-security).
273+
Verify that the VNET and firewall rules are configured properly on the storage account, and that port 445 is allowlisted. To test if virtual networks or firewall rules cause the issue, you can temporarily change the setting on the storage account to **Allow access from all networks**. To learn more, see [Configure Azure Storage firewalls and virtual networks](/azure/storage/common/storage-network-security).
272274

273275
##### Cause 3: SMB client is configured to use NTLMv1
274276

275-
Azure Files only supports NTLMv2 and Kerberos for SMB file shares. Kernel 4.4 and later versions enable NTLMv2 by default and disable LANMAN. Under default configurations, NTLMv1 is kept as a negotiation only option. For more information, see your OS documentation.
277+
Azure Files only supports NTLMv2 (storage account key only) and Kerberos authentication for SMB file shares. NTLMv1 isn't supported. Kernel 3.3 and later versions default to NTLMv2 unless overridden with the `sec` mount option. Kernel 4.4 and later versions enable NTLMv2 by default and disable LANMAN. Under default configurations, NTLMv1 is kept as a negotiation only option. For more information, see your OS documentation.
276278

277279
##### Solution for cause 3
278280

@@ -284,7 +286,7 @@ When storage account key access is disabled or disallowed for a storage account,
284286

285287
##### Solution for cause 4
286288

287-
Use identity-based authentication. The file share must be joined to an on-premises Active Directory Domain Servies (AD DS) or Microsoft Entra Domain Services domain, and the Linux client must be [configured to use Kerberos authentication](/azure/storage/files/storage-files-identity-auth-linux-kerberos-enable).
289+
Use identity-based authentication instead. See [Enable Active Directory authentication over SMB for Linux clients accessing Azure Files](/azure/storage/files/storage-files-identity-auth-linux-kerberos-enable) for prerequisites and instructions.
288290

289291
#### <a id="error115"></a>"Mount error(115): Operation now in progress" when you mount Azure Files by using SMB 3.x
290292

@@ -492,6 +494,8 @@ $leaseClient.Break() | Out-Null
492494

493495
## [Linux](#tab/linux)
494496

497+
Linux clients can use [AzFileDiagnostics](https://github.com/Azure-Samples/azure-files-samples/tree/master/AzFileDiagnostics/Linux) to automate symptom detection and ensure that they have the correct prerequisites.
498+
495499
In Linux, you might see the following issues.
496500

497501
### Open handles on files or directories
@@ -589,6 +593,8 @@ If you're using Azure file shares to store profile containers or disk images for
589593

590594
## [Linux](#tab/linux)
591595

596+
Linux clients can use [AzFileDiagnostics](https://github.com/Azure-Samples/azure-files-samples/tree/master/AzFileDiagnostics/Linux) to automate symptom detection and ensure that they have the correct prerequisites.
597+
592598
### <a id="permissiondenied"></a>"[permission denied] Disk quota exceeded" when you try to open a file
593599

594600
In Linux, you might receive an error message that resembles the following:

0 commit comments

Comments
 (0)