Skip to content

Commit 38a6477

Browse files
author
unknown
committed
HotFix: Fix New-AzureVM with VM image issue
1 parent 717a520 commit 38a6477

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/Helpers/PersistentVMHelper.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ public static MCM.VMImageInput MapVMImageInput(CSM.VMImageInput vmImageInput)
193193
{
194194
var result = new MCM.VMImageInput();
195195

196+
if (vmImageInput == null)
197+
{
198+
return null;
199+
}
200+
196201
if (vmImageInput.OSDiskConfiguration != null)
197202
{
198203
result.OSDiskConfiguration = new MCM.OSDiskConfiguration()

0 commit comments

Comments
 (0)