docs: def create_as(access_token, subscription_id, resource_group, as_name,
                update_domains, fault_domains, location):
      '''Create availability set.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          resource_group (str): Azure resource group name.
          as_name (str): Name of the new availability set.
          update_domains (int): Number of update domains.
          fault_domains (int): Number of fault domains.
          location (str): Azure data center location. E.g. westus.
  
      Returns:
          HTTP response. JSON body of the availability set properties.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourceGroups/', resource_group,
                          '/providers/Microsoft.Compute/availabilitySets/', as_name,
                          '?api-version=', COMP_API])
      as_body = {'location': location}
      properties = {'platformUpdateDomainCount': update_domains}
      properties['platformFaultDomainCount'] = fault_domains
      as_body['properties'] = properties
      body = json.dumps(as_body)
      return do_put(endpoint, body, access_token)