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:
Post a Comment