The error is clear there is a missing secret in the specified Databricks secret scope.
Ensure that the secret scope kvmigrn
has been correctly created in Databricks. If you are using Azure Key Vault-backed secret scopes, you need to ensure that the Databricks workspace has permission to list and read secrets from the Key Vault.
Double-check that the secrets with the keys clientid
, clientsecret
, and tenantid
exist in the kvmigrn
scope. Typos and casing can sometimes be a cause of these types of issues.
Check this link to have an idea : https://community.databricks.com/t5/data-engineering/error-while-mounting-to-adls-gen2-error-secret-does-not-exist/td-p/28915
Also try this and tell us the result :
Navigate to your Azure Key Vault in the Azure Portal. Check to see if the secret with the key clientid
is indeed present in the vault.
Each secret in AKV can have multiple versions. Ensure you're referencing the right version, or you're set to retrieve the latest version.
Ensure that the secret hasn’t expired or hasn’t been disabled in the Key Vault.