Use FirstConsecutiveStaticIP in original API model instead of resetting it to default during upgrade.
@@ -471,7 +471,9 @@ func setMasterNetworkDefaults(a *api.Properties) {
if a.OrchestratorProfile.IsAzureCNI() {
// When VNET integration is enabled, all masters, agents and pods share the same large subnet.
a.MasterProfile.Subnet = a.OrchestratorProfile.KubernetesConfig.ClusterSubnet
+ if len(a.MasterProfile.FirstConsecutiveStaticIP) == 0 {
a.MasterProfile.FirstConsecutiveStaticIP = getFirstConsecutiveStaticIPAddress(a.MasterProfile.Subnet)
+ }
} else {
a.MasterProfile.Subnet = DefaultKubernetesMasterSubnet
a.MasterProfile.FirstConsecutiveStaticIP = DefaultFirstConsecutiveKubernetesStaticIP
