az validate
Check Azure CLI commands without running them. Azure CLI extensions reference
6 options Its page in the Azure CLI extensions reference
Options
--command, -cOne or more az commands to check, each as a single argument.--filePath of a Bash or PowerShell script file; every az command in it is checked.--offlineNever download published command metadata; use cached metadata only.--output-fileAlso write the result as JSON (UTF-8) to this file.--script, -sThe text of a Bash or PowerShell script; every az command in it is checked.--shellShell syntax of the input.