Error when setting up OAuth profile for Databricks CLI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 03:47 AM
Hello.
I'm currently trying to migrate a project from dbx to Databricks Asset Bundles. I have successfully created the required profile using U2M authentication with the command
```databricks auth login --host <host-name>```
I'm able to see the new profile adb-6779217299298465 when running
```databricks auth profiles```
but in column "Valid" I get no.
Moreover, when running databricks auth env I get the following error message:
Error: default auth: metadata-service: token request: Get "http://127.0.0.1:63292/2448a16f-6491-48cb-b618-c183df2c89dc": dial tcp 127.0.0.1:63292: connect: connection refused. Config: host=https://adb-6779217299298465.5.azuredatabricks.net, cluster_id=0323-081844-qaifark7, metadata_service_url=***, profile=DEFAULT. Env: DATABRICKS_HOST, DATABRICKS_CLUSTER_ID, DATABRICKS_METADATA_SERVICE_URL
Can someone tell me what I'm doing wrong.
I'm running Databricks CLI version 0.212.4
Kind regards