From f156b02d3c84c20f611e3d29e59c52e4625a7472 Mon Sep 17 00:00:00 2001 From: Michal Jura Date: Tue, 1 Jun 2021 15:37:31 +0200 Subject: [PATCH] Add availability zones in node pools It was missing AvailabilityZones option in CreateOrUpdateAgentPool --- pkg/aks/create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/aks/create.go b/pkg/aks/create.go index 9a96eee1..b0051569 100644 --- a/pkg/aks/create.go +++ b/pkg/aks/create.go @@ -209,6 +209,7 @@ func CreateOrUpdateAgentPool(ctx context.Context, agentPoolClient *containerserv Mode: containerservice.AgentPoolMode(np.Mode), Type: containerservice.VirtualMachineScaleSets, OrchestratorVersion: np.OrchestratorVersion, + AvailabilityZones: np.AvailabilityZones, EnableAutoScaling: np.EnableAutoScaling, MinCount: np.MinCount, MaxCount: np.MaxCount,