@Prashanth Gopalapuram Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
To mount an Azure file share storage account for all users in a VDI environment, you can use Group Policy to create a logon script that maps the file share as a network drive. Here are the steps to do this:
- Create a batch file that maps the file share as a network drive. For example, you can create a file called "map_drive.bat" with the following contents:
net use Z: \\[storage_account_name].file.core.windows.net\[file_share_name] /u:[storage_account_name]\[storage_account_key]
Replace [storage_account_name]
with the name of your storage account, [file_share_name]
with the name of your file share, and [storage_account_key]
with your storage account key.
Save the batch file to a network location that is accessible to all users in the VDI environment.
Open the Group Policy Management Console and create a new Group Policy Object (GPO) for the VDI environment.
Edit the GPO and navigate to User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff).
Double-click on "Logon" and click "Add" to add a new logon script.
Browse to the location where you saved the batch file and select it.
Click "OK" to close the "Add a Script" dialog box.
Click "OK" to close the "Logon Properties" dialog box.
Close the Group Policy Management Editor.
Link the GPO to the appropriate Organizational Unit (OU) in Active Directory that contains the VDI users.
When users log on to the VDI environment, the logon script will run and map the file share as a network drive. This will allow all users to access the file share from within the VDI environment.
Additional information: If you would like to follow the approach from the link, it is required that you use hybrid user identities. Cloud-only users aren’t supported to authenticate to Azure files.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members