From 0d39052500f274b166ff33f3364cf00521379e02 Mon Sep 17 00:00:00 2001 From: Rohit Date: Wed, 18 Dec 2019 21:41:18 -0800 Subject: [PATCH] fix scale up case for windows vhd case. --- cmd/scale.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/scale.go b/cmd/scale.go index b1b3890741..c2f126c0cf 100644 --- a/cmd/scale.go +++ b/cmd/scale.go @@ -269,7 +269,7 @@ func (sc *scaleCmd) run(cmd *cobra.Command, args []string) error { } osPublisher := vm.StorageProfile.ImageReference.Publisher - if osPublisher != nil && strings.EqualFold(*osPublisher, "MicrosoftWindowsServer") { + if osPublisher != nil && (strings.EqualFold(*osPublisher, "MicrosoftWindowsServer") || strings.EqualFold(*osPublisher, "microsoft-aks")) { _, _, winPoolIndex, index, err = utils.WindowsVMNameParts(vmName) } else { _, _, index, err = utils.K8sLinuxVMNameParts(vmName) @@ -390,7 +390,7 @@ func (sc *scaleCmd) run(cmd *cobra.Command, args []string) error { } osPublisher := vmss.VirtualMachineProfile.StorageProfile.ImageReference.Publisher - if osPublisher != nil && strings.EqualFold(*osPublisher, "MicrosoftWindowsServer") { + if osPublisher != nil && (strings.EqualFold(*osPublisher, "MicrosoftWindowsServer") || strings.EqualFold(*osPublisher, "microsoft-aks")) { _, _, winPoolIndex, _, err = utils.WindowsVMNameParts(vmName) log.Errorln(err) }