only add the vnetCidr param if using Kubernetes
@@ -394,7 +394,9 @@ func getParameters(cs *api.ContainerService, isClassicMode bool) (paramsMap, err
if properties.MasterProfile != nil {
if properties.MasterProfile.IsCustomVNET() {
addValue(parametersMap, "masterVnetSubnetID", properties.MasterProfile.VnetSubnetID)
+ if properties.OrchestratorProfile.IsKubernetes() {
addValue(parametersMap, "vnetCidr", properties.MasterProfile.VnetCidr)
+ }
} else {
addValue(parametersMap, "masterSubnet", properties.MasterProfile.Subnet)
}
