cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open stevenayers-bge opened this issue 1 year ago • 2 comments

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

stevenayers-bge avatar Jun 20 '24 06:06 stevenayers-bge

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

andrewnester avatar Jun 20 '24 09:06 andrewnester

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!

jpcpereira avatar Aug 23 '24 11:08 jpcpereira

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

github-actions[bot] avatar Feb 04 '25 00:02 github-actions[bot]

I am also getting this and it is a tad inconvenient. Also happens with any other resources deployed using DAB's. I appreciate the need for keeping it unique but needing to have a service principal name/Id in the name makes it far too long. Am I doing something wrong?

J-Harmson avatar Feb 28 '25 16:02 J-Harmson

This was addressed in #1770 and released in v0.228.1.

The service principal's display name is used for the prefix if one is configured.

pietern avatar Mar 03 '25 11:03 pietern

can this be reopened to allow suppression of the error message? we have other methods of ensuring uniqueness across CI deployments and would like to be able to customize things more

kyletl avatar Oct 14 '25 17:10 kyletl