def create_storage_account(access_token, subscription_id, rgname, account_name, location,<EOL>storage_type='<STR_LIT>'):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', rgname,<EOL>'<STR_LIT>', account_name,<EOL>'<STR_LIT>', STORAGE_API])<EOL>storage_body = {'<STR_LIT:location>': location}<EOL>storage_body['<STR_LIT>'] = {'<STR_LIT:name>': storage_type}<EOL>storage_body['<STR_LIT>'] = '<STR_LIT>'<EOL>body = json.dumps(storage_body)<EOL>return do_put(endpoint, body, access_token)<EOL>
Create a new storage 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 storage account.
        location (str): Azure data center location. E.g. westus.
        storage_type (str): Premium or Standard, local or globally redundant.
            Defaults to Standard_LRS.

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