code: def list_storage_accounts(call=None):
      '''
      List storage accounts within the subscription.
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_storage_accounts function must be called with '
              '-f or --function'
          )
  
      storconn = get_conn(client_type='storage')
  
      ret = {}
      try:
          accounts_query = storconn.storage_accounts.list()
          accounts = __utils__['azurearm.paged_object_to_list'](accounts_query)
          for account in accounts:
              ret[account['name']] = account
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('storage', exc.message)
          ret = {'Error': exc.message}
  
      return ref list_storage_accounts(call=None):
      '''
      List storage accounts within the subscription.
      '''
      if call == 'action':
          raise SaltCloudSystemExit(
              'The list_storage_accounts function must be called with '
              '-f or --function'
          )
  
      storconn = get_conn(client_type='storage')
  
      ret = {}
      try:
          accounts_query = storconn.storage_accounts.list()
          accounts = __utils__['azurearm.paged_object_to_list'](accounts_query)
          for account in accounts:
              ret[account['name']] = account
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('storage', exc.message)
          ret = {'Error': exc.message}
  
      return ret
docs: List storage accounts within the subscription.