databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Databricks CLI token-management create-obo-token not working anymore for service principals from CLI v0.213.0 #1647

Closed dpacheco-enedis closed 2 months ago

dpacheco-enedis commented 2 months ago

Describe the issue

Updated the Databricks CLI version from v0.212.4 to v0.213.0 and the following databricks command is failing with error Error: expected to have application id of the service principal

No other changes has beed made besides changing the databricks cli version.

Downgrading the CLI to v0.212.4 makes the command to succes again as expected

Steps to reproduce the behavior

databricks token-management create-obo-token --lifetime-seconds -p

Expected Behavior

The Json response with the requested token id and value image

Actual Behavior

Error: expected to have application id of the service principal image

OS and CLI version

Operating system:Windows.

Is this a regression?

Yes. Every new version from v0.213.0 and upwards has this problem. It worked Ok until v0.212.4.

shreyas-goenka commented 2 months ago

@dpacheco-enedis We are at CLI version v0.225 right now. Could you give it a try and let us know if the problem still persists?

dpacheco-enedis commented 2 months ago

Yes I have tried all versions from v0.213.0 to v0.225 and always the same error

dpacheco-enedis commented 2 months ago

Solved:

databricks token-management create-obo-token --lifetime-seconds 86400

The parameter lifetime-seconds must be named explicitely in order to work as it was before.