Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

Login-AzureRmAccount is not recognized

February 8, 2024September 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. I got it while executing the login-azurermaccount command.

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

I got this error 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

1. Run your PowerShell ISE or Windows PowerShell as an administrator mode

'Login-AzureRmAccount' is not recognized

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.

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 tutorials below

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

Conclusion

In this Azure tutorial, we discussed how to fix the error “the term login-azure account is not recognized. “ Hope this will help you.

Bijay Kumar
Bijay Kumar

I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more

Azure VM Restart VS Stop
How to get public IP address of Azure VM using PowerShell
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure VM Backup Pricing
  • Azure VM
  • What Is Edge Location In AWS
  • DP-300 Certification
  • What Is Cloud Shell In Azure
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2026 Azure Lessons
Azure
Virtual
Machine
By: Rajkishore
Azure Consultant
PDF

Free 25+ page PDF

Download free Azure Virtual Machine PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!

No spam, ever. You will also get new Azure tutorials by email. Unsubscribe any time. Privacy policy

Check your inbox

Your Azure Virtual Machine PDF is on its way to . Can't find it in a few minutes? Look in your Promotions or Spam folder.