We will explore how to configure Azure File Share without any disconnect of the network drive in the next login.
Step 1: Create an Azure File Share
The first step is to create an Azure File Share in your Azure account. To do this, follow these steps:
- Log in to your Azure portal.
- Click on the “Create a resource” button in the top left corner.
- Search for “Storage account” in the search bar and click on the option that appears.
- Fill in the necessary details like subscription, resource group, storage account name, and select the region.
- Under the “Data protection” section, select “Standard” under the “Performance” option.
- Under the “Advanced” section, select “File” under the “Account kind” option.
- Click on the “Review + create” button and then click on the “Create” button.
Step 2: Map the Azure File Share to a Network Drive
After creating the Azure File Share, the next step is to map it to a network drive. To do this, follow these steps:
- Open File Explorer on your local device.
- Click on “This PC” on the left-hand side of the screen.
- Click on the “Map network drive” button in the top ribbon.
- In the “Drive” field, select the drive letter you want to use for the network drive.
- In the “Folder” field, enter the URL of the Azure File Share in the following format: “\{storage-account-name}.file.core.windows.net{file-share-name}”
- Check the box for “Reconnect at sign-in” and click on “Finish”.
Step 3: Install the Azure Storage Explorer
To avoid disconnection issues with the Azure File Share, it is recommended to install the Azure Storage Explorer on your local device. The Azure Storage Explorer is a desktop application that allows users to easily manage their Azure storage resources. To install the Azure Storage Explorer, follow these steps:
- Go to the Azure Storage Explorer website and download the latest version of the software.
- Once the download is complete, run the installer and follow the on-screen instructions to install the Azure Storage Explorer on your device.
- After installation, open the Azure Storage Explorer and sign in to your Azure account.
Step 4: Configure the Azure File Share
To configure the Azure File Share to avoid disconnection issues, follow these steps:
- In the Azure Storage Explorer, navigate to the Azure File Share you want to configure.
- Click on the “Access key” button in the top ribbon and copy the connection string.
- Open Notepad or any text editor and paste the connection string.
- Replace the “AccountKey” value in the connection string with the account key of your Azure storage account.
- Save the edited connection string file with the “.bat” extension.
- Open the “Task Scheduler” on your local device.
- Click on “Create Task” in the right-hand side panel.
- Give a name to the task and select the option “Run with highest privileges”.
- Click on the “Triggers” tab and select “At log on” in the “Begin the task” field.
- Click on the “Actions” tab and click on “New”.
- Select “Start a program” in the “Action” field and browse for the edited connection string