Prepare Active Directory for Azure Stack HCI Deployment - 22H2 (Outdated)

This article has not been completed yet. However, it may already contain   helpful Information and therefore it has been published at this stage

Install-Module AsHciADArtifactsPreCreationTool -Repository PSGallery
Add-KdsRootKey -EffectiveTime ((Get-Date).addhours(-10))
New-HciAdObjectsPreCreation -Deploy -AzureStackLCMUserCredential (Get-Credential) -AsHciOUName "OU=HCI,DC=hci,DC=it-infrastructure,DC=solutions" -AsHciPhysicalNodeList @("AZNODE5", "AZNODE6") -DomainFQDN "hci.it-infrastructure.solutions" -AsHciClusterName "AZCL1" -AsHciDeploymentPrefix "AZ"

# OU=HCI,DC=hci,DC=it-infrastructure,DC=solutions
# AZNODE5, AZNODE6
# hci.it-infrastructure.solutions
# AZCL1
# AZ

References:

Prepare Active Directory for new Azure Stack HCI deployments (preview) - Azure Stack HCI
Learn how to prepare Active Directory before you deploy Azure Stack HCI (preview).