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
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In order to use an Azure file share outside of the Azure region it is hosted in,
16
16
17
17
You can use Azure file shares on a Windows installation that is running either in an Azure VM or on-premises. The following table illustrates which OS versions support accessing file shares in which environment:
18
18
19
-
| Windows version | SMB version | Mountable in Azure VM | Mountable On-Premises|
19
+
| Windows version | SMB version | Mountable in Azure VM | Mountable on-premises|
@@ -121,7 +121,7 @@ You should now be able to mount or access the share without having to supply add
121
121
#### Advanced cmdkey scenarios
122
122
There are two additional scenarios to consider with cmdkey: storing credentials for another user on the machine, such as a service account, and storing credentials on a remote machine with PowerShell remoting.
123
123
124
-
Storing the credentials for another user on the machine is very easy: when logged into your account, simply execute the following PowerShell command:
124
+
Storing the credentials for another user on the machine is easy: when logged into your account, simply execute the following PowerShell command:
@@ -134,7 +134,7 @@ This will open a new PowerShell window under the user context of your service ac
134
134
Storing the credentials on a remote machine using PowerShell remoting is not however possible, as cmdkey does not allow access, even for additions, to its credential store when the user is logged in via PowerShell remoting. We recommend logging into the machine with [Remote Desktop](https://docs.microsoft.com/windows-server/remote/remote-desktop-services/clients/windows).
135
135
136
136
### Mount the Azure file share with PowerShell
137
-
Run the following commands from a regular (i.e. not an elevated) PowerShell session to mount the Azure file share. Remember to replace `<your-resource-group-name>`, `<your-storage-account-name>`, `<your-file-share-name>`, and `<desired-drive-letter>` with the proper information.
137
+
Run the following commands from a regular (not an elevated) PowerShell session to mount the Azure file share. Remember to replace `<your-resource-group-name>`, `<your-storage-account-name>`, `<your-file-share-name>`, and `<desired-drive-letter>` with the proper information.
1. Open File Explorer. This can be done by opening from the Start Menu, or by pressing Win+E shortcut.
179
179
180
-
2. Navigate to the **This PC** item on the left-hand side of the window. This will change the menus available in the ribbon. Under the Computer menu, select **Map network drive**.
180
+
1. Navigate to the **This PC** item on the left-hand side of the window. This will change the menus available in the ribbon. Under the Computer menu, select **Map network drive**.
181
181
182
182

183
183
184
-
3. Copy the UNC path from the **Connect** pane in the Azure portal.
185
-
186
-

187
-
188
-
4. Select the drive letter and enter the UNC path.
184
+
1. Select the drive letter and enter the UNC path, the UNC path format is `<storageAccountName>.file.core.windows.net/<fileShareName>`. For example: `anexampleaccountname.file.core.windows.net/example-share-name`.
189
185
190
186

191
187
192
-
5. Use the storage account name prepended with `AZURE\` as the username and a storage account key as the password.
188
+
1. Use the storage account name prepended with `AZURE\` as the username and a storage account key as the password.
193
189
194
190

195
191
196
-
6. Use Azure file share as desired.
192
+
1. Use Azure file share as desired.
197
193
198
194

199
195
200
-
7. When you are ready to dismount the Azure file share, you can do so by right-clicking on the entry for the share under the **Network locations** in File Explorer and selecting **Disconnect**.
196
+
1. When you are ready to dismount the Azure file share, you can do so by right-clicking on the entry for the share under the **Network locations** in File Explorer and selecting **Disconnect**.
201
197
202
198
### Accessing share snapshots from Windows
203
199
If you have taken a share snapshot, either manually or automatically through a script or service like Azure Backup, you can view previous versions of a share, a directory, or a particular file from file share on Windows. You can take a share snapshot from the [Azure portal](storage-how-to-use-files-portal.md), [Azure PowerShell](storage-how-to-use-files-powershell.md), and [Azure CLI](storage-how-to-use-files-cli.md).
@@ -217,6 +213,7 @@ You can select **Open** to open a particular snapshot.
217
213
218
214
#### Restore from a previous version
219
215
Select **Restore** to copy the contents of the entire directory recursively at the share snapshot creation time to the original location.
216
+
220
217

0 commit comments