Azure/azure-support-scripts

"[Error] Unable to snapshot and copy the problem VM's OS disk." when running on CloudShell

Opened this issue · 0 comments

We are getting the error below consistently when running the RecoveryScript on CloudShell. If we download and run manually, it works - Only CloudShell is affected.

//////////////////////////////////////////////////////////////////////////////

_[2019-07-01 14:21:27Z] [Success] Problem VM xyzw-1 OS disk VHD URI: https://xyzwstorageacc.blob.core.windows.net/xyzw/rescuefixedosxyzw-test.vhd
[2019-07-01 14:21:27Z] [Running] Getting the storage connection info for Storage xyzwstorageacc
[2019-07-01 14:21:28Z] [Success] Gathered the connection info for Storage xyzwstorageacc
[2019-07-01 14:21:30Z] [Running] Creating snapshot of OS disk for problem VM xyzw-1
[2019-07-01 14:21:30Z] [Success] Created snapshot of OS disk for problem VM xyzw-1
/usr/bin/sort: cannot read: System.Collections.Hashtable: No such file or directory
[2019-07-01 14:21:30Z] [Error] Snapshot copy failed.
[2019-07-01 14:21:30Z] [Error] Unable to snapshot and copy the problem VM's OS disk.
[2019-07-01 14:21:30Z] [Running] Posting Telemetry data to AppInsights
[2019-07-01 14:21:30Z] [Success] Request was successfully logged to AppInsights.

result : False
restoreScriptCommand :
rescueScriptCommand : ./New-AzureRMRescueVM.ps1 -ResourceGroupName xyzw -VmName xyzw-1
failureReason : [Error] Unable to snapshot and copy the problem VM's OS disk.
cleanupScript :
restoreOriginalStateScript :_

//////////////////////////////////////////////////////////////////////////////