how to fix The term 'az' is not recognized as the name of a cmdlet, function, script file ?

Gnetchejo, Patrick Juvet 75 Reputation points
2023-06-14T11:46:21.3133333+00:00

Hi

when I run the command "az dt list -o table" in Powershell from visual studio code, I get the following error:

The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

please how to solve this?

that is the complete error on my computer in French

PS C:\Users\PATRICK JUVET> az dt list -o table
az : Le terme «az» n'est pas reconnu comme nom d'applet de commande, fonction, fichier 
de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin     
d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.
Au caractère Ligne:1 : 1
+ az dt list -o table
+ ~~
    + CategoryInfo          : ObjectNotFound: (az:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
652 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 questions
{count} votes

3 answers

Sort by: Most helpful
  1. vipullag-MSFT 24,711 Reputation points
    2023-06-15T04:52:17.63+00:00

    Hello Gnetchejo, Patrick Juvet

    Welcome to Microsoft Q&A Platform, thanks for posting your query and resolution for the benefit of community.
    Thank you Viorel for helping on this query.

    I am summarizing the resolution below please 'Accept as answer', so that it can help others in the community looking for help on similar topics..

    Installing the AZ modules from here(https://aka.ms/installazurecliwindows), resolved the issue "the term 'az' is not recognized as the name of a cmdlet"

    4 people found this answer helpful.

  2. Diako Khezri 0 Reputation points
    2023-10-31T07:37:16.58+00:00

    i had the same issue and by installing 32-bit of azure-cli, it works fine now. i had installed 64-bit before , now have both installed on my PC and it works fine. thanks @Gnetchejo, Patrick Juvet

    0 comments No comments