Hi,
I'd be happy to help you out with your question. Sorry for the inconvenience caused.
There are a couple of things that could be causing this problem. One possibility is that Azure CLI, which includes the 'az' command, is not installed on your system. You can download and install Azure CLI by following the instructions on the Azure CLI installation page (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli).
Another possibility is that the installation path for Azure CLI is not included in the PATH environment variable on your system. This can prevent PowerShell and Command Prompt from recognizing the 'az' command. To check if this is the case, open PowerShell or Command Prompt and type 'echo %PATH%'. Look for the installation path of Azure CLI in the output. If it's not there, you can add it manually by following these steps:
- Open the Start menu and search for "Environment Variables"
- Click "Edit the system environment variables"
- Click the "Environment Variables" button
- Under "System Variables", scroll down and find "Path"
- Click "Edit" and add the installation path of Azure CLI at the end of the list (e.g., C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin)
Once you've added the installation path, be sure to restart PowerShell or Command Prompt for the changes to take effect.
For more Information, please refer to following resource :-
PowerShell Azure commands not recognized in PowerShell 7 - https://learn.microsoft.com/answers/questions/641178/powershell-azure-commands-not-recognized-in-powers
If you have any other questions or need assistance with anything, please don't hesitate to let me know. I'm here to help.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.