Check Azure DevOps CLI configuration and test connectivity
Verifies Azure DevOps CLI installation, configuration, and connectivity status.
/plugin marketplace add JoshuaRamirez/ms-ado-az-claude-code-plugin/plugin install ado-work-items@ms-ado-azCheck the current Azure DevOps CLI configuration and verify connectivity.
Verify Azure CLI is installed:
az --version
Look for the version number. If this fails, Azure CLI is not installed or not in PATH.
Verify the azure-devops extension is installed:
az extension list --query "[?name=='azure-devops'].{name:name, version:version}" -o table
If empty, the extension needs to be installed with az extension add --name azure-devops.
Display the current default organization and project:
az devops configure --list
Expected output shows:
https://dev.azure.com/yourorg)If either is blank, run /ado:setup to configure.
Run a simple query to verify authentication and access:
az boards query --wiql "SELECT [System.Id], [System.Title] FROM workitems WHERE [System.TeamProject] = @project" -o table --top 1
If this succeeds, the configuration is working.
If all checks pass:
Report: "Azure DevOps CLI is configured and working correctly."
Azure CLI not found:
'az' is not recognized or az: command not foundExtension not installed:
az extension add --name azure-devopsNo defaults configured:
/ado:setup or az devops configure --defaults organization=URL project=NAMEAuthentication error:
Please run 'az login' to setup accountaz login or az devops loginProject not found:
TF401019: The project does not existOrganization not found:
TF400813: Resource not availablehttps://dev.azure.com/orgname (not orgname.visualstudio.com)Present results as a status report:
Azure DevOps Status
===================
Azure CLI Version: 2.x.x
DevOps Extension: Installed (v1.x.x)
Configuration:
Organization: https://dev.azure.com/yourorg
Project: YourProject
Connectivity: OK (query returned successfully)
Status: Ready to use
Or if there are issues:
Azure DevOps Status
===================
Azure CLI Version: 2.x.x
DevOps Extension: Installed (v1.x.x)
Configuration:
Organization: https://dev.azure.com/yourorg
Project: (not configured)
Connectivity: FAILED - No default project
Status: Run /ado:setup to configure defaults