【发布时间】:2020-07-07 10:13:42
【问题描述】:
Get-AzureAccount 在 Az 模块中不起作用。它给出以下错误:
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
此命令在 AzureRM 模块中工作,因为 AzureRm 正在贬低,我们需要将所有命令更改为 Az 模块。
请帮助! 提前致谢
【问题讨论】:
-
您好,如果您的回答对您有帮助,您可以采纳吗?谢谢。
标签: powershell azure-powershell azure-rm az