Problem
You are using a using a No isolation shared cluster. When you run dbutils.secrets.get() it returns a 401 Unauthorized error message.
Cause
Admin protection for No isolation shared clusters is enabled in your account.
Solution
An account admin has to disable admin protection for No isolation shared clusters.
- Log in to the Account Console.
- Click Settings.
- Click the Feature enablement tab.
- Under Enable Admin Protection for “No Isolation Shared” Clusters, click the setting to disable this feature.
For more information, review the Enable admin protection for “No isolation shared” clusters on your account (AWS | Azure | GCP) documentation.