Hello @Gopinath Rajee ,
Thanks for the question and using MS Q&A platform.
As per the product documentation statement each cloud storage path
can be associated with only one external location
and if you attempt to create a second external location that references the same path
, the command fails. Which means you can have same container for multiple external locations, but the actual path should be different. For example:
Example 1:
-- Grant `finance` user permission to create external location on `my_azure_storage_cred` storage credential, and then create an external location on the specific path to which `my_azure_storage_cred` has access
> GRANT CREATE EXTERNAL LOCATION ON STORAGE CREDENTIAL `my_azure_storage_cred` TO `finance`
> CREATE EXTERNAL LOCATION `finance_loc` URL 'abfss://container@storageaccount.dfs.core.windows.net/depts/finance'
WITH (CREDENTIAL `my_azure_storage_cred`)
COMMENT 'finance';
Example 2:
-- Grant `marketing` user permission to create external location on `my_azure_storage_cred` storage credential, and then create an external location on the specific path to which `my_azure_storage_cred` has access
> GRANT CREATE EXTERNAL LOCATION ON STORAGE CREDENTIAL `my_azure_storage_cred` TO `marketing`
> CREATE EXTERNAL LOCATION `marketing_loc` URL 'abfss://container@storageaccount.dfs.core.windows.net/depts/marketing'
WITH (CREDENTIAL `my_azure_storage_cred`)
COMMENT 'marketing';
Hope this info helps.