azure databricks SQL warehouse ADLS setting not working

Prasad, Rakesh 221 Reputation points
2022-08-18T04:54:15.577+00:00

Not able to run query on external (ADLS) delta table.

my SQL WH setting is as follows

spark.hadoop.fs.azure.account.auth.type.platbillingdatabricks.dfs.core.windows.net OAuth  
spark.hadoop.fs.azure.account.oauth.provider.type.platbillingdatabricks.dfs.core.windows.net org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider  
spark.hadoop.fs.azure.account.oauth2.client.id.platbillingdatabricks.dfs.core.windows.net {{secrets/azure-billing-platform-team/reader-client-id}}  
spark.hadoop.fs.azure.account.oauth2.client.secret.platbillingdatabricks.dfs.core.windows.net {{secrets/azure-billing-platform-team/reader-secret}}  
spark.hadoop.fs.azure.account.oauth2.client.endpoint.platbillingdatabricks.dfs.core.windows.net https://login.microsoftonline.com/88ed286b-88d8-4faf-918f-883d693321ae/oauth2/token  

my secret scope is backed by Azure KV

232139-image.png

KV has mentioned keys

232212-image.png

but when i am trying to boot my SQL WH, i am getting following error

232243-image.png

If i replace following 2 tags with real value, then server comes up fine. also same config backed by ADB local keyvault works fine too.

{{secrets/azure-billing-platform-team/reader-client-id}}  
{{secrets/azure-billing-platform-team/reader-secret}}  
Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad, Rakesh 221 Reputation points
    2022-08-23T05:22:40.727+00:00

    with help of MSFT support, i was able to find the issue and resolve it too.

    issue was, owner of SQL DW (the name that comes in front of "created by") had no access to my secret scope.

    so i ran following

    databricks secrets put-acl --scope my_sec_scope --principal ******@mycompany.com --permission READ --profile 001  
    

    now it worked.

    1 person found this answer helpful.

Your answer

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