Region-specific drives for a VM located in Azure AU region

Berchmans Marcelline 15 Reputation points
2025-02-06T23:25:40.6466667+00:00

Hi Team,

We have a requirement from clients to have the data in the respective data drives, for example - client from US wants to have their data in a drive which is physically located in the azure data centre in US region. We are looking at partitioning SQL data based on that region the client is based on. 

We are aware how to partition it but we need to have these region-specific separate drives added to the SQL server VM which is located in Azure AU region. 

For example 

SQL Sever 2019 VM SQL-AU-DEV located in Azure AU region data centre
C Drive : OS Windows 2019
D Drive AU : Azure Storage from AU Region
E Drive US :  Azure Storage from US Region
F Drive  EU :  Azure Storage from EU Region

Wonder this can be achieved in Azure by using a BLOB drive or file share or any method.

Thanks

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,366 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,094 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,490 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Keshavulu Dasari 3,380 Reputation points Microsoft Vendor
    2025-02-20T16:57:47.49+00:00

    Hi Berchmans Marcelline,

    SQL Server does not support using network drives for database files. The Z drive is a network drive, which is why the directory lookup failed. Ensure that the SQL Server service account has the necessary permissions to access the Azure File Share. Verify that the account can read and write to the specified path.

    Ensure that the connection to the Azure File Share is persistent and reconnects automatically after reboots. Use the net use command with the /persistent:yes option to mount the drive.

    Recommended Approach

    Given the limitations of using network drives for SQL Server database files, here are some alternative approaches:

    Local Storage for Database Files:

    • Store all primary database files (data, log, tempdb) on local drives within the Azure AU region to ensure optimal performance.

    Asynchronous Replication:

    • Use SQL Server Always On Availability Groups to set up asynchronous replication to other regions. This allows you to replicate data to secondary replicas in different regions without impacting the performance of your primary database.

    Partitioning Data:

    Example Configuration

    • Primary Replica: SQL Server VM in Azure AU region (synchronous-commit mode for local replicas, asynchronous-commit mode for remote replicas).
    • Secondary Replicas: SQL Server VMs in Azure US and EU regions (asynchronous-commit mode).

    Additional Information by Erland Sommarskog
    SQL Server Always On Availability Groups

    User's image

    Mounting Azure File Share: If you still need to use Azure File Shares for other purposes, ensure that they are mounted correctly using the net use command or through the Azure portal. Continuously test and monitor the performance of your setup to ensure it meets your requirements.


    Your contribution is highly appreciated. 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.           

    User's image

    If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.