Configuring Azure Virtual Network for Microsoft Azure Synapse SQL

Configuring Azure Virtual Network for Microsoft Azure Synapse SQL

Configuring the Microsoft SQL Server database

Configuring the Microsoft SQL Server database

You must configure the Microsoft SQL Server database that hosts Microsoft Azure Synapse SQL to read from and write data to Azure storage.
Ensure that the Azure storage account is a StorageV2 (general purpose v2) account.
Perform the following steps to configure the Microsoft SQL Server database:
  1. Assign managed identity to the Microsoft SQL Server database to allow access to Azure storage.
    Open the Windows PowerShell command prompt window and run the following command:
    Connect-AzAccount Select-AzSubscription -SubscriptionId <your-subscriptionId> Set-AzSqlServer -ResourceGroupName <your-database-server-resourceGroup> -ServerName <your-database-servername> -AssignIdentity
  2. Assign the Storage Blob Data Contributor role to the Microsoft SQL Server database to read from and write data to Azure storage.
    1. Log in to the Azure portal and go to the Azure storage account.
    2. Click
      Add
      .
    3. In the
      Role
      field, select
      Storage Blob Data Contributor
      .
    4. In the
      Assign access to
      field, select
      User, group, or service principal
      .
    5. In the
      Select
      field, select the Microsoft SQL Server database to which you want to assign the role.
    6. Click
      Save
      .
  3. Configure the Azure Storage firewalls and virtual networks for the Microsoft SQL Server database.
    1. In the
      Security + Networking
      section of the Azure storage account, click
      Networking
      .
    2. On the
      Firewalls and virtual networks
      tab, add the virtual network that you created under
      Virtual Networks
      .
    3. Under
      Resource instances
      , add the Microsoft SQL Server database that hosts Microsoft Azure Synapse SQL to which you want to allow access to the Azure storage.

0 COMMENTS

We’d like to hear from you!