VHD required for SDN Express in Azure Stack HCI

PRAKHAR BHARDWAJ 116 Reputation points
2021-07-29T05:57:46.18+00:00

When trying to deploy SDN via https://learn.microsoft.com/en-us/azure-stack/hci/manage/sdn-express, the HCI OS is required in a vhd format.

When I am trying Convert-WindowsImage Powershell command i get the following error



Windows PowerShell transcript start
Start time: 20210729104831
Username: ASIAPACIFIC\bhardpra
RunAs User: ASIAPACIFIC\bhardpra
Configuration Name:
Machine: WHDGY30OP1 (Microsoft Windows NT 10.0.16299.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 21400
PSVersion: 5.1.16299.1146
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.16299.1146
BuildVersion: 10.0.16299.1146
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1


VERBOSE: Looking for the requested Windows image in the WIM file
VERBOSE:
PS>TerminatingError(Get-WindowsImage): "There is no matching image."

> TerminatingError(Get-WindowsImage): "There is no matching image."

VERBOSE:
Convert-WindowsImage : There is no matching image.
At line:1 char:1

  • Convert-WindowsImage -SourcePath 'D:\sources\install.wim' -Edition 3 ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-WindowsImage
    Convert-WindowsImage : There is no matching image.
    At line:1 char:1
  • Convert-WindowsImage -SourcePath 'D:\sources\install.wim' -Edition 3 ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Convert-WindowsImage

VERBOSE: Log folder is “C:\Users\bhardpra\AppData\Local\Temp\Convert-WindowsImage\7a91c124-480c-4279-ab04-7539928dab76”
VERBOSE:
VERBOSE: Closing Windows image...
VERBOSE: Done.


Windows PowerShell transcript end
End time: 20210729104834



If anyone can help me get past this issue it would be great.

Azure Stack HCI
Azure Stack HCI
A hyperconverged infrastructure operating system delivered as an Azure service that provides security, performance, and feature updates.
358 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,551 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRAKHAR BHARDWAJ 116 Reputation points
    2021-07-29T06:39:53.267+00:00

    It worked after removing the -Edition parameter.

    How I got to this conclusion ?
    When I ran the command Get-Windowsimage pointing to the win of Azure Stack HCI OS, it did not sow a Server version. Following was the output.


    Get-WindowsImage -ImagePath "D:\sources\install.wim"

    ImageIndex : 1
    ImageName : Azure Stack HCI SERVERAZURESTACKHCICORE
    ImageDescription : Azure Stack HCI SERVERAZURESTACKHCICORE
    ImageSize : 8,234,219,375 bytes


    For a normal Windows server iso the output shows "Windows Server 20xx". This prompted me to remove the -Edition parameter and try.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.