question

DougS-6858 avatar image
0 Votes"
DougS-6858 asked ·

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

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

azure-active-directoryazure-ad-connect
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered ·

@DougS-6858, 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.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you so much. I'm using a UDEMY video series and we are moving in to hands on labs. The video guys skipped these two commands when trying to install and access his Azure accounts from PowerShell, likely because these commands were done long before on his computer and didn't need to be done again when recording.

Anyway, I'm moving forward. Thanks a bunch.

Doug

0 Votes 0 · ·