  def GetBootDisk(self) -> 'AZComputeDisk':
    """Get the instance's boot disk.

    Returns:
      AZComputeDisk: Disk object if the disk is found.

    Raises:
      ResourceNotFoundError: If no boot disk could be found.
    """
    # pylint: disable=line-too-long
    disks = self.az_account.compute.ListDisks(
        resource_group_name=self.resource_group_name)  # type: Dict[str, AZComputeDisk]
    # pylint: enable=line-too-long
    boot_disk_name = self.compute_client.virtual_machines.get(
        self.resource_group_name, self.name).storage_profile.os_disk.name
    if boot_disk_name not in disks:
      raise errors.ResourceNotFoundError(
          'Boot disk not found for instance {0:s}'.format(self.resource_id),
          __name__)
    return disks[boot_disk_name]
Get the instance's boot disk.

Returns:
AZComputeDisk: Disk object if the disk is found.

Raises:
ResourceNotFoundError: If no boot disk could be found.
libcloudforensics/providers/azure/internal/compute.py