<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using a VNet gateway with Notebooks in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813437#M2452</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343410" data-lia-user-login="eb38335" class="lia-mention lia-mention-user"&gt;eb38335&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Currently we can only invoke the gateway using Pipeline, we cannot invoke it using Fabric Notebooks.&lt;BR /&gt;&lt;BR /&gt;Docs to refer -&lt;BR /&gt;&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/7093/" target="_blank"&gt;VNET Data Gateway for Fabric and Power BI is now Generally Available | Microsoft Fabric Blog | Microsoft Fabric&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/data-integration/vnet/overview#limitations" target="_blank"&gt;What is a virtual network (VNet) data gateway | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 12:00:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-05T12:00:19Z</dc:date>
    <item>
      <title>Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813322#M2446</link>
      <description>&lt;P&gt;We just set up our VNet on prem server to connect to an AWS PostGreSQL database with the latest release of Fabric.&lt;/P&gt;&lt;P&gt;It works great with the Pipeline, but after some discussions with MS consultants, our use case for data delivery will be best met by using Notebooks and pspark queries.&lt;/P&gt;&lt;P&gt;However, I don't see a method to trigger the query through the gateway to get to the data, so we get errors that we can't connect to the source.&lt;/P&gt;&lt;P&gt;Does anyone know a work around?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to avoid using pipelines in the solution unless the pipeline is trigged somehow in the Notebook.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 11:11:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813322#M2446</guid>
      <dc:creator>eb38335</dc:creator>
      <dc:date>2024-04-05T11:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813339#M2447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343410" data-lia-user-login="eb38335" class="lia-mention lia-mention-user"&gt;eb38335&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;I would like to understand what is the present approach you are following?&amp;nbsp;&lt;BR /&gt;What approach you are interested in? Any informaion about your Source and Sink?&lt;BR /&gt;Can you please provide these details inorder to guide you better.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 11:18:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813339#M2447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-05T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813359#M2448</link>
      <description>&lt;P&gt;I'm unsure what you are asking beyond the information i provided.&lt;/P&gt;&lt;P&gt;We have enabled the On-prem gateways so that Pipelines and Gen2 dataflows can connect to an AWS PostGreSQL RDS database. That works fine with the Pipeline. But we want to use Notebooks instead to query and pull that data in. The Notebook query template given to us by Microsoft consultants Was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Import necessary libraries
from pyspark.sql import SparkSession
 
# Create a Spark session
spark = SparkSession.builder \
    .appName("Read from PostgreSQL") \
    .getOrCreate()
 
# Define the PostgreSQL connection properties
jdbc_url = "jdbc:postgresql://your-postgres-hostname:5432/your-database"
connection_properties = {
    "user": "your-username",
    "password": "your-password",
    "driver": "org.postgresql.Driver"
}
 
# Read data from a table in the PostgreSQL database
table_name = "your_table_name"
df = spark.read.jdbc(url=jdbc_url, table=table_name, properties=connection_properties)
 
# Show the data
df.show()
 
# Stop the Spark session
spark.stop()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;However, we should be triggering the gateway and not including the username and password in the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 11:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813359#M2448</guid>
      <dc:creator>eb38335</dc:creator>
      <dc:date>2024-04-05T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813397#M2449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343410" data-lia-user-login="eb38335" class="lia-mention lia-mention-user"&gt;eb38335&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I suggest you to use Azure Key Vault Secrets inorder to store your username and password.&lt;BR /&gt;&lt;A href="https://robkerr.ai/accessing-azure-key-vault-secrets-from-fabric-notebooks/" target="_blank" rel="noopener"&gt;Accessing Azure Key Vault Secrets from Fabric Notebooks (robkerr.ai)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Additional Docs to refer -&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/Microsoft-Fabric-connect-to-Azure-Key-Vault/m-p/3294135#U3294135" target="_blank"&gt;Solved: Microsoft Fabric connect to Azure Key Vault - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 11:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813397#M2449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-05T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813403#M2450</link>
      <description>&lt;P&gt;Actually, that's what the gateway does. It manages the connection from Fabric to the database for the query when the database path matches what's in the gateway path.&lt;/P&gt;&lt;P&gt;However, I'm unsure how we invoke the gateway from the Notebook like it is invoked from the Pipeline.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 11:43:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813403#M2450</guid>
      <dc:creator>eb38335</dc:creator>
      <dc:date>2024-04-05T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813437#M2452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343410" data-lia-user-login="eb38335" class="lia-mention lia-mention-user"&gt;eb38335&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Currently we can only invoke the gateway using Pipeline, we cannot invoke it using Fabric Notebooks.&lt;BR /&gt;&lt;BR /&gt;Docs to refer -&lt;BR /&gt;&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/7093/" target="_blank"&gt;VNET Data Gateway for Fabric and Power BI is now Generally Available | Microsoft Fabric Blog | Microsoft Fabric&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/data-integration/vnet/overview#limitations" target="_blank"&gt;What is a virtual network (VNet) data gateway | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 12:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813437#M2452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-05T12:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813503#M2453</link>
      <description>&lt;P&gt;Do you know if this feature is available for "On-Premises Data Gateways"?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 12:17:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813503#M2453</guid>
      <dc:creator>eb38335</dc:creator>
      <dc:date>2024-04-05T12:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813848#M2456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343410" data-lia-user-login="eb38335" class="lia-mention lia-mention-user"&gt;eb38335&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;On-Prem Gateway is supported only for Dataflow Gen 2 and Data Pipeline.&lt;BR /&gt;&lt;BR /&gt;Docs to refer -&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/how-to-access-on-premises-data" target="_blank"&gt;How to access on-premises data sources in Data Factory - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this is helpful&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 14:08:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/3813848#M2456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-05T14:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using a VNet gateway with Notebooks</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/4214041#M5664</link>
      <description>&lt;P&gt;Is there an existing proposal to make Fabric VNET Data Gateway also support Fabric Notebook? Can we vote on it?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:10:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Using-a-VNet-gateway-with-Notebooks/m-p/4214041#M5664</guid>
      <dc:creator>franklloydteh</dc:creator>
      <dc:date>2024-10-03T06:10:17Z</dc:date>
    </item>
  </channel>
</rss>

