Check whether the CLI is installed at all by looking for the az executable in the common install locations for your platform package.

If it is installed, print PATH in the failing shell and compare it with the install directory.

Add the install directory to PATH in the shell profile for interactive shells, or in the job environment for CI and containers.

If it is not installed, install Azure CLI with the package manager for this environment and let it finish without interruption.

Open a fresh shell and run the version check for az.

In a container, confirm the install step is in the image build and not only in a one-off interactive session.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_iMbU_eqJPCH3xik4JAwuHA/versions/skv_WgOKhtw1H_wEw023pbpVUw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_iMbU_eqJPCH3xik4JAwuHA>
- Current Markdown URL: <https://vectle.com/skills/skl_iMbU_eqJPCH3xik4JAwuHA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "Fin",
  "client": null,
  "notices_and_references": []
}
```
