dellgeos / azurestackhols Goto Github PK
View Code? Open in Web Editor NEWHands on labs for Azure Stack HCI
Hands on labs for Azure Stack HCI
Connect-AzAccount fails with
PS C:\Users\Administrator.Corp> Connect-AzAccount -UseDeviceAuthentication
[Login to Azure] To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code [omitted] to authenticate.
WARNING: Unable to acquire token for tenant '[omitted]' with error 'SharedTokenCacheCredential authentication unavailable. Token acquisition failed for user [email protected]. Ensure that you have authenticated with a developer tool that supports Azure single sign on.'
Workaround:
Connect-AzAccount -UseDeviceAuthentication -Subscription '[omitted]' -Tenant ' [omitted]'
Then executing
#select subscription if more available $subscriptions=Get-AzSubscription if (($subscriptions).count -gt 1){ $SubscriptionID=($Subscriptions | Out-GridView -OutputMode Single -Title "Please Select Subscription").ID $Subscriptions | Where-Object ID -eq $SubscriptionID | Select-AzSubscription }else{ $SubscriptionID=$subscriptions.id }
worked
Any idea why this fails? Worked some months ago. Have something changed in Azure?
Hi,
Can someone help me?
I have hydrated the labs fine but when I try to deploy (the first step in https://github.com/DellGEOS/AzureStackHOLs/tree/main/lab-guides/01-DeployAzureStackHCICluster-WAC) I receive this error:
Import-VM : Failed to import a virtual machine.
An unexpected error occurred: The source type for URI '%1' is not supported. (0xC00CEF0B).
Failed to import a virtual machine.
The Hyper-V Virtual Machine Management service encountered an unexpected error: The source type for URI '%1' is not
supported. (0xC00CEF0B).
Here's the log.
Windows PowerShell transcript start
Start time: 20221028142831
Username: WIN-GGD0IQMTGDG\Administrator
RunAs User: WIN-GGD0IQMTGDG\Administrator
Machine: WIN-GGD0IQMTGDG (Microsoft Windows NT 10.0.14393.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command if((Get-ExecutionPolicy ) -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & 'C:\Lab\Deploy.ps1'
Process ID: 4532
PSVersion: 5.1.14393.3866
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.3866
BuildVersion: 10.0.14393.3866
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
Transcript started, output file is C:\Lab\Deploy.log
Script started at 10/28/2022 14:28:31
MSLab Version v22.10.1
Lab telemetry
By providing a telemetry information you will help us to improve MSLab scripts. There are two levels of a telemetry information and we are not collecting any personally identifiable information (PII).
Details about telemetry levels and the content of telemetry messages can be found in documentation https://aka.ms/mslab/telemetry
Available telemetry levels are:
Tip: You can also configure telemetry settings explicitly in LabConfig.ps1 file or by setting an environmental variable and suppress this prompt.
No telemetry information will be sent.
List of variables used
Prefix used in lab is Lab-
Switchname is Lab-LabSwitch
Workdir is C:\Lab
LabFolder is C:\Lab\LAB
Checking if OS is Windows 10 1511 (10586)/Server 2016 or newer
OS is Windows 10 1511 (10586)/Server 2016 or newer
Checking if Hyper-V is installed
Hyper-V is Installed
Checking if Hyper-V Powershell module is installed
Hyper-V is Installed
Checking if at least 2GB RAM is available
13,729 MB RAM Available
Checking if volume filesystem is NTFS or ReFS
Volume filesystem is NTFS
Creating Switch
Checking if Lab-LabSwitch already exists...
Creating Lab-LabSwitch...
Internet connectivity requested
Detecting default vSwitch
Default switch not present, detecting external vSwitch Lab-LabSwitch-External
Detecting external VMSwitch
External vswitch vmxnet3 Ethernet Adapter - Virtual Switch found. Will be used for connecting lab to internet
Checking if lab already exists.
Starting IP for AdditionalNetworks is 1
Creating Mountdir
Creating VMs dir
Looking for Tools Parent Disks
Tools parent disk C:\Lab\ParentDisks\tools.vhdx found
Configuring DC
Looking for DC to be imported
Import-VM : Failed to import a virtual machine.
An unexpected error occurred: The source type for URI '%1' is not supported. (0xC00CEF0B).
Failed to import a virtual machine.
The Hyper-V Virtual Machine Management service encountered an unexpected error: The source type for URI '%1' is not
supported. (0xC00CEF0B).
At C:\Lab\Deploy.ps1:1604 char:27
$DC = Import-VM -Path $_.FullName
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Windows PowerShell transcript end
End time: 20221028142843
I followed with the below 2 articles first
[01 How to Hydrate MSLab files]
[02 Working with MSLab]
After deploying all VM in [02 Working with MSLab], the DC is not able to access the Internet.
Then I cleaned the VMs deployed in [02 Working with MSLab], and tried [01 Deploy Azure Stack HCI Cluster with Windows Admin Center], DC is now able to access the Internet.
Thanks.
if you are interested I have different code improvements for the WAC gateway deployment including the deployment of extensions.
They might become obsolete soon due to the fundamental changes of the new WAC setup and all MS extensions come preinstalled.
let me know if you want to review it. excerpt and related idea:
https://feedback.azure.com/d365community/idea/4304fca7-fbaa-ee11-92bc-000d3a037f01
Invoke-Command -ComputerName $servers -ScriptBlock { Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V -Online -NoRestart Install-WindowsFeature -Name Failover-Clustering } -Credential $Credentials
fails to execute
error message:
[ASNode1] Connecting to remote server ASNode1 failed with the following error message : The WinRM client cannot process the request because the
server name cannot be resolved. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (ASNode1:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : ComputerNotFound,PSSessionStateBroken
[ASNode2] Connecting to remote server ASNode2 failed with the following error message : The WinRM client cannot process the request because the
server name cannot be resolved. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (ASNode2:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : ComputerNotFound,PSSessionStateBroken
Differences to previous deployments:
Dear @jaromirk some parts of your code uses a per node configuration for LiveMigration. Good news this can now be done cluster-wide, the changes become effective quite immediately.
this is valid for WS 2022 and Azure Stack HCI:
https://techcommunity.microsoft.com/t5/azure-stack/azure-stack-hci-keeps-setting-livemigration-to-1-here-is-why/td-p/3850965
Dear @jaromirk
for this guidance, we can safely remove the creation of the RBAC (IAM) role to register the Azure Stack HCI nodes. The MS documentation is not complete / updated. I will raise a PR at a later date.
The previously required custom appear to exist in current tenants and include even more permissions than just registering.
tldr: by today, Microsoft has created and preprovisioned Azure Stack HCI IAM roles for registration and other purposes such as Azure Arc.
I understand we want to keep 3rd party components near zero but in this case I propose that using PSWindowsUpdate should be very feasible, reduce code and improve readability. I am using this for customers in production when they are not looking into Azure Update Manager (yet)
references:
https://woshub.com/pswindowsupdate-module/
https://www.virtualizationhowto.com/2023/06/pswindowsupdate-automated-windows-updates-with-powershell/
if you appreciate the Idea, I can share you the code I use for my 22H2, which could fairly be used for any deployment version.
Issues after selecting Windows Server iso and further steps
CreateParentDisk.ps1 Script has issues to process the array of images from WIM.
https://github.com/DellGEOS/AzureStackHOLs/tree/main/admin-guides/01-HydrateMSLab
Task 3 - Step 7.
ISO file from msdn: en-us_windows_server_2022_updated_aug_2023_x64_dvd_78639bda.iso
`**********************
nStart der Windows PowerShell-Aufzeichnung
Startzeit: 20230907162659
Benutzername: KARL-PC-WORK\servi
RunAs-Benutzer: KARL-PC-WORK\servi
Konfigurationsname:
Computer: KARL-PC-WORK (Microsoft Windows NT 10.0.22631.0)
Hostanwendung: C:\windows\system32\windowspowershell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File H:\mslab_v23.06.1\2_CreateParentDisks.ps1
Prozess-ID: 16628
PSVersion: 5.1.22621.1830
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.1830
BuildVersion: 10.0.22621.1830
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
INFO : Looking for the requested Windows image in the WIM file
INFO : Creating sparse disk...
INFO : Mounting VHDX...
INFO : Initializing disk...
INFO : Creating EFI system partition...
INFO : Formatting system volume...
INFO : Setting system partition as ESP...
INFO : Creating MSR partition...
INFO : Creating windows partition...
INFO : Formatting windows volume...
ERROR : Es ist nicht möglich, einen Index auf ein NULL-Array anzuwenden.
INFO : Log folder is C:\Users\servi\AppData\Local\Temp\Convert-WindowsImage\e04f29fd-e249-40f7-a2b5-dc39fc29de51
INFO : Done.
Ende der Windows PowerShell-Aufzeichnung
Endzeit: 20230907162708
`
apparently, all later steps will throw errors.
`
nStart der Windows PowerShell-Aufzeichnung
Startzeit: 20230907162621
Benutzername: KARL-PC-WORK\servi
RunAs-Benutzer: KARL-PC-WORK\servi
Konfigurationsname:
Computer: KARL-PC-WORK (Microsoft Windows NT 10.0.22631.0)
Hostanwendung: C:\windows\system32\windowspowershell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File H:\mslab_v23.06.1\2_CreateParentDisks.ps1
Prozess-ID: 16628
PSVersion: 5.1.22621.1830
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.1830
BuildVersion: 10.0.22621.1830
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
Die Aufzeichnung wurde gestartet. Die Ausgabedatei ist "H:\mslab_v23.06.1\CreateParentDisks.log".
Script started at 09/07/2023 16:26:21
MSLab Version v23.06.1
Lab telemetry
By providing a telemetry information you will help us to improve MSLab scripts. There are two levels of a telemetry information and we are not collecting any personally identifiable information (PII).
Details about telemetry levels and the content of telemetry messages can be found in documentation https://aka.ms/mslab/telemetry
Available telemetry levels are:
Tip: You can also configure telemetry settings explicitly in LabConfig.ps1 file or by setting an environmental variable and suppress this prompt.
Telemetry has been set to Full level, thank you for your valuable feedback.
Checking if Hyper-V is installed
Hyper-V is Installed
Checking if Hyper-V Powershell module is installed
Hyper-V is Installed
Testing if some parent disk already exists and can be used
Checking if at least 2GB RAM is available
54.442 MB RAM Available
Checking if volume filesystem is NTFS or ReFS
Volume filesystem is ReFS
Please select ISO image with Windows Server 2016, 2019, 2022 or Server Insider
GAC Version Location
True v4.0.30319 C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089...
File H:\ISOs\en-us_windows_server_2022_updated_aug_2023_x64_dvd_78639bda.iso selected
Testing if selected ISO is Server Media
Server Edition found
Please select Windows Server Updates (*.msu). Click Cancel if you don't want any.
True v4.0.30319 C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089...
Tools.vhdx not found, will be created
Creating Directory Temp\mountdir
PSPath : Microsoft.PowerShell.Core\FileSystem::H:\mslab_v23.06.1\Temp\mountdir
PSParentPath : Microsoft.PowerShell.Core\FileSystem::H:\mslab_v23.06.1\Temp
PSChildName : mountdir
PSDrive : H
PSProvider : Microsoft.PowerShell.Core\FileSystem
PSIsContainer : True
Name : mountdir
FullName : H:\mslab_v23.06.1\Temp\mountdir
Parent : Temp
Exists : True
Root : H:
Extension :
CreationTime : 07.09.2023 16:26:58
CreationTimeUtc : 07.09.2023 14:26:58
LastAccessTime : 07.09.2023 16:26:58
LastAccessTimeUtc : 07.09.2023 14:26:58
LastWriteTime : 07.09.2023 16:26:58
LastWriteTimeUtc : 07.09.2023 14:26:58
Attributes : Directory
Mode : d-----
BaseName : mountdir
Target : {}
LinkType :
Creating Server Parent disk(s)
Creating Server Parent Win2022_G2.vhdx
Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 10
Copyright (C) Microsoft Corporation. All rights reserved.
Version 10.0.14278.1000.amd64fre.rs1_es_media.160201-1707
INFO : Looking for the requested Windows image in the WIM file
INFO : Creating sparse disk...
INFO : Mounting VHDX...
INFO : Initializing disk...
INFO : Creating EFI system partition...
INFO : Formatting system volume...
INFO : Setting system partition as ESP...
INFO : Creating MSR partition...
INFO : Creating windows partition...
INFO : Formatting windows volume...
ERROR : Es ist nicht möglich, einen Index auf ein NULL-Array anzuwenden.
INFO : Log folder is C:\Users\servi\AppData\Local\Temp\Convert-WindowsImage\e04f29fd-e249-40f7-a2b5-dc39fc29de51
INFO : Done.
Creating Server Parent Win2022Core_G2.vhdx
Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 10
Copyright (C) Microsoft Corporation. All rights reserved.
Version 10.0.14278.1000.amd64fre.rs1_es_media.160201-1707
INFO : Looking for the requested Windows image in the WIM file
INFO : Creating sparse disk...
INFO : Mounting VHDX...
INFO : Initializing disk...
INFO : Creating EFI system partition...
INFO : Formatting system volume...
INFO : Setting system partition as ESP...
INFO : Creating MSR partition...
INFO : Creating windows partition...
INFO : Formatting windows volume...
ERROR : Es ist nicht möglich, einen Index auf ein NULL-Array anzuwenden.
INFO : Log folder is C:\Users\servi\AppData\Local\Temp\Convert-WindowsImage\3a8d8ee6-3ea2-4a84-b00a-f62c446b18d4
INFO : Done.
Creating Tools.vhdx
Found H:\mslab_v23.06.1\Temp\ToolsVHD*, copying files into VHDX
Starting DC Hydration
Creating VHD for DC
Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 10
Copyright (C) Microsoft Corporation. All rights reserved.
Version 10.0.14278.1000.amd64fre.rs1_es_media.160201-1707
INFO : Looking for the requested Windows image in the WIM file
INFO : Creating sparse disk...
INFO : Mounting VHDX...
INFO : Initializing disk...
INFO : Creating EFI system partition...
INFO : Formatting system volume...
INFO : Setting system partition as ESP...
INFO : Creating MSR partition...
INFO : Creating windows partition...
INFO : Formatting windows volume...
ERROR : Es ist nicht möglich, einen Index auf ein NULL-Array anzuwenden.
INFO : Log folder is C:\Users\servi\AppData\Local\Temp\Convert-WindowsImage\65e49cdf-fd27-496f-803a-3c97f0d79f2c
INFO : Done.
PS>TerminatingError(Get-WindowsImage): "Das System kann die angegebene Datei nicht finden.
"
Get-WindowsImage : Das System kann die angegebene Datei nicht finden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:952 Zeichen:37
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:952 Zeichen:37
... ion]$VMVersion=(Get-WindowsImage -ImagePath $VHDPath -Index 1).Versio ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VM Version is .
Creating temp hydration switch DC_HydrationSwitch_524278e1-2b5d-4268-973b-f8a30bb37607
Name : DC_HydrationSwitch_524278e1-2b5d-4268-973b-f8a30bb37607
Id : b14f1d06-e3be-4178-8d11-487e5c456279
Notes :
Extensions : {Microsoft Defender Application Guard – Filtertreiber, Microsoft
Windows-Filterplattform, Microsoft Azure VFP Switch Filter
Extension, Microsoft-NDIS-Aufzeichnung}
BandwidthReservationMode : Absolute
PacketDirectEnabled : False
EmbeddedTeamingEnabled : False
AllowNetLbfoTeams : False
IovEnabled : False
SwitchType : Private
AllowManagementOS : False
NetAdapterInterfaceDescription :
NetAdapterInterfaceDescriptions :
NetAdapterInterfaceGuid :
IovSupport : False
IovSupportReasons :
AvailableIPSecSA : 0
NumberIPSecSAAllocated : 0
AvailableVMQueues : 0
NumberVmqAllocated : 0
IovQueuePairCount : 0
IovQueuePairsInUse : 0
IovVirtualFunctionCount : 0
IovVirtualFunctionsInUse : 0
PacketDirectInUse : False
DefaultQueueVrssEnabledRequested : True
DefaultQueueVrssEnabled : False
DefaultQueueVmmqEnabledRequested : True
DefaultQueueVmmqEnabled : False
DefaultQueueVrssMaxQueuePairsRequested : 16
DefaultQueueVrssMaxQueuePairs : 0
DefaultQueueVrssMinQueuePairsRequested : 1
DefaultQueueVrssMinQueuePairs : 0
DefaultQueueVrssQueueSchedulingModeRequested : StaticVrss
DefaultQueueVrssQueueSchedulingMode : Dynamic
DefaultQueueVrssExcludePrimaryProcessorRequested : False
DefaultQueueVrssExcludePrimaryProcessor : False
SoftwareRscEnabled : True
RscOffloadEnabled : False
BandwidthPercentage : 0
DefaultFlowMinimumBandwidthAbsolute : 0
DefaultFlowMinimumBandwidthWeight : 0
CimSession : CimSession: .
ComputerName : KARL-PC-WORK
IsDeleted : False
DefaultQueueVmmqQueuePairs : 0
DefaultQueueVmmqQueuePairsRequested : 16
Creating DC VM
New-VM : Fehler beim Hinzufügen des Geräts "Virtual Hard Disk".
Die Anlage "H:\mslab_v23.06.1\LAB\DC\Virtual Hard Disks\DC.vhdx" wurde nicht gefunden. Fehler: Das System kann die
angegebene Datei nicht finden..
"DC": Fehler beim Hinzufügen des Geräts "Virtual Hard Disk" (ID des virtuellen Computers
D02F3B6E-D029-4BA4-99FF-431BB76189B8).
"DC": Die Anlage "H:\mslab_v23.06.1\LAB\DC\Virtual Hard Disks\DC.vhdx" wurde nicht gefunden. Fehler: "Das System kann
die angegebene Datei nicht finden." (0x80070002) (ID des virtuellen Computers D02F3B6E-D029-4BA4-99FF-431BB76189B8).
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:966 Zeichen:21
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Die Anlage "H:\mslab_v23.06.1\LAB\DC\Virtual Hard Disks\DC.vhdx" wurde nicht gefunden. Fehler: Das System kann die
angegebene Datei nicht finden..
"DC": Fehler beim Hinzufügen des Geräts "Virtual Hard Disk" (ID des virtuellen Computers
D02F3B6E-D029-4BA4-99FF-431BB76189B8).
"DC": Die Anlage "H:\mslab_v23.06.1\LAB\DC\Virtual Hard Disks\DC.vhdx" wurde nicht gefunden. Fehler: "Das System kann
die angegebene Datei nicht finden." (0x80070002) (ID des virtuellen Computers D02F3B6E-D029-4BA4-99FF-431BB76189B8).
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:966 Zeichen:21
... $DC=New-VM -Name $DCName -VHDPath $vhdpath -MemoryStartupByte ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Applying Unattend and copying Powershell DSC Modules
PSPath : Microsoft.PowerShell.Core\FileSystem::H:\mslab_v23.06.1\Temp\MountDir
PSParentPath : Microsoft.PowerShell.Core\FileSystem::H:\mslab_v23.06.1\Temp
PSChildName : MountDir
PSDrive : H
PSProvider : Microsoft.PowerShell.Core\FileSystem
PSIsContainer : True
Name : MountDir
FullName : H:\mslab_v23.06.1\Temp\MountDir
Parent : Temp
Exists : True
Root : H:
Extension :
CreationTime : 07.09.2023 16:27:50
CreationTimeUtc : 07.09.2023 14:27:50
LastAccessTime : 07.09.2023 16:27:50
LastAccessTimeUtc : 07.09.2023 14:27:50
LastWriteTime : 07.09.2023 16:27:50
LastWriteTimeUtc : 07.09.2023 14:27:50
Attributes : Directory
Mode : d-----
BaseName : MountDir
Target : {}
LinkType :
PS>TerminatingError(Get-WindowsImage): "Das System kann die angegebene Datei nicht finden.
"
Get-WindowsImage : Das System kann die angegebene Datei nicht finden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1000 Zeichen:41
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1000 Zeichen:41
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TerminatingError(Mount-WindowsImage): "Falscher Parameter.
"
Mount-WindowsImage : Falscher Parameter.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1001 Zeichen:13
Mount-WindowsImage -Path $mountdir -ImagePath $VHDPath -I ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1001 Zeichen:13
Mount-WindowsImage -Path $mountdir -ImagePath $VHDPath -I ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TerminatingError(Use-WindowsUnattend): "Fehler: Es wurde kein Vorgang ausgeführt.
Stellen Sie sicher, dass DISM ordnungsgemäß im Abbild installiert ist, und wiederholen Sie dann den Vorgang.
"
Use-WindowsUnattend : Fehler: Es wurde kein Vorgang ausgeführt.
Stellen Sie sicher, dass DISM ordnungsgemäß im Abbild installiert ist, und wiederholen Sie dann den Vorgang.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1002 Zeichen:13
Use-WindowsUnattend -Path $mountdir -UnattendPath $unatte ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1002 Zeichen:13
Use-WindowsUnattend -Path $mountdir -UnattendPath $unatte ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PSPath : Microsoft.PowerShell.Core\FileSystem::H:\mslab_v23.06.1\Temp\MountDir\Windows\Panther
PSParentPath : Microsoft.PowerShell.Core\FileSystem::H:\mslab_v23.06.1\Temp\MountDir\Windows
PSChildName : Panther
PSDrive : H
PSProvider : Microsoft.PowerShell.Core\FileSystem
PSIsContainer : True
Name : Panther
FullName : H:\mslab_v23.06.1\Temp\MountDir\Windows\Panther
Parent : Windows
Exists : True
Root : H:
Extension :
CreationTime : 07.09.2023 16:27:50
CreationTimeUtc : 07.09.2023 14:27:50
LastAccessTime : 07.09.2023 16:27:50
LastAccessTimeUtc : 07.09.2023 14:27:50
LastWriteTime : 07.09.2023 16:27:50
LastWriteTimeUtc : 07.09.2023 14:27:50
Attributes : Directory
Mode : d-----
BaseName : Panther
Target : {}
LinkType :
Copy-Item : Der Container kann nicht in ein vorhandenes Endknotenelement kopiert werden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1007 Zeichen:13
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item : Der Container kann nicht in ein vorhandenes Endknotenelement kopiert werden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1007 Zeichen:13
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item : Der Container kann nicht in ein vorhandenes Endknotenelement kopiert werden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1007 Zeichen:13
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item : Der Container kann nicht in ein vorhandenes Endknotenelement kopiert werden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1007 Zeichen:13
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item -Path "$PSScriptRoot\Temp\DSC\*" -Destination " ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Creating DSC Configs for DC
Copying DSC configurations (pending.mof and metaconfig.mof)
PS>TerminatingError(Copy-Item): "Ein Teil des Pfades "H:\mslab_v23.06.1\Temp\MountDir\Windows\system32\Configuration\pending.mof" konnte nicht gefunden werden."
Copy-Item : Ein Teil des Pfades "H:\mslab_v23.06.1\Temp\MountDir\Windows\system32\Configuration\pending.mof" konnte
nicht gefunden werden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1337 Zeichen:13
Copy-Item -path "$PSScriptRoot\Temp\config\dc.mof" - ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item -path "$PSScriptRoot\Temp\config\dc.mof" - ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TerminatingError(Copy-Item): "Ein Teil des Pfades "H:\mslab_v23.06.1\Temp\MountDir\Windows\system32\Configuration\metaconfig.mof" konnte nicht gefunden werden."
Copy-Item : Ein Teil des Pfades "H:\mslab_v23.06.1\Temp\MountDir\Windows\system32\Configuration\metaconfig.mof" konnte
nicht gefunden werden.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1338 Zeichen:13
Copy-Item -Path "$PSScriptRoot\Temp\config\dc.meta.mof" - ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copy-Item -Path "$PSScriptRoot\Temp\config\dc.meta.mof" - ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Applying changes to VHD
PS>TerminatingError(Dismount-WindowsImage): "Die Anforderung wird nicht unterstützt.
"
Dismount-WindowsImage : Die Anforderung wird nicht unterstützt.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1342 Zeichen:13
Dismount-WindowsImage -Path $mountdir -Save
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1342 Zeichen:13
Dismount-WindowsImage -Path $mountdir -Save
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Starting DC
Configuring DC using DSC takes a while.
Initial configuration in progress. Sleeping 250 seconds
PS>TerminatingError(Invoke-Command): "Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus."
Invoke-Command : Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer.
Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1355 Zeichen:46
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Configuration in Progress. Sleeping 10 seconds
PS>TerminatingError(Invoke-Command): "Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus."
Invoke-Command : Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer.
Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1355 Zeichen:46
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Configuration in Progress. Sleeping 10 seconds
PS>TerminatingError(Invoke-Command): "Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus."
Invoke-Command : Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer.
Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1355 Zeichen:46
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Configuration in Progress. Sleeping 10 seconds
PS>TerminatingError(Invoke-Command): "Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus."
Invoke-Command : Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer.
Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1355 Zeichen:46
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Configuration in Progress. Sleeping 10 seconds
PS>TerminatingError(Invoke-Command): "Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus."
Invoke-Command : Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer.
Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1355 Zeichen:46
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Configuration in Progress. Sleeping 10 seconds
PS>TerminatingError(Invoke-Command): "Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus."
Invoke-Command : Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer.
Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1355 Zeichen:46
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Configuration in Progress. Sleeping 10 seconds
PS>TerminatingError(Invoke-Command): "Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus."
Invoke-Command : Das Argument für den Parameter "VMId" kann nicht überprüft werden. Das Argument ist NULL oder leer.
Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
In H:\mslab_v23.06.1\2_CreateParentDisks.ps1:1355 Zeichen:46
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
$test=Invoke-Command -VMGuid $DC.id -ScriptBlock {Get ...
~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-Command], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeCommandCommand
Configuration in Progress. Sleeping 10 seconds
PS>TerminatingError(): "Die Pipeline wurde beendet."
TerminatingError(): "Die Pipeline wurde beendet."
$global:?
True
`
hi Jaromir in addition to #50 I would like to add two default switches into the mslab config which represent the timezone used in the lab, UTC might not be feasible for some,
aswell as specifying the OS telemetry level. even though it is a lab Microsoft can still benefit from optional telemetry as many corporations leave it at default or turn it of or worse (blocking by DNS, URL).
If you appreciate the idea I can share you my deployment code for the Deploy.ps1 so you don't have to do this.
Issues after deploy Azure Stack VMs in nested virtualization.
If the Hyper-V role can not be installed in WIndows Admin Center Wizard , shutdown the Azure Stack VMs an open an Powershell "Set-VMProcessor -VMName -ExposeVirtualizationExtensions $true" for both VMs an ry again. It should work.
Dear @jaromirk I tried to deploy network HUD, yet it does not setup correctly (eventually not anymore).
This issue might appear:
https://techcommunity.microsoft.com/t5/networking-blog/network-hud-november-2022-content-update-has-arrived/bc-p/3877426/highlight/true#M566
Hello Jaroslav,
I am following your lab scenario for AVD on Azure Arc.
I am in the part, where I am supposed to create VMs for each node in cluster, but I am getting error.
"The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept"
It is for each VM on each cluster node.
My lab is on HyperV, 2 nod cluster.
Regards
Stanislav
Converting volumes instead of recreating volumes should be added.
https://github.com/DellGEOS/AzureStackHOLs/tree/main/lab-guides/07-ExpandingAzureStackHCICluster
added PR #58 to align with recent changes, otherwise the command will fail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.