I have a function that uses dbutils and get following error when I try to call the function with import:
NameError: name 'DBUtils' is not defined
I tried with following code:
def access_storage_acccount(
service_credential_key = "client-secret",
secretscopename = "key",
storage_account = "dlsdevhr",
key_dir_id = "tenant-id",
key_app_id = "client-id"):
directory_id = dbutils.secrets.get(scope = f"{secretscopename}", key = key_dir_id)
I have tried following solution in my function but it does not work link
Any idea how to solve this?