code: def subscription_get(subscription_id=None, **kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      Get details about a subscription.
  
      :param subscription_id: The ID of the subscription to query.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.subscription_get XXXXXXXX
  
      '''
      result = {}
  
      if not subscription_id:
          subscription_id = kwargs.get('subscription_id')
      elif not kwargs.get('subscription_id'):
          kwargs['subscription_id'] = subscription_id
  
      subconn = __utils__['azurearm.get_client']('subscription', **kwargs)
      try:
          subscription = subconn.subscriptions.get(
              subscription_id=kwargs.get('subscription_id')
          )
  
          result = subscription.as_dict()
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
          result = {'error': str(exc)}
  
      return resulf subscription_get(subscription_id=None, **kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      Get details about a subscription.
  
      :param subscription_id: The ID of the subscription to query.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.subscription_get XXXXXXXX
  
      '''
      result = {}
  
      if not subscription_id:
          subscription_id = kwargs.get('subscription_id')
      elif not kwargs.get('subscription_id'):
          kwargs['subscription_id'] = subscription_id
  
      subconn = __utils__['azurearm.get_client']('subscription', **kwargs)
      try:
          subscription = subconn.subscriptions.get(
              subscription_id=kwargs.get('subscription_id')
          )
  
          result = subscription.as_dict()
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
          result = {'error': str(exc)}
  
      return result
docs: .. versionadded:: 2019.2.0
  
      Get details about a subscription.
  
      :param subscription_id: The ID of the subscription to query.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.subscription_get XXXXXXXX