def METHOD_NAME(zone_or_region):
  """Returns the Availability Zone from a zone."""
  if IsZone(zone_or_region):
    return zone_or_region[-1]
  if _IsRegion(zone_or_region):
    return None
  raise ValueError('%s is not a valid Azure zone' % zone_or_region)