Skip to content

[BUG]: principal_prefix_access for azure cloud results in error #1249

@apd-ahusain

Description

@apd-ahusain

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

  1. 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
  2. az login
  3. az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  4. az account show to validate login
  5. az account get-access-token to validate that token exists
  6. databricks 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions