Deploy HCX to AVS via Powershell

Quick post today. I was looking for how to deploy HCX via powershell to my AVS cloud. There didn’t seem to be any examples and the documentation was hard to read. So in case someone else needs it:

$hcxProperties = New-Object -type "Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20211201.AddonHcxProperties"
$hcxProperties.AddonType= "hcx"
$hcxProperties.Offer = "VMware MaaS Cloud Provider (Enterprise)"
New-AzVMwareAddon -PrivateCloudName $pcName -ResourceGroupName $rgName -SubscriptionId $subid -Property $hcxProperties

Not to hard just not well documented. You will need to set your environmental variables correctly.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: