get_workspace_secret_value()
- pfore_cloud_utilities.get_workspace_secret_value(secret_key, workspace, scope)[source]
Returns a value of a Databricks workspace secret.
Databricks secrets support multiple back-ends and the scope can mirror an Azure KV for example.
Note that get_secret() returns the bytes representation of the secret, which has to be decoded using base64 package.
The method uses
DatabricksWorkspace
which requires the .databrickscfg file to exist under your home directory.- Parameters:
- Return type:
- Returns:
Secret value, based64 decoded
- Raises:
FileNotFoundError – If ~/.databrickscfg config file is not found