From 24b09a80cb0410730972158b6a124aed6b11e113 Mon Sep 17 00:00:00 2001 From: Brian Lieberman Date: Thu, 14 Jul 2022 16:29:27 -0400 Subject: [PATCH] set proper property --- azure/services/scalesets/scalesets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure/services/scalesets/scalesets.go b/azure/services/scalesets/scalesets.go index b599059897c..7f865d6301f 100644 --- a/azure/services/scalesets/scalesets.go +++ b/azure/services/scalesets/scalesets.go @@ -532,7 +532,7 @@ func (s *Service) buildVMSSFromSpec(ctx context.Context, vmssSpec azure.ScaleSet } if i == 0 { ipconfigs[0].LoadBalancerBackendAddressPools = &backendAddressPools - nicConfig.Primary = to.BoolPtr(true) + nicConfig.VirtualMachineScaleSetNetworkConfigurationProperties.Primary = to.BoolPtr(true) } ipconfigs[0].Primary = to.BoolPtr(true) nicConfig.VirtualMachineScaleSetNetworkConfigurationProperties.IPConfigurations = &ipconfigs