Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure VM
  • Azure AD
  • Azure tutorial
    • Azure Cognitive Services
    • Azure Machine Learning
    • Azure DevOps
    • Azure PowerShell Commands

Login-AzureRmAccount is not recognized

September 26, 2023September 24, 2023 by Bijay Kumar

In this Azure tutorial, we will discuss how to fix the error, The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet, function, script. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Table of Contents

  • Login-AzureRmAccount is not recognized
  • Login-AzureRmAccount is not recognized [Solved]
  • Login-AzureRmAccount is not recognized – Video Tutorial

Login-AzureRmAccount is not recognized

Recently while trying to interact with the Azure storage account using the below cmdlet using Powershell, I got this error.

Login-AzureRmAccount
$Keys1 = "Coro2SvGOTD+nT3YdaKCrnauzWvHMF6BmuD9PfSKtNJWt6etOMjkwg6KNSQ39zOOQcMpDSjyBKHdALGIg6gZ4Q=="
$StorageContext1 = New-AzureStorageContext -StorageAccountName sqlvaqrc7kssdx4eus -StorageAccountKey $Keys1
$containerName1 = "democontainer1";
Set-AzStorageBlobContent -File "D:\Bijay\Upload9.txt" `
  -Container $containerName1 `
  -Blob "Upload9.txt" `
  -Context $StorageContext 
login-azurermaccount is not recognized

The complete error message was as below

The term ‘Login-AzureRmAccount’ 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.
+ CategoryInfo : ObjectNotFound: (Login-AzureRmAccount: String)

Login-AzureRmAccount is not recognized [Solved]

To fix this issue you need to follow the below steps

Step-1:

Run your PowerShell ISE or Windows PowerShell as an administrator mode

'Login-AzureRmAccount' is not recognized

Step-2:

You need to install the AzureRM module now. To install and fix this issue, follow my article The term ‘New-AzureStorageContext’ is not recognized.

Step-3:

Once you install the AzureRM module successfully by following the above article, try to run the below PowerShell script again, You will get the Popup window to enter your Azure credentials

The term 'Login-AzureRmAccount' is not recognized as the name of a cmdlet, function, script.

Login-AzureRmAccount is not recognized – Video Tutorial

You may also like the below tutorials

  • No match was found for the specified search criteria and module name ‘MSOnline’

Conclusion

Well, in this Azure tutorial, we discussed how to fix the error “The term ‘Login-AzureRmAccount’ is not recognized as the name of a cmdlet, function, script. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.“

How To Deploy SQL Database To Azure
What Is DMV Collector In Azure SQL Database

Follow Us

Follow us on Twitter Subscribe us on Youtube

Recent Posts

  • ‘Authority’ Uri should have at least one segment in the path
  • How to install Azure CLI on Mac
  • How to log in to Azure CLI
  • Azure CLI Tutorial
  • Azure Cosmos DB Emulator download
  • About
  • Contact
  • Privacy Policy
  • Sitemap
© 2023 Azure Lessons