Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Get-AzureRmSnapshot抛出错误Get-AzureRmSnapshot:Method';获取_SerializationSettings';_Azure_Snapshot - Fatal编程技术网

Get-AzureRmSnapshot抛出错误Get-AzureRmSnapshot:Method';获取_SerializationSettings';

Get-AzureRmSnapshot抛出错误Get-AzureRmSnapshot:Method';获取_SerializationSettings';,azure,snapshot,Azure,Snapshot,尝试使用powershell从以前的快照还原azure VM时,出现错误: Get-AzureRmSnapshot:类型中的方法“Get\u SerializationSettings” 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' 从程序集“Microsoft.Azure.Commands.ResourceManager.Common”, 版本=4.0.0.0,区域性=中性,PublicKeyT

尝试使用powershell从以前的快照还原azure VM时,出现错误:

Get-AzureRmSnapshot:类型中的方法“Get\u SerializationSettings” 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' 从程序集“Microsoft.Azure.Commands.ResourceManager.Common”, 版本=4.0.0.0,区域性=中性,PublicKeyToken=31bf3856ad364e35' 没有实现


关闭powershell并尝试重新加载。它解决了这个问题


希望它能帮助其他面临类似问题的人。

这是一个已知的问题,由Microsoft记录。 该错误表示Azure资源管理器模块和Az模块加载在同一会话中,并且这些模块彼此不兼容

补救措施:卸载冲突模块。Azure资源管理器模块或Az模块


尝试将您的azure powershell更新为最新版本供我使用
get-azsnapshot
works finepowershell已是最新版本不是powershell,azure powershell。如果它是最新的,为什么您要使用get-azurermsnapshot,而不是get-azurermsnapshot?欢迎提供一个指向解决方案的链接,但请确保您的答案在没有它的情况下是有用的:这样您的其他用户就会知道它是什么以及为什么存在,然后引用您链接到的页面的最相关部分,以防目标页面不可用。