From 64a314a222fc99389a48f9eadb2f2fd85fd89f01 Mon Sep 17 00:00:00 2001 From: David Url Date: Sat, 6 Oct 2018 02:47:52 +0200 Subject: [PATCH] Dont set default distro when OSType is Windows (#3950) --- pkg/acsengine/defaults.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/acsengine/defaults.go b/pkg/acsengine/defaults.go index 5a8e6aaa8..9bb43a129 100644 --- a/pkg/acsengine/defaults.go +++ b/pkg/acsengine/defaults.go @@ -446,7 +446,7 @@ func setAgentProfileDefaults(a *api.Properties, isUpgrade, isScale bool) { profile.AcceleratedNetworkingEnabledWindows = helpers.PointerToBool(api.DefaultAcceleratedNetworkingWindowsEnabled) } - if profile.Distro == "" { + if profile.Distro == "" && profile.OSType != api.Windows { if a.OrchestratorProfile.IsKubernetes() { if profile.OSDiskSizeGB != 0 && profile.OSDiskSizeGB < api.VHDDiskSizeAKS { profile.Distro = api.Ubuntu