|
| 1 | +--- |
| 2 | +title: Configure Synapse link for SQL Server 2022 with network security (Preview) |
| 3 | +description: Learn how to configure Synapse link for SQL Server 2022 with network security (Preview). |
| 4 | +author: yexu |
| 5 | +ms.service: synapse-analytics |
| 6 | +ms.topic: how-to |
| 7 | +ms.subservice: synapse-link |
| 8 | +ms.date: 09/28/2022 |
| 9 | +ms.author: yexu |
| 10 | +ms.reviewer: sngun, wiassaf |
| 11 | +--- |
| 12 | + |
| 13 | +# Configure Synapse link for Azure SQL Database with network security (Preview) |
| 14 | + |
| 15 | +This article provides a guide on configuring Azure Synapse Link for SQL Server 2022 with network security. Before reading this documentation, You should have known how to create and start Synapse link for SQL Server 2022 from [Get started with Azure Synapse Link for SQL Server 2022](connect-synapse-link-sql-server-2022.md). |
| 16 | + |
| 17 | +> [!IMPORTANT] |
| 18 | +> Azure Synapse Link for SQL is currently in PREVIEW. |
| 19 | +> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. |
| 20 | +
|
| 21 | +## Managed workspace Virtual Network without data exfiltration |
| 22 | + |
| 23 | +1. Create Synapse workspace with managed virtual network enabled. You will enable **managed virtual network** and select **No** to allow outbound traffic from the workspace to any target. You can learn more about managed virtual network from [this](../security/synapse-workspace-managed-vnet.md). |
| 24 | + |
| 25 | + :::image type="content" source="../media/connect-synapse-link-sql-database/create-synapse-workspace-allow-outbound-traffic.png" alt-text="create synapse workspace allow outboundtraffic"::: |
| 26 | + |
| 27 | +1. Navigate to your Synapse workspace on Azure portal, go to **Networking** tab to enable **Allow Azure Synapse Link for Azure SQL Database to bypass firewall rules**. |
| 28 | + |
| 29 | + :::image type="content" source="../media/connect-synapse-link-sql-database/enable-bypass-firewall-rules.png" alt-text="enable bypass firewall rules"::: |
| 30 | + |
| 31 | +1. Launch Synapse Studio, navigate to **Manage**, click **Integration runtimes** and select **AutoResolvingIntegrationRuntime**. On the pop-up slide, you can click **Virtual network** tab, and enable **Interactive authoring**. |
| 32 | + |
| 33 | + :::image type="content" source="../media/connect-synapse-link-sql-database/enable-interactive-authoring.png" alt-text="enable interactive authoring"::: |
| 34 | + |
| 35 | +1. Now you can create a link connection from **Integrate** tab to replicate data from SQL Server 2022 to Synapse SQL pool. |
| 36 | + |
| 37 | + :::image type="content" source="../media/connect-synapse-link-sql-database/create-link.png" alt-text="create link"::: |
| 38 | + |
| 39 | + :::image type="content" source="../media/connect-synapse-link-sql-database/create-link-sqlserver.png" alt-text="create link sql server"::: |
| 40 | + |
| 41 | +1. Start your link connection |
| 42 | + |
| 43 | + :::image type="content" source="../media/connect-synapse-link-sql-database/start-link.png" alt-text="start link"::: |
| 44 | + |
| 45 | + |
| 46 | +## Managed workspace Virtual Network with data exfiltration |
| 47 | + |
| 48 | +1. Create Synapse workspace with managed virtual network enabled. You will enable **managed virtual network** and select **Yes** to limit outbound traffic from the Managed workspace Virtual Network to targets through Managed private endpoints. You can learn more about managed virtual network from [this](../security/synapse-workspace-managed-vnet.md) |
| 49 | + |
| 50 | + :::image type="content" source="../media/connect-synapse-link-sql-database/create-synapse-workspace-disallow-outbound-traffic.png" alt-text="create synapse workspace disallow outbound traffic"::: |
| 51 | + |
| 52 | +1. Navigate to your Synapse workspace on Azure portal, go to **Networking** tab to enable **Allow Azure Synapse Link for Azure SQL Database to bypass firewall rules**. |
| 53 | + |
| 54 | + :::image type="content" source="../media/connect-synapse-link-sql-database/enable-bypass-firewall-rules.png" alt-text="enable bypass firewall rules"::: |
| 55 | + |
| 56 | +1. Launch Synapse Studio, navigate to **Manage**, click **Integration runtimes** and select **AutoResolvingIntegrationRuntime**. On the pop-up slide, you can click **Virtual network** tab, and enable **Interactive authoring**. |
| 57 | + |
| 58 | + :::image type="content" source="../media/connect-synapse-link-sql-database/enable-interactive-authoring.png" alt-text="enable interactive authoring"::: |
| 59 | + |
| 60 | +1. Create a linked service connecting to SQL Server 2022. You can get more details from [this](connect-synapse-link-sql-server-2022.md#create-linked-service-for-your-source-sql-server-2022). |
| 61 | + |
| 62 | +1. Add role assignment to make sure that you have granted your Synapse workspace managed identity permissions to ADLS Gen2 storage account used as the landing zone. You can get more details from [this](connect-synapse-link-sql-server-2022.md#create-linked-service-to-connect-to-your-landing-zone-on-azure-data-lake-storage-gen2). |
| 63 | + |
| 64 | +1. Create a linked service connecting to ADLS Gen2 storage(landing zone) with managed private endpoint enabled. |
| 65 | + |
| 66 | + * Create a managed private endpoint in linked service for ADLS Gen2 storage. |
| 67 | + |
| 68 | + :::image type="content" source="../media/connect-synapse-link-sql-database/new-sql-server-linked-service-pe1.png" alt-text="new sql db linked service pe1"::: |
| 69 | + |
| 70 | + * Complete the managed private endpoint creation in the linked service for ADLS Gen2 storage. |
| 71 | + |
| 72 | + :::image type="content" source="../media/connect-synapse-link-sql-database/new-sql-server-linked-service-pe2.png" alt-text="new sql db linked service pe2"::: |
| 73 | + |
| 74 | + * Go to Azure portal of your ADLS Gen2 storage as landing zone, approve the Private endpoint connections. |
| 75 | + |
| 76 | + :::image type="content" source="../media/connect-synapse-link-sql-database/new-sql-server-linked-service-pe3.png" alt-text="new sql db linked service pe3"::: |
| 77 | + |
| 78 | + * Complete the creation of linked service for ADLS Gen2 storage. |
| 79 | + |
| 80 | + :::image type="content" source="../media/connect-synapse-link-sql-database/new-sql-server-linked-service-pe4.png" alt-text="new sql db linked service pe4"::: |
| 81 | + |
| 82 | +1. Now you can create a link connection from **Integrate** tab to replicate data from SQL Server 2022 to Synapse SQL pool. |
| 83 | + |
| 84 | + :::image type="content" source="../media/connect-synapse-link-sql-database/create-link.png" alt-text="create link"::: |
| 85 | + |
| 86 | + :::image type="content" source="../media/connect-synapse-link-sql-database/create-link-sqlserver.png" alt-text="create link sqldb"::: |
| 87 | + |
| 88 | +1. Start your link connection |
| 89 | + |
| 90 | + :::image type="content" source="../media/connect-synapse-link-sql-database/start-link.png" alt-text="start link"::: |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +## Next steps |
| 95 | + |
| 96 | +If you are using a different type of database, see how to: |
| 97 | + |
| 98 | +* [Configure Azure Synapse Link for Azure Cosmos DB](../../cosmos-db/configure-synapse-link.md?context=/azure/synapse-analytics/context/context) |
| 99 | +* [Configure Azure Synapse Link for Dataverse](/powerapps/maker/data-platform/azure-synapse-link-synapse?context=/azure/synapse-analytics/context/context) |
| 100 | +* [Get started with Azure Synapse Link for SQL Server 2022](connect-synapse-link-sql-server-2022.md) |
0 commit comments