If you use Azure CLI then you need to keep upgrading it as and when new versions arrive.
Check the latest version by running
az version then match it with the documentation. If it is older then you should update it by running
To make it an automatic one you can also configure your Azure CLI by
az config set auto-upgrade.enable=yes