lib/azure/armrest/virtual_machine_service.rb
# This deletes any attached data disks that are associated with the
# virtual machine. Note that this should only happen after the VM
# has been deleted.
#
This deletes any attached data disks that are associated with the
virtual machine. Note that this should only happen after the VM
has been deleted.
This deletes any attached data disks that are associated with the virtual machine . Note that this should only happen after the VM has been deleted .
def delete_associated_data_disks(vm, options)
        sds = Azure::Armrest::Storage::DiskService.new(configuration)
        data_disks = vm.properties.storage_profile.try(:data_disks)
        data_disks&.each do |data_disk|
          disk = sds.get_by_id(data_disk.managed_disk.id)
          delete_and_wait(sds, disk.name, disk.resource_group, options)
        end
      end
def delete_associated_data_disks ( vm , options ) sds = Azure :: Armrest :: Storage :: DiskService . new ( configuration ) data_disks = vm . properties . storage_profile . try ( :data_disks ) data_disks &. each do | data_disk | disk = sds . get_by_id ( data_disk . managed_disk . id ) delete_and_wait ( sds , disk . name , disk . resource_group , options ) end end
This deletes any attached data disks that are associated with the
virtual machine.
This deletes any attached data disks that are associated with the virtual machine .
vm
<not_specific>
options
<not_specific>