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

Doug S 26 Reputation points
2020-05-21T15:32:00.65+00:00

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.

Thanks,
Doug

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
0 comments No comments
{count} vote

Accepted answer
  1. AmanpreetSingh-MSFT 56,311 Reputation points
    2020-05-21T15:45:39.923+00:00

    @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
    2021-06-07T11:42:50.513+00:00

    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
    2021-03-12T10:25:35.167+00:00

    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