def create_cosmosdb_account(access_token, subscription_id, rgname, account_name, location,<EOL>cosmosdb_kind):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', rgname,<EOL>'<STR_LIT>', account_name,<EOL>'<STR_LIT>', COSMOSDB_API])<EOL>cosmosdb_body = {'<STR_LIT:location>': location,<EOL>'<STR_LIT>': cosmosdb_kind,<EOL>'<STR_LIT>': {'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': [{'<STR_LIT>': <NUM_LIT:0>,<EOL>'<STR_LIT>': location}]}}<EOL>body = json.dumps(cosmosdb_body)<EOL>return do_put(endpoint, body, access_token)<EOL>
Create a new Cosmos DB account in the named resource group, with the named location.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        rgname (str): Azure resource group name.
        account_name (str): Name of the new Cosmos DB account.
        location (str): Azure data center location. E.g. westus.
        cosmosdb_kind (str): Database type. E.g. GlobalDocumentDB.

    Returns:
        HTTP response. JSON body of storage account properties.