Could you please try following workarounds to get rid of the "Run Login-AzureRMAccount" error.
- Most likely this is caused by multiple versions of Azure PowerShell installed on the machine. You can find this out with
Get-Module -ListAvailable
If azure powershell modules show up anywhere other than in "%programfiles (x86)%\Microsoft SDKs\Azure\PowerShell", then please try removing them. Try running "Update-Module" command and make sure PowerShell update the modules. Finally restart your machine.
If you encounter the issue still, try uninstalling all Azure PowerShell modules and reinstalled them with Web Platform Installer.
Uninstall-Modules AzureRM
- Try using PowerShell ISE elevated (as administrator). Try to launch the commands in PowerShell ISE to overcome it in the end.
- Try to create new ServiceBus on Azure Portal. Please ensure your subscription has the permission to create SeviceBus. If you have multiple subscription, please make sure you are using right subscription.
I hope this helps, but if you have any further questions feel free to come back to us. We are always here to help. Here is a helpful page with information about Microsoft Azure;
https://learn.microsoft.com/en-us/azure/active-directory/
------------
--If the reply is helpful, please Upvote and Accept as answer.