Can I get some help for a new user of Azure and Powershell/Powershell commands/scripting

Doug S 26 Reputation points

After following the directions to install the latest Powershell app, v7.0.0, it does not want to connect to Azure. I'm new to all this and I followed the instructions to install, then tried to run "Connect-AzAccount" but a receive the following error:

Connect-AzAccount: The term 'Connect-AzAccount' 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.

During the powershell installation, I had it add itself to the PATH statement on the computer, I and have rebooted, so path should not be an issue.

Are there any thoughts or ideas out there. I'm trying to learn scripting and work with Azure, but without this, this may be a difficult task.


Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,745 questions
0 comments No comments
{count} vote

Accepted answer
  1. AmanpreetSingh-MSFT 55,541 Reputation points

    @Doug S , The AZ module is not installed by default. Have you installed the required modules? If not, you would need to install and import the module using below cmdlets:

    1. Install-Module -Name Az
    2. Import-Module -Name Az


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    3 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Piethein Strengholt 11 Reputation points Microsoft Employee

    The correct commandline should be (including missing s):

    Install-Module -Name Az -AllowClobber -Scope AllUsers

    2 people found this answer helpful.
    0 comments No comments

  2. Gunaranjan Sundararajan 1 Reputation point

    To add to @AmanpreetSingh-MSFT comment , try the below command.

    Install-Module -Name Az -AllowClobber -Scope CurrentUser

    If you are admin use the below

    Install-Module -Name Az -AllowClobber -Scope AllUser

    0 comments No comments