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).
az --version
version
az check-version
az ver
Correct answers
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.