Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

Question 396 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

Which command would you use in Azure CLI Interactive mode to check the version of the CLI you are using? (Select one answer).

  1. az --version

  2. version

  3. az check-version

  4. az ver

Correct answers

  1. version

Explanations

Correct:
version
In Azure CLI Interactive mode, the version command can be used directly to check the CLI version without requiring the az prefix.

Wrong:
az --version
This is correct in the standard CLI but is not needed in the Interactive mode, where commands are simplified.
az check-version
This is not a valid Azure CLI command.
az ver
This is not a recognized command in Azure CLI.