code: def detach_model(vmssvm_model, lun):
      '''Detach a data disk from a VMSS VM model'''
      data_disks = vmssvm_model['properties']['storageProfile']['dataDisks']
      data_disks[:] = [disk for disk in data_disks if disk.get('lun') != lun]
      vmssvm_model['properties']['storageProfile']['dataDisks'] = data_disks
      return vmssvm_modef detach_model(vmssvm_model, lun):
      '''Detach a data disk from a VMSS VM model'''
      data_disks = vmssvm_model['properties']['storageProfile']['dataDisks']
      data_disks[:] = [disk for disk in data_disks if disk.get('lun') != lun]
      vmssvm_model['properties']['storageProfile']['dataDisks'] = data_disks
      return vmssvm_model
docs: Detach a data disk from a VMSS VM model