def _Create(self):

    if self.disk_type == PREMIUM_STORAGE:
      assert FLAGS.azure_storage_type == azure_flags.PLRS
    else:
      assert FLAGS.azure_storage_type != azure_flags.PLRS

    with self._lock:
      create_cmd = [AZURE_PATH,
                    'vm',
                    'disk',
                    'attach-new',
                    '--host-caching=%s' % self.host_caching,
                    self.vm_name,
                    str(self.disk_size)]
      vm_util.IssueRetryableCommand(create_cmd)

      if self.vm_name not in AzureDisk.num_disks:
        AzureDisk.num_disks[self.vm_name] = 0
      self.lun = AzureDisk.num_disks[self.vm_name]
      AzureDisk.num_disks[self.vm_name] += 1
      self.created = True
Test searching ASNs.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/azure/azure_disk.py/AzureDisk._Create--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py/NipapTest.test_search_asn