Persisting Azure file share credentials in Windows does not work RRS feed

  • Question

  • Hi,

    I've spent (too) many hours now on this topic:

    Although there is a quite good doc (https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows) I can't find out why my credentials are not made persistent. I did the following steps

    1. I have a resource group, VM and a storage account, incl. storage account key, enabled Port 445 and tested the connection => all fine so far
    2. I made thefile share credentials persistent using the PowerShell script in the help. As result I see the Windows credentials in the Credentials management tool on the VM. It is saved similar to this

    Currently stored credentials:

    Target: Domain:target=<storage-account-host-name>
    Type: Domain Password
    User: AZURE\<your-storage-account-name>

    3. I mounted the azure file share with PowerShell within the VM. Worked also fine.

    Now: when I reboot the VM the drive is shown up, but the VM starts with "could not reconnect network drive". I need to enter the network credentials (StorageAccountKey) to get the drive connected. Otherwise it wont work.

    What needs to be done to geht this thing fixed for after rebooting?

    Thanks in advance


    • Edited by AzureRNW Thursday, December 20, 2018 2:51 PM
    Thursday, December 20, 2018 2:14 PM

All replies

  • Hello AzureRNW,

    Try the suggestions provided in the following guides on Persisting connections to Azure files across reboots here and here . See if this helps you.

    Thursday, December 20, 2018 3:17 PM