You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/files/storage-how-to-use-files-windows.md
+17-12Lines changed: 17 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ai-usage: ai-assisted
12
12
13
13
# Mount SMB Azure file share on Windows
14
14
15
-
[Azure Files](storage-files-introduction.md) is Microsoft's easy-to-use cloud file system. Azure file shares can be seamlessly used in Windows and Windows Server. This article shows you how to use an SMB Azure file share with Windows and Windows Server.
15
+
[Azure Files](storage-files-introduction.md) is Microsoft's easy-to-use cloud file system. Azure file shares work seamlessly with Windows and Windows Server. This article shows you how to use an SMB Azure file share with Windows and Windows Server.
| Windows Server 2016 | SMB 3.1.1 | Yes, with KB5004238 or newer and [applied registry key](files-smb-protocol.md#windows-server-2016-and-windows-10-version-1607)| AES-128-GCM |
52
52
| Windows 10, version 1607 | SMB 3.1.1 | Yes, with KB5004238 or newer and [applied registry key](files-smb-protocol.md#windows-server-2016-and-windows-10-version-1607)| AES-128-GCM |
53
53
| Windows 10, version 1507 | SMB 3.1.1 | Yes, with KB5004249 or newer and [applied registry key](files-smb-protocol.md#windows-10-version-1507)| AES-128-GCM |
54
-
| Windows Server 2012 R2 | SMB 3.0 | No | AES-128-CCM |
55
-
| Windows 8.1| SMB 3.0 | No | AES-128-CCM |
56
-
| Windows Server 2012| SMB 3.0 | No | AES-128-CCM |
57
-
| Windows Server 2008 R2<sup>1</sup> | SMB 2.1 | No | Not supported |
58
-
| Windows 7<sup>1</sup> | SMB 2.1 | No | Not supported |
54
+
| Windows Server 2012 R2<sup>1</sup>| SMB 3.0 | No | AES-128-CCM |
55
+
| Windows Server 2012<sup>1</sup>| SMB 3.0 | No | AES-128-CCM |
56
+
| Windows 8.1<sup>2</sup>| SMB 3.0 | No | AES-128-CCM |
57
+
| Windows Server 2008 R2<sup>2</sup> | SMB 2.1 | No | Not supported |
58
+
| Windows 7<sup>2</sup> | SMB 2.1 | No | Not supported |
59
59
60
-
<sup>1</sup>Regular Microsoft support for Windows 7 and Windows Server 2008 R2 has ended. It's possible to purchase additional support for security updates only through the [Extended Security Update (ESU) program](https://support.microsoft.com/help/4497181/lifecycle-faq-extended-security-updates). We strongly recommend migrating off of these operating systems.
60
+
<sup>1</sup>Regular Microsoft support for Windows Server 2012 and Windows Server 2012 R2 has ended. It's possible to purchase additional support for security updates only through the [Extended Security Update (ESU) program](https://support.microsoft.com/help/4497181/lifecycle-faq-extended-security-updates).
61
+
62
+
<sup>2</sup>Microsoft support for Windows 7, Windows 8, and Windows Server 2008 R2 has ended. We strongly recommend migrating off of these operating systems.
61
63
62
64
> [!NOTE]
63
65
> We recommend taking the most recent KB for your version of Windows.
64
66
65
67
## Prerequisites
66
68
67
-
Ensure port 445 is open: The SMB protocol requires TCP port 445 to be open. Connections will fail if port 445 is blocked. You can check if your firewall or ISP is blocking port 445 by using the `Test-NetConnection` cmdlet. See[Port 445 is blocked](/troubleshoot/azure/azure-storage/files-troubleshoot-smb-connectivity?toc=/azure/storage/files/toc.json#cause-1-port-445-is-blocked).
69
+
Ensure port 445 is open: The SMB protocol requires TCP port 445 to be open. Connections will fail if port 445 is blocked. You can check if your firewall or ISP is blocking port 445 by using the `Test-NetConnection`PowerShell cmdlet. For more information, see[Port 445 is blocked](/troubleshoot/azure/azure-storage/files-troubleshoot-smb-connectivity?toc=/azure/storage/files/toc.json#cause-1-port-445-is-blocked).
68
70
69
71
## Using an Azure file share with Windows
70
72
71
73
To use an Azure file share with Windows, you must either mount it, which means assigning it a drive letter or mount point path, or [access it via its UNC path](#access-an-azure-file-share-via-its-unc-path).
72
74
73
-
This article uses the storage account key to access the file share. A storage account key is an administrator key for a storage account, including administrator permissions to all files and folders within the file share you're accessing, and for all file shares and other storage resources (blobs, queues, tables, etc.) contained within your storage account. If this isn't sufficient for your workload, you can use [Azure File Sync](../file-sync/file-sync-planning.md) or [identity-based authentication over SMB](storage-files-active-directory-overview.md). Shared access signature (SAS) tokens aren't currently supported for mounting Azure file shares.
75
+
This article uses the storage account key to access the file share. A storage account key is an administrator key for a storage account, including administrator permissions to all files and folders within the file share you're accessing, and for all file shares and other storage resources (blobs, queues, tables, etc.) contained within your storage account. Shared access signature (SAS) tokens aren't currently supported for mounting Azure file shares.
74
76
75
-
A common pattern for lifting and shifting line-of-business (LOB) applications that expect an SMB file share to Azure is to use an Azure file share as an alternative for running a dedicated Windows file server in an Azure VM. One important consideration for successfully migrating an LOB application to use an Azure file share is that many applications run under the context of a dedicated service account with limited system permissions rather than the VM's administrative account. Therefore, you must ensure that you mount/save the credentials for the Azure file share from the context of the service account rather than your administrative account.
77
+
A common pattern for lifting and shifting line-of-business (LOB) applications that expect an SMB file share to Azure is to use an Azure file share as an alternative for running a dedicated Windows file server in an Azure virtual machine (VM). One important consideration for successfully migrating an LOB application to use an Azure file share is that many applications run under the context of a dedicated service account with limited system permissions rather than the VM's administrative account. Therefore, you must ensure that you mount/save the credentials for the Azure file share from the context of the service account rather than your administrative account.
76
78
77
79
### Mount the Azure file share
78
80
79
-
The Azure portal provides a PowerShell script that you can use to mount your file share directly to a host using the storage account key. Unless you're mounting the file share using identity-based authentication, we recommend using this provided script.
81
+
The Azure portal provides a PowerShell script that you can use to mount your file share directly to a host using the storage account key.
82
+
83
+
> [!IMPORTANT]
84
+
> Using the storage account key isn't recommended in production environments for security reasons. Use [identity-based authentication](storage-files-active-directory-overview.md) instead.
80
85
81
86
To get this script:
82
87
@@ -103,7 +108,7 @@ You have now mounted your Azure file share.
103
108
### Mount the Azure file share with File Explorer
104
109
105
110
> [!NOTE]
106
-
> Note that the following instructions are shown on Windows 10 and may differ slightly on older releases.
111
+
> The following instructions are shown on Windows 10 and might differ slightly on other releases.
107
112
108
113
1. Open File Explorer by opening it from the Start Menu, or by pressing the Win+E shortcut.
0 commit comments