Why does az cli gives 'invalid' api-version error?

Lotze, Scott (DOH) 20 Reputation points
2023-11-20T17:01:53.3133333+00:00

When I run this command:
az databricks workspace show --resource-group /subscriptions/

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-11-28T07:37:24.95+00:00

    @Lotze, Scott (DOH) - I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .

    Ask: Why does az cli gives 'invalid' api-version error?

    Solution: The issue is resolved now. It turns out that for 'resource group' I was using the "managed resource group id" from Azure's properties page for the Databricks instance, when I should have been using the "resource group" from Azure.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-11-21T04:55:55.0833333+00:00

    @Lotze, Scott (DOH) - Thanks for the question and using MS Q&A platform.

    What do you mean by az cli gives 'invalid' api-version error? What you have tried to run and share the error message which you are experiencing?

    I'm able to run the command az databricks workspace show without any issue.

    This reference is part of the databricks extension for the Azure CLI (version 2.45.0 or higher). The extension will automatically install the first time you run an az databricks workspace command.

    Running for first time:

    User's image

    Running for second time:

    User's image

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.