code: def policy_assignments_list(**kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      List all policy assignments for a subscription.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.policy_assignments_list
  
      '''
      result = {}
      polconn = __utils__['azurearm.get_client']('policy', **kwargs)
      try:
          policy_assign = __utils__['azurearm.paged_object_to_list'](polconn.policy_assignments.list())
  
          for assign in policy_assign:
              result[assign['name']] = assign
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
          result = {'error': str(exc)}
  
      return resulf policy_assignments_list(**kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      List all policy assignments for a subscription.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.policy_assignments_list
  
      '''
      result = {}
      polconn = __utils__['azurearm.get_client']('policy', **kwargs)
      try:
          policy_assign = __utils__['azurearm.paged_object_to_list'](polconn.policy_assignments.list())
  
          for assign in policy_assign:
              result[assign['name']] = assign
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
          result = {'error': str(exc)}
  
      return result
docs: .. versionadded:: 2019.2.0
  
      List all policy assignments for a subscription.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.policy_assignments_list