Hi @Lokesh Rajpoot ,
Thankyou for using Microsoft Q&A platform and thanks for posting your question here.
Could you please make sure you have Storage Blob Data Contributor role
and Storage Data Reader role
assigned to the Synapse managed identity in the storage account.
In case the error still persists even after assigning the above roles, then kindly go ahead with the following steps :
Create a database master key if one does not already exist, using your own password. This key is used to encrypt the credential secret in next step.
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'S0me!nfo';
Create a database scoped credential with Azure storage account key as the secret.
CREATE DATABASE SCOPED CREDENTIAL AzureStorageCredential
WITH
IDENTITY = '<my_account>'
, SECRET = '<azure_storage_account_key>';
Create an external data source with CREDENTIAL option.
CREATE EXTERNAL DATA SOURCE MyAzureStorage
WITH
( LOCATION = 'wasbs://daily@logs.blob.core.windows.net/'
, CREDENTIAL = AzureStorageCredential
, TYPE = HADOOP
);
For more details, kindly check : When Attempting to Access External Table via Polybase
Hope it helps. Please let us know how it goes.