code: def do_get_next(endpoint, access_token):
      '''Do an HTTP GET request, follow the nextLink chain and return JSON.
  
      Args:
          endpoint (str): Azure Resource Manager management endpoint.
          access_token (str): A valid Azure authentication token.
  
      Returns:
          HTTP response. JSON body.
      '''
      headers = {"Authorization": 'Bearer ' + access_token}
      headers['User-Agent'] = get_user_agent()
      looping = True
      value_list = []
      vm_dict = {}
      while looping:
          get_return = requests.get(endpoint, headers=headers).json()
          if not 'value' in get_return:
              return get_return
          if not 'nextLink' in get_return:
              looping = False
          else:
              endpoint = get_return['nextLink']
          value_list += get_return['value']
      vm_dict['value'] = value_list
      return vm_dicf do_get_next(endpoint, access_token):
      '''Do an HTTP GET request, follow the nextLink chain and return JSON.
  
      Args:
          endpoint (str): Azure Resource Manager management endpoint.
          access_token (str): A valid Azure authentication token.
  
      Returns:
          HTTP response. JSON body.
      '''
      headers = {"Authorization": 'Bearer ' + access_token}
      headers['User-Agent'] = get_user_agent()
      looping = True
      value_list = []
      vm_dict = {}
      while looping:
          get_return = requests.get(endpoint, headers=headers).json()
          if not 'value' in get_return:
              return get_return
          if not 'nextLink' in get_return:
              looping = False
          else:
              endpoint = get_return['nextLink']
          value_list += get_return['value']
      vm_dict['value'] = value_list
      return vm_dict
docs: Do an HTTP GET request, follow the nextLink chain and return JSON.
  
      Args:
          endpoint (str): Azure Resource Manager management endpoint.
          access_token (str): A valid Azure authentication token.
  
      Returns:
          HTTP response. JSON body.