About Me

My photo
I am MCSE in Data Management and Analytics with specialization in MS SQL Server and MCP in Azure. I have over 13+ years of experience in IT industry with expertise in data management, Azure Cloud, Data-Canter Migration, Infrastructure Architecture planning and Virtualization and automation. Contact me if you are looking for any sort of guidance in getting your Infrastructure provisioning automated through Terraform. I sometime write for a place to store my own experiences for future search and read by own blog but can hopefully help others along the way. Thanks.

Troubleshooting the Connect-AzAccount Error in Azure PowerShell

How to fix below 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.


Very First time

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Open PowerShell as an administrator.

Run the following command to install the Azure PowerShell module:
--->Install-Module AzureRM -Scope CurrentUser -AllowClobber
After the installation is complete, import the Azure PowerShell module by running the following command:
---->Import-Module AzureRM    
Once the module is imported, you should be able to use the Connect-AzAccount cmdlet to connect to your Azure account.
Note: If you're using PowerShell 7, use the following command to install the Azure PowerShell module:                               
--->Install-Module Az -Scope CurrentUser -AllowClobber
And import the module with the following command:
--->Import-Module Az


No comments: