  def testDiskCopy(self):
    """End to end test on Azure.

    Test copying a specific disk.
    """

    if not self.disk_to_copy:
      return

    disk_copy = self._RunCreateDiskCopy(disk_name=self.disk_to_copy)
    # The disk should be present in Azure
    remote_disk = self.az.compute.compute_client.disks.get(
        disk_copy.resource_group_name, disk_copy.name)
    self.assertIsNotNone(remote_disk)
    self.assertEqual(disk_copy.name, remote_disk.name)

    # Since we make a copy of the same disk but in a different region in next
    # test, we need to delete the copy we just created as Azure does not
    # permit same-name disks in different regions.
    operation = self.az.compute.compute_client.disks.begin_delete(
        disk_copy.resource_group_name, disk_copy.name)
    # Delete operation takes some time to propagate within Azure, which in
    # some cases causes the next test to fail. Therefore we have to wait for
    # completion.
    while not operation.done():
      sleep(30)
End to end test on Azure.

Test copying a specific disk.
tests/providers/azure/e2e_cli.py