-
Notifications
You must be signed in to change notification settings - Fork 101
[BUG]: principal_prefix_access for azure cloud results in error #1249
Copy link
Copy link
Closed
Labels
feat/cliCLI commandsCLI commands
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Azure CLI is installed and credentials have been configured via az login. However, running databricks labs ucx principal-prefix-access --subscription-id 123456789 returns "ERROR [d.labs.ucx] In order to obtain AAD token, Please run azure cli to authenticate". There is no way to manually override the Databricks WorkspaceClient auth type to azure-cli.
Expected Behavior
The command databricks labs ucx principal-prefix-access --subscription-id 123456789 should recognize that the Azure CLI authentication has already been setup and the AAD token already exists, and save storage and spn info under {install_folder}/.ucx/azure_storage_account_info.csv
Steps To Reproduce
- Install prerequisites: Databricks CLI v0.215.0, UCX v0.20.0, Azure CLI v2.59.0; complete all prerequisite steps as outlined under
README/migration-process az loginaz account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"az account showto validate loginaz account get-access-tokento validate that token existsdatabricks labs ucx create-uber-principal [--subscription-id X]
Cloud
Azure
Operating System
macOS
Version
latest via Databricks CLI
Relevant log output
14:50:33 ERROR [d.labs.ucx] In order to obtain AAD token, Please run azure cli to authenticate.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat/cliCLI commandsCLI commands