From 8013535310450054b3ae1f46a41de995786948d3 Mon Sep 17 00:00:00 2001 From: Anubhuti Date: Fri, 1 Jun 2018 16:16:47 -0700 Subject: [PATCH] Merge AADProfile during update --- pkg/api/agentPoolOnlyApi/v20180331/merge.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/api/agentPoolOnlyApi/v20180331/merge.go b/pkg/api/agentPoolOnlyApi/v20180331/merge.go index 03ecf3dc82..e72b9610bc 100644 --- a/pkg/api/agentPoolOnlyApi/v20180331/merge.go +++ b/pkg/api/agentPoolOnlyApi/v20180331/merge.go @@ -37,5 +37,9 @@ func (mc *ManagedCluster) Merge(emc *ManagedCluster) error { // For update scenario, the default behavior is to use existing behavior mc.Properties.NetworkProfile = emc.Properties.NetworkProfile } + if mc.Properties.AADProfile == nil { + // For update scenario, the default behavior is to use existing behavior + mc.Properties.AADProfile = emc.Properties.AADProfile + } return nil }