About Me

My photo
I am an MCSE in Data Management and Analytics, specializing in MS SQL Server, and an MCP in Azure. With over 19+ years of experience in the IT industry, I bring expertise in data management, Azure Cloud, Data Center Migration, Infrastructure Architecture planning, as well as Virtualization and automation. I have a deep passion for driving innovation through infrastructure automation, particularly using Terraform for efficient provisioning. If you're looking for guidance on automating your infrastructure or have questions about Azure, SQL Server, or cloud migration, feel free to reach out. I often write to capture my own experiences and insights for future reference, but I hope that sharing these experiences through my blog will help others on their journey as well. Thank you for reading!

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: