Get-AzureAccount is not working in Az modules .It is giving below error :
Get-AzureAccount : The 'Get-AzureAccount' command was found in the module 'Azure', but the module could not be loaded. For more information, run 'Import-Module Azure'.
+ Get-AzureAccount | ForEach-Object { Remove-AzureAccount $_.ID -Fo ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-AzureAccount:String) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
This Command was working in AzureRM modules as AzureRm is depricating , we need to change all commands to Az modules.
Kindly Help! Thanks in advance