databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

[BUG] Bundle in dev mode uses service principal client ID in the Job Name #1509

Open stevenayers-bge opened 3 months ago

stevenayers-bge commented 3 months ago

Describe the issue

Deploying a bundle in dev mode uses the long client ID instead of the service principal display name, which is annoying because it's so long it hides what your jobs are called.

Screenshot 2024-06-20 at 07 49 41
andrewnester commented 3 months ago

This PR will address the issue by allowing configurable prefix https://github.com/databricks/cli/pull/1490

jpcpereira commented 1 month ago

This PR will address the issue by allowing configurable prefix #1490

Hi @andrewnester, just tried the newly released name_prefix preset in v2.227.0, but get the following error if I don't include the username in the name_prefix: Error: prefix should contain the current username or ${workspace.current_user.short_name} to ensure uniqueness when using 'mode: development' This means that the service principal ID must be always in the name_prefix leading still to long resource names in development mode. Would be great if this would be addressed in a future release!