def ListInstances(args: 'argparse.Namespace') -> None:
  """List instances in Azure subscription.

  Args:
    args (argparse.Namespace): Arguments from ArgumentParser.
  """

  az_account = account.AZAccount(args.default_resource_group_name)
  instances = az_account.compute.ListInstances(
      resource_group_name=args.resource_group_name)

  logger.info('Instances found:')
  for instance in instances.values():
    boot_disk = instance.GetBootDisk()
    logger.info(
        'Name: {0:s}, Boot disk: {1:s}'.format(instance.name, boot_disk.name))
List instances in Azure subscription.

Args:
args (argparse.Namespace): Arguments from ArgumentParser.
tools/az_cli.py