Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Onboard new server remotly
$ADTieringLevel = Get-ADTieringLevel -ServerName $ServerName
$Tags = @{
"ADTieringLevel" = $ADTieringLevel;
}
$ResourceGroup = "RG-PROD-IT-AZURE-ARC-WE"
$Location = "West Europe"
$ARCOnboardingInfo = @{
ResourceGroupName = $ResourceGroup
Name = $ServerName
Location = $Location
PSSession = $PSRemoteSession
Tag = $Tags
}
Connect-AzConnectedMachine @ARCOnboardingInfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment