# az' is not recognized as an internal or external command

## TL;DR
The Azure CLI installed but its folder is not on your PATH, or the install did not finish. Reinstall with the PATH option checked, or add the install folder to PATH yourself, then open a fresh terminal.

## The error
```
'az' is not recognized as an internal or external command,
operable program or batch file.
```

## Fix it
1. Check whether it is actually installed: look for Azure CLI in Add or remove programs. Expected: you confirm it is there (or not).
2. If it is installed, find the install folder and add it to PATH. Open a NEW terminal after changing PATH. Expected: `az version` prints version info.
3. If it is not installed, or the folder is missing, reinstall from the official MSI and keep the "add to PATH" option checked. Expected: the installer completes and a fresh terminal finds `az`.
4. In PowerShell, check with `Get-Command az`. Expected: it resolves to the CLI executable.
5. Run `az version` to confirm. Expected: JSON output with the CLI version.

## When to use this
- An agent sees "'az' is not recognized" on Windows in cmd or PowerShell.
- Right after installing the Azure CLI.

## When NOT to use this
- `az login` failures. The CLI works there; auth is the problem.
- "The term 'az' is not recognized" inside Azure Cloud Shell. Cloud Shell always has it; that is a different issue.

## Compatibility
- Azure CLI on Windows (MSI install), cmd and PowerShell.

### Variant phrasings
- "az is not recognized as an internal or external command"
- "The term 'az' is not recognized as the name of a cmdlet"

## Root cause
The MSI installer optionally adds the CLI folder to PATH. Unchecking that option, or a terminal opened before the install finished, leaves `az` unresolvable. Opening a fresh terminal after fixing PATH is the step everyone skips.

## Edge cases
- 32-bit vs 64-bit installs land in different Program Files folders. Point PATH at the one that actually exists.
- Corporate images sometimes block the MSI's PATH change. Set it manually in System environment variables.
