locked
Mount Azure File Storage using SAS token for authentication RRS feed

  • Question

  • Hi

    I found this link about smb with azure storage,

    https://stackoverflow.com/questions/45990751/mount-azure-file-storage-using-sas-token-for-authentication

    that sas token is not possible with azure mount smb.  This was 1.6 years ago, is this still haven't changed?

    Sunday, March 10, 2019 4:24 AM

Answers

  • It's possible on different approach and secure.  You still use the mount cifs (net use windows) but you stored the credentials in the key vault.  You should mount this on the bootup (with systemctl) using the technique of curl to get the credentials.  You need to allow key vault access policy on the vm, now this is tricky too to automate but it's possible.
    • Marked as answer by Rickytik Wednesday, March 13, 2019 3:25 AM
    Wednesday, March 13, 2019 3:24 AM

All replies

  • That still has not changed - you cannot use SAS when using SMB (you can if you connect via REST). 

    However, you now have the option of connecting via AD/Azure AD credentials. Note that this offering is in preview and applies strictly to Azure AD DS environments. More at https://docs.microsoft.com/en-us/azure/storage/files/storage-files-active-directory-enable

    hth
    Marcin

    Sunday, March 10, 2019 11:01 AM
  • It's possible on different approach and secure.  You still use the mount cifs (net use windows) but you stored the credentials in the key vault.  You should mount this on the bootup (with systemctl) using the technique of curl to get the credentials.  You need to allow key vault access policy on the vm, now this is tricky too to automate but it's possible.
    • Marked as answer by Rickytik Wednesday, March 13, 2019 3:25 AM
    Wednesday, March 13, 2019 3:24 AM