尝试使用 powershell 从以前的快照还原我的 azure VM 时,出现错误:
Get-AzureRmSnapshot : 方法get_SerializationSettings' in type 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' from assembly 'Microsoft.Azure.Command.ResourceManager.Common, 版本=4.0.0.0,区域性=中性,公钥令牌=31bf3856ad364e35' 没有实现。
已知问题,由Microsoft记录。该错误指示 Azure 资源管理器模块和 Az 模块在同一会话中加载,并且这些模块彼此不兼容。
修复:卸载冲突的模块。Azure 资源管理器模块或 Az 模块
https://learn.microsoft.com/en-us/azure-stack/operator/azure-stack-powershell-install?view=azs-2008
关闭电源外壳并尝试重新安装。它解决了这个问题。
希望它能帮助其他面临类似问题的人。