IIS 7 and Above
Unable to map azure cloud storage file share to on-premises IIS serve...
Last post Aug 04, 2020 09:49 AM by Jalpa Panchal
Jul 29, 2020 12:30 AM|Rajeko|LINK
We are trying to map azure file storage file share to on-premises IIS web server but unable to access the storage path. Did anyone tried this before... is it possible ? any known issues in doing so..
Jul 29, 2020 02:30 AM|Jalpa Panchal|LINK
yes, you can map Azure File Storage with iis.
first, create a network share that will be used by IIS:
net use * \\name.file.core.windows.net\your-file-share /User:your-storage-account-name your-key
Create a local user account in IIS server: “Windows Server (Computer Management > Local Users and Groups > Users > Right click > New User)“
Name of the local account should be exactly the same as your storage account name.
The password of the local account should be exactly the same as your storage account’s key.
Check “User cannot change password” and “Password never expires” options. Click OK.
Add the account you created to the IIS_IUSRS group (Computer Management > Local Users and Groups > Groups > IIS_IUSRS > Properties > Add)
The main point in the process is using a local user account that has the same username and password (key) as your storage account in Azure.
Run your IIS Application pool under this user.
you could refer this below link for more detailed steps:
IIS and Azure Files
Jul 30, 2020 05:16 PM|Rajeko|LINK
Thank You Jalpa.
We have tried this procedure on the VM within Azure network which worked fine. But the same procedure is not working on the server outside azure network.
Does this solution work on the servers outside Azure network, I mean on-premises servers and azure storage account ?
Aug 04, 2020 09:49 AM|Jalpa Panchal|LINK
to access the Azure storage outside of the network you need public IP