def deploy_template(access_token, subscription_id, resource_group, deployment_name, template,<EOL>parameters):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', resource_group,<EOL>'<STR_LIT>', deployment_name,<EOL>'<STR_LIT>', DEPLOYMENTS_API])<EOL>properties = {'<STR_LIT>': template}<EOL>properties['<STR_LIT>'] = '<STR_LIT>'<EOL>properties['<STR_LIT>'] = parameters<EOL>template_body = {'<STR_LIT>': properties}<EOL>body = json.dumps(template_body)<EOL>return do_put(endpoint, body, access_token)<EOL>
Deploy a template referenced by a JSON string, with parameters as a JSON string.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        deployment_name (str): A name you give to the deployment.
        template (str): String representatipn of a JSON template body.
        parameters (str): String representation of a JSON template parameters body.

    Returns:
        HTTP response.