def do_get_next(endpoint, access_token):
headers = {"<STR_LIT>": '<STR_LIT>' + access_token}<EOL>headers['<STR_LIT>'] = get_user_agent()<EOL>looping = True<EOL>value_list = []<EOL>vm_dict = {}<EOL>while looping:<EOL><INDENT>get_return = requests.get(endpoint, headers=headers).json()<EOL>if not '<STR_LIT:value>' in get_return:<EOL><INDENT>return get_return<EOL><DEDENT>if not '<STR_LIT>' in get_return:<EOL><INDENT>looping = False<EOL><DEDENT>else:<EOL><INDENT>endpoint = get_return['<STR_LIT>']<EOL><DEDENT>value_list += get_return['<STR_LIT:value>']<EOL><DEDENT>vm_dict['<STR_LIT:value>'] = value_list<EOL>return vm_dict<EOL>
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.