I am loading the data from Azure Blob storage container to SQL DW table through polybase. In The creation of Database scope credential I had to explicitly specify the azure storage key which I feel not secure. How I can replace it with a Key-URI like below. Can we achieve this through key-vault implementation. I am trying to implement a stored procedure with poly-base script by passing keyURI as input parameter for Database scope credential creation.
- Actual Syntax:
CREATE DATABASE SCOPED CREDENTIAL AzureStorageCredential
WITH
IDENTITY = 'user',
SECRET = 'azure_storage_account_key'
;
--Can we specify as below?
CREATE DATABASE SCOPED CREDENTIAL AzureStorageCredential
WITH
IDENTITY = 'user',
SECRET = 'KEY-URI'
;