Accessing Azure UNC paths – the username could not be found

I recently came across an issue when I tried to connect to an Azure server that has a shared folder using the UNC path. It kept saying: You might not have permissions to sue this network resource. Contact your administrator to find out if you have access permissions.

The user name could not be found.

After searching for a while the only suggestion I could find was to change the registry key to not cache credentials. The problem with this is that then it forces you to enter connection details even for local server resources on your domain. I’m sure other users won’t be to happy with that.

The only other solution I could find that worked was to create a credential for the Azure server in Credential Manager. Below is an example of what it would look like:

This solved the problem for me.