Skip to content

[BUG]: Error running "migrate-locations" -- Please enter subscription id to scan storage accounts in. [Azure Databricks] #1619

@gregorymiguel

Description

@gregorymiguel

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Error when running migrate-locations task.

The task expects an azure subscription-id internally, however, the script doesn't allow to set it as a named paremeter.

Command used:
databricks labs ucx migrate-locations --profile [XXXX] --debug
databricks profile used:
[XXXX]
host = https://[REDACTED].10.azuredatabricks.net/
azure_workspace_resource_id = /subscriptions/XXXXXX/resourceGroups/XXXXXXX/providers/Microsoft.Databricks/workspaces/XXXXXX
auth_type = azure-cli

image

Trying to set --subscription-id doesn't work:

databricks labs ucx migrate-locations --profile XXXX --subscription-id XXXXX

image

Expected Behavior

No response

Steps To Reproduce

  1. Environment: Azure Databricks
  2. Execute the migrate-locations pre-reqs tasks
  3. Databricks config profile: auth-type = azure-cli
  4. Execute migrate-locations task

Cloud

Azure

Operating System

macOS

Version

latest via Databricks CLI

Relevant log output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions