Skip to content

Commit ce80f11

Browse files
committed
Files MI preview integrity check
1 parent 3ba6bdd commit ce80f11

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

articles/storage/files/files-managed-identities.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article explains how you can authenticate managed identities t
44
author: khdownie
55
ms.service: azure-file-storage
66
ms.topic: how-to
7-
ms.date: 03/02/2026
7+
ms.date: 03/04/2026
88
ms.author: kendownie
99
ms.custom:
1010
- devx-track-azurepowershell
@@ -229,11 +229,11 @@ To prepare your client VM or Windows device to authenticate by using a managed i
229229

230230
1. Sign in to your VM or device that has the managed identity assigned and open a PowerShell window as administrator. You need either PowerShell 5.1+ or PowerShell 7+.
231231

232-
1. Install the [Azure Files SMB Managed Identity Client](https://www.powershellgallery.com/packages/AzFilesSmbMIClient/1.0.4) PowerShell module and import it:
232+
1. Install the [Azure Files SMB Managed Identity Client](https://www.powershellgallery.com/packages/AzFilesSmbMIClient/) PowerShell module and import it:
233233

234234
```powershell
235-
Install-Module AzFilesSMBMIClient
236-
Import-Module AzFilesSMBMIClient
235+
Install-Module AzFilesSmbMIClient
236+
Import-Module AzFilesSmbMIClient
237237
```
238238

239239
1. Check your current PowerShell execution policy by running the following command:
@@ -253,7 +253,7 @@ To prepare your client VM or Windows device to authenticate by using a managed i
253253
Before you can mount the file share by using the managed identity, refresh the authentication credentials and specify your storage account endpoint. To copy your storage account URI, go to the storage account in the Azure portal and then select **Settings** > **Endpoints** from the service menu. Be sure to copy the entire URI including the trailing slash: `https://<storage-account-name>.file.core.windows.net/`
254254

255255
```powershell
256-
AzFilesSMBMIClient.exe refresh --uri https://<storage-account-name>.file.core.windows.net/
256+
AzFilesSmbMIClient.exe refresh --uri https://<storage-account-name>.file.core.windows.net/
257257
```
258258

259259
This command gets an OAuth token and inserts it in the Kerberos cache. It auto-refreshes when the token is close to expiration. You can optionally omit the `refresh`.
@@ -290,20 +290,24 @@ Run the following commands to install `azfilesauth` on Ubuntu 22.04:
290290

291291
```bash
292292
curl -sSL -O https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
293-
sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb
293+
sudo dpkg -i packages-microsoft-prod.deb
294+
rm packages-microsoft-prod.deb
294295
# the above steps update the sources.list
295-
sudo apt-get update sudo apt-get install azfilesauth
296+
sudo apt-get update
297+
sudo apt-get install -y azfilesauth
296298
```
297299

298300
#### Ubuntu 24.04
299301

300302
Run the following commands to install `azfilesauth` on Ubuntu 24.04:
301303

302304
```bash
303-
curl -SSL -O https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb
304-
sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb
305+
curl -sSL -O https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb
306+
sudo dpkg -i packages-microsoft-prod.deb
307+
rm packages-microsoft-prod.deb
305308
# the above steps update the sources.list
306-
sudo apt-get update sudo apt-get install azfilesauth
309+
sudo apt-get update
310+
sudo apt-get install -y azfilesauth
307311
```
308312

309313
### Configure authentication
@@ -421,7 +425,7 @@ For native applications that need direct API access, AzFilesSmbMIClient is avail
421425

422426
The native DLL exports the following core methods for credential management:
423427

424-
```cpp
428+
```c
425429
extern "C" AZFILESSMBMI_API HRESULT SmbSetCredential(
426430
_In_ PCWSTR pwszFileEndpointUri,
427431
_In_ PCWSTR pwszOauthToken,
@@ -449,7 +453,7 @@ For more information, see the [AzFilesAuthenticator project](https://github.com/
449453

450454
The shared library exports the following core methods for credential management:
451455

452-
```bash
456+
```c
453457
#ifdef __cplusplus
454458
extern "C" {
455459
#endif
@@ -484,5 +488,5 @@ The following table lists the API commands and their usage. Returned values foll
484488
485489
## See also
486490
487-
- [Overview of Azure Files identity-based authentication for SMB access](storage-files-active-directory-overview.md)
491+
- [Overview of Azure Files identity-based authentication](storage-files-active-directory-overview.md)
488492
- [Overview of Azure Files authorization and access control](storage-files-authorization-overview.md)

0 commit comments

Comments
 (0)