docs: def create_service(kwargs=None, conn=None, call=None):
      '''
      .. versionadded:: 2015.8.0
  
      Create a new hosted service
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -f create_service my-azure name=my_service label=my_service location='West US'
      '''
      if call != 'function':
          raise SaltCloudSystemExit(
              'The create_service function must be called with -f or --function.'
          )
  
      if not conn:
          conn = get_conn()
  
      if kwargs is None:
          kwargs = {}
  
      if 'name' not in kwargs:
          raise SaltCloudSystemExit('A name must be specified as "name"')
  
      if 'label' not in kwargs:
          raise SaltCloudSystemExit('A label must be specified as "label"')
  
      if 'location' not in kwargs and 'affinity_group' not in kwargs:
          raise SaltCloudSystemExit('Either a location or an affinity_group '
                                    'must be specified (but not both)')
  
      try:
          data = conn.create_hosted_service(
              kwargs['name'],
              kwargs['label'],
              kwargs.get('description', None),
              kwargs.get('location', None),
              kwargs.get('affinity_group', None),
              kwargs.get('extended_properties', None),
          )
          return {'Success': 'The service was successfully created'}
      except AzureConflictHttpError:
          raise SaltCloudSystemExit('There was a conflict. This usually means that the service already exists.')