<?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: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/35363#M25887</link>
    <description>&lt;P&gt;If you have firewall configured for the ADLS Gen2 Storage account which blocks public access, You will need to configure network rules to allow access for subnets containing the&amp;nbsp;compute resources for DBX SQL Serverless in your workspace region.&lt;/P&gt;&lt;P&gt;Detailed explanation can found &lt;A title="Configure Azure storage firewalls to allow access from serverless SQL warehouses" href="https://learn.microsoft.com/en-us/azure/databricks/sql/admin/serverless-firewall" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. And the&amp;nbsp;Databricks SQL Serverless subnets for your region can be found &lt;A title="Databricks SQL Serverless subnets" href="https://learn.microsoft.com/en-us/azure/databricks/resources/supported-regions#serverless-sql-subnets" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you need an automated network rule creation utility, you can use this PowerShell script.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;param(
    [Parameter(Mandatory)]
    [string]
    $SubnetFile,
    [Parameter(Mandatory)]
    [string]
    $AccountName,
    [Parameter(Mandatory)]
    [string]
    $ResourceGroup
)

[string[]]$subnet_file = Join-Path -Path $PWD.Path -ChildPath $SubnetFile
$subnetFromFile = Get-Content -Path $subnet_file
foreach($subnet in $subnetFromFile) {
   az storage account network-rule add -g $ResourceGroup --account-name $AccountName  --subnet $subnet
}&lt;/LI-CODE&gt;&lt;P&gt;Save this as configure-subnets.ps1 and in a separate file copy the list of the subnets. You could then run it like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;./configure-subnets.ps1 -AccountName "&amp;lt;storage-account-name&amp;gt;" -ResourceGroup "&amp;lt;resource-group-name&amp;gt;" -SubnetFile subnet_list.txt&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 27 Jun 2023 16:08:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-27T16:08:35Z</dc:date>
    <item>
      <title>SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/2679#M10</link>
      <description>&lt;P&gt;I have DLT tables created under the &lt;B&gt;hive_metastore&lt;/B&gt; with external data stored in ADL gen2.&lt;/P&gt;&lt;P&gt;The ADL blob storage is mounted into &lt;B&gt;/mnt/&amp;lt;storage-account&amp;gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables are successfully created and accessible from my notebooks, as well the ADL storage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured the `&lt;B&gt;Data Access Configuration&lt;/B&gt;` in the &lt;B&gt;Admin Settings&lt;/B&gt; with my service principle and this service principle was added to my storage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a SQL Warehouse with the &lt;B&gt;SERVERLESS&lt;/B&gt; option and trying to query the tables from the SQL editor &lt;B&gt;`select * from hive_metastore.&amp;lt;schema&amp;gt;.&amp;lt;table_name&amp;gt;;`&lt;/B&gt; , but always getting this error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;shaded.databricks.org.apache.hadoop.fs.azure.AzureException: hadoop_azure_shaded.com.microsoft.azure.storage.StorageException: This request is not authorized to perform this operation.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created another SQL Warehouse, but this time with the &lt;B&gt;PRO&lt;/B&gt; option, without changing anything else, and the same above query seems to be working and returning needed data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Can you please advise what could be the issue, is serverless type not supporting external tables in the hive?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Please note that the unity catalog is enabled on my workspace but not used in my case here (and tried to switch it on/off in my Warehouse and got the same results as above for both types)&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;PS: If this is helpful, databricks is installed on Azure within a private network&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 09:57:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/2679#M10</guid>
      <dc:creator>Fz1</dc:creator>
      <dc:date>2023-06-23T09:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/35345#M25881</link>
      <description>&lt;P&gt;Sql Serverless works on external tables.&amp;nbsp; We only use external tables with serverless.&lt;BR /&gt;But no Unity (yet) and not installed on a private network.&lt;/P&gt;&lt;P&gt;I think the latter could be the issue as with the serverless option, the actual VMs are not installed within your own account/resource group, where classic warehouses are deployed within your resource group and so also belong to your private network.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 12:58:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/35345#M25881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-27T12:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/35363#M25887</link>
      <description>&lt;P&gt;If you have firewall configured for the ADLS Gen2 Storage account which blocks public access, You will need to configure network rules to allow access for subnets containing the&amp;nbsp;compute resources for DBX SQL Serverless in your workspace region.&lt;/P&gt;&lt;P&gt;Detailed explanation can found &lt;A title="Configure Azure storage firewalls to allow access from serverless SQL warehouses" href="https://learn.microsoft.com/en-us/azure/databricks/sql/admin/serverless-firewall" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. And the&amp;nbsp;Databricks SQL Serverless subnets for your region can be found &lt;A title="Databricks SQL Serverless subnets" href="https://learn.microsoft.com/en-us/azure/databricks/resources/supported-regions#serverless-sql-subnets" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you need an automated network rule creation utility, you can use this PowerShell script.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;param(
    [Parameter(Mandatory)]
    [string]
    $SubnetFile,
    [Parameter(Mandatory)]
    [string]
    $AccountName,
    [Parameter(Mandatory)]
    [string]
    $ResourceGroup
)

[string[]]$subnet_file = Join-Path -Path $PWD.Path -ChildPath $SubnetFile
$subnetFromFile = Get-Content -Path $subnet_file
foreach($subnet in $subnetFromFile) {
   az storage account network-rule add -g $ResourceGroup --account-name $AccountName  --subnet $subnet
}&lt;/LI-CODE&gt;&lt;P&gt;Save this as configure-subnets.ps1 and in a separate file copy the list of the subnets. You could then run it like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;./configure-subnets.ps1 -AccountName "&amp;lt;storage-account-name&amp;gt;" -ResourceGroup "&amp;lt;resource-group-name&amp;gt;" -SubnetFile subnet_list.txt&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 27 Jun 2023 16:08:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/35363#M25887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-27T16:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/36855#M26202</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;@Anonymous&amp;nbsp;@Anonymous&amp;nbsp;for your replies.&lt;/P&gt;&lt;P&gt;@Anonymous&amp;nbsp;I will check the details shared and will come back once I have an answer. Thank you again.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 15:25:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/36855#M26202</guid>
      <dc:creator>Fz1</dc:creator>
      <dc:date>2023-07-03T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/36919#M26219</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;the provided link concerning the&amp;nbsp;Databricks SQL Serverless subnets works.&lt;/P&gt;&lt;P&gt;Thank you again!!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 09:14:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/36919#M26219</guid>
      <dc:creator>Fz1</dc:creator>
      <dc:date>2023-07-04T09:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/55441#M30333</link>
      <description>&lt;P&gt;Can this be done using Terraform as well?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 14:51:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/55441#M30333</guid>
      <dc:creator>TjommeV-Vlaio</dc:creator>
      <dc:date>2023-12-18T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/92728#M38520</link>
      <description>&lt;P&gt;The storage account I want to connect to is not under my management.&lt;BR /&gt;Would a private endpoint result in the same?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 06:20:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/92728#M38520</guid>
      <dc:creator>SparkSeeker</dc:creator>
      <dc:date>2024-10-04T06:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse Serverless - Not able to access the external tables in the hive_metastore</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/140877#M51556</link>
      <description>&lt;P&gt;we can use terraform to create NCC (Network Connectivity Configuration). It will create a private endpoint on storage account and approve it manually because it is not auto approved.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 14:30:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-serverless-not-able-to-access-the-external-tables/m-p/140877#M51556</guid>
      <dc:creator>Charansai</dc:creator>
      <dc:date>2025-12-02T14:30:40Z</dc:date>
    </item>
  </channel>
</rss>

