diff --git a/pkg/model/azuremodel/vmscaleset.go b/pkg/model/azuremodel/vmscaleset.go index dbf17be76b..7f62b013ca 100644 --- a/pkg/model/azuremodel/vmscaleset.go +++ b/pkg/model/azuremodel/vmscaleset.go @@ -192,9 +192,9 @@ func getStorageProfile(spec *kops.InstanceGroupSpec) (*compute.VirtualMachineSca } return &compute.VirtualMachineScaleSetStorageProfile{ - ImageReference: imageReference, + DiskControllerType: fi.PtrTo(string(compute.SCSI)), + ImageReference: imageReference, OsDisk: &compute.VirtualMachineScaleSetOSDisk{ - // TODO(kenji): Support Windows. OsType: compute.OperatingSystemTypes(compute.Linux), CreateOption: compute.DiskCreateOptionTypesFromImage, DiskSizeGB: to.Int32Ptr(volumeSize), diff --git a/pkg/model/azuremodel/vmscaleset_test.go b/pkg/model/azuremodel/vmscaleset_test.go index 820ae97510..51b94fc4f1 100644 --- a/pkg/model/azuremodel/vmscaleset_test.go +++ b/pkg/model/azuremodel/vmscaleset_test.go @@ -154,6 +154,7 @@ func TestGetStorageProfile(t *testing.T) { }, }, profile: &compute.VirtualMachineScaleSetStorageProfile{ + DiskControllerType: fi.PtrTo(string(compute.SCSI)), ImageReference: &compute.ImageReference{ Publisher: to.StringPtr("Canonical"), Offer: to.StringPtr("UbuntuServer"), @@ -177,6 +178,7 @@ func TestGetStorageProfile(t *testing.T) { Role: kops.InstanceGroupRoleControlPlane, }, profile: &compute.VirtualMachineScaleSetStorageProfile{ + DiskControllerType: fi.PtrTo(string(compute.SCSI)), ImageReference: &compute.ImageReference{ Publisher: to.StringPtr("Canonical"), Offer: to.StringPtr("UbuntuServer"),