cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

CREATE EXTERNAL LOCATION read only through SQL

barendlinders
Visitor

Hello,

I have set up a storage credential with READ ONLY access to my Azure storage account (landing-zone). I want to create an EXTERNAL LOCATION using SQL, set the EXTERNAL LOCATION to read only and use the read-only storage credential I made.

I cannot find any documentation on the SQL version where I can specify the Advanced Options that are available through the UI. Is this a simple case of mismatch between UI (api) and SQL?

If I simply run the 

CREATE EXTERNAL LOCATION IF NOT EXISTS with said storage credential I get the following error:
 
```
PERMISSION_DENIED: User cannot create or write to external locations or tables using a read-only storage credential read_storage
```
 
barendlinders_0-1736427738959.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Walter_C
Databricks Employee
Databricks Employee

It seems that this option is only available via UI or API https://docs.databricks.com/api/workspace/externallocations/create 

View solution in original post

2 REPLIES 2

Walter_C
Databricks Employee
Databricks Employee

It seems that this option is only available via UI or API https://docs.databricks.com/api/workspace/externallocations/create 

barendlinders
Visitor

Thanks for clarifying @Walter_C !

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group