I have set up a Azure Storage Account File Share (with private endpoints) and am trying to map the network location to my Virtual Machine (not domain joined) in the same virtual network by following this MS article.
I am trying to get this network location assigned when the user logs on by placing a batch file with the below code in the C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp folder.
net use z: /delete
net use z: "\\{myaccount}.file.core.windows.net\{myfileshare}"
When logging on as a local admin account it works creating the network location but when I try to do the same under a user account it fails with error 55: The Specified Network Resource or Device is No Longer Available Error.
I'm assuming this is a local permissions issue, any know the correct permissions to resolve this problem.