Skip to content

Commit d8419f8

Browse files
authored
Merge pull request kubernetes#71941 from andyzhangx/azuredisk-hardware-profile
fix issue: vm sku restriction policy does not work in azure disk attach/detach
2 parents 9d80e75 + 7f3a66e commit d8419f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cloudprovider/providers/azure/azure_controller_standard.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func (as *availabilitySet) AttachDisk(isManagedDisk bool, diskName, diskURI stri
6868
newVM := compute.VirtualMachine{
6969
Location: vm.Location,
7070
VirtualMachineProperties: &compute.VirtualMachineProperties{
71+
HardwareProfile: vm.HardwareProfile,
7172
StorageProfile: &compute.StorageProfile{
7273
DataDisks: &disks,
7374
},
@@ -132,6 +133,7 @@ func (as *availabilitySet) DetachDiskByName(diskName, diskURI string, nodeName t
132133
newVM := compute.VirtualMachine{
133134
Location: vm.Location,
134135
VirtualMachineProperties: &compute.VirtualMachineProperties{
136+
HardwareProfile: vm.HardwareProfile,
135137
StorageProfile: &compute.StorageProfile{
136138
DataDisks: &disks,
137139
},

0 commit comments

Comments
 (0)