def create_resource_group(access_token, subscription_id, rgname, location):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', rgname,<EOL>'<STR_LIT>', RESOURCE_API])<EOL>rg_body = {'<STR_LIT:location>': location}<EOL>body = json.dumps(rg_body)<EOL>return do_put(endpoint, body, access_token)<EOL>
Create a resource group in the specified location.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        rgname (str): Azure resource group name.
        location (str): Azure data center location. E.g. westus.

    Returns:
        HTTP response. JSON body.