I downloaded HCI 22H2 ISO from Azure portal.
When executing the script "2_CreateParentDisks.ps1" it failed with error below.
I think it's because the ISO contains only one image.
_Method invocation failed because [System.Char] does not contain a method named 'contains'.
At F:\Lab\mslab2-hci\2_CreateParentDisks.ps1:665 char:13
If ($WindowsImage.ImageName[0].contains("Server")){
Hello,
I downloaded HCI 22H2 ISO from Azure portal. When executing the script "2_CreateParentDisks.ps1" it failed with error below. I think it's because the ISO contains only one image.
_Method invocation failed because [System.Char] does not contain a method named 'contains'. At F:\Lab\mslab2-hci\2_CreateParentDisks.ps1:665 char:13
Method invocation failed because [System.Char] does not contain a method named 'contains'. At F:\Lab\mslab2-hci\2_CreateParentDisks.ps1:671 char:13
Get-WindowsImage : There is no matching image. At F:\Lab\mslab2-hci\2_CreateParentDisks.ps1:683 char:21