Best practice for Azure Key vault secrets in spark config

datakilljoy
New Contributor II

Hello

I created a compute in which I refer the secret inside the spark config like this: 

spark.hadoop.fs.azure.account.key.xxxxxxxxxx.dfs.core.windows.net {{secrets/kv-xxxxxxx-xxxx/secret-name}}

 

 

This, however, gives me the following warning.

 

datakilljoy_0-1704724007789.png

 

 
I've looked at the documentation but what I'm writing in the spark config is already the reference to the secret in the secret scope created in databricks (that points to the kv in azure) so I think i'm not understanding correctly
 
Can someone who's gone through the same situation give me some light here pls? Thank you

datakilljoy
New Contributor II

Extra info: I have used the format following the instructions on this page for spark configuration

https://learn.microsoft.com/en-us/azure/databricks/connect/storage/azure-storage#:~:text=Use%20the%2...