Close every PowerShell window and open a fresh one, then run the az version command again.

Check whether the Azure CLI install folder exists under Program Files and contains the az executable files.

If the folder exists, check the machine path environment variable includes that install folder, add it if missing, and open a new terminal.

If the folder is missing, reinstall Azure CLI with the current Windows installer, accepting the default location, then test in a new terminal.

If you use Windows Terminal or an editor-integrated terminal, restart that host app too, since it can cache the environment of its first launch.