Pipelines/Steps/Install/OnPrem/Sitecore/XP/Scaled/9.2/0/sitecore-XP1-cm-dds-patch.json

{
    "Parameters": {
        "Package": {
            "Type": "string",
            "Description": "The path to the patch Web Deploy package to deploy.",
            "DefaultValue": ""
        },
        "SiteName": {
            "Type": "string",
            "DefaultValue": "SitecoreCM",
            "Description": "The name of the CM site to be patched."
        },
        "EXMCryptographicKey": {
            "Type": "string",
            "DefaultValue": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "Description": "64 digits hexadecimal EXM Cryptographic Key."
        },
        "EXMAuthenticationKey": {
            "Type": "string",
            "DefaultValue": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "Description": "64 digits hexadecimal EXM Authentication Key."
        },
        "EXMInternalApiKey": {
            "Type": "string",
            "DefaultValue": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "Description": "64 digits hexadecimal EXM Internal API Key."
        },
        "DedicatedDispatchService": {
            "Type": "string",
            "DefaultValue": "/sitecore%20modules/web/exm/dedicateddispatchservice.asmx",
            "Description": "Dedicated Dispatch Service Path."
        },
        "DedicatedServerHostName": {
            "Type": "string",
            "DefaultValue": "",
            "Description": "Dedicated Server Host Name."
        }
    },
    "Variables": {
        "Site.PhysicalPath": "[joinpath(environment('SystemDrive'), 'inetpub', 'wwwroot', parameter('SiteName'))]",
        "Site.DataFolder": "[joinpath(variable('Site.PhysicalPath'), 'App_Data')]"
    },
    "Tasks": {
          "InstallDDSPatchWDP": {
            "Description": "Syncs the web deploy package with the website",
            "Type": "WebDeploy",
            "Params" : {
                "Verb": "Sync",
                "Arguments": {
                    "Source": {
                        "Package": "[resolvepath(parameter('Package'))]"
                    },
                    "Dest": "Auto",
                              "enableRule": "DoNotDeleteRule",
                    "SetParam": [
                        { "Name": "Application Path", "Value": "[parameter('SiteName')]" },
                        { "Name": "EXM Cryptographic Key", "Value": "[parameter('EXMCryptographicKey')]" },
                        { "Name": "EXM Authentication Key", "Value": "[parameter('EXMAuthenticationKey')]" },
                        { "Name": "EXM Internal Api Key", "Value": "[parameter('EXMInternalApiKey')]" },
                        { "Name": "Dedicated Dispatch Service", "Value": "[parameter('DedicatedDispatchService')]" },
                        { "Name": "Dedicated Server Host Name", "Value": "[parameter('DedicatedServerHostName')]" }
                    ]
                }
            }
        },
        "TransformXmlDocuments": {
            "Type": "TransformXmlDoc",
            "Params":{
                "RootDirectoryPath": "[variable('Site.PhysicalPath')]",
                "XdtDirectory": "[joinpath(variable('Site.DataFolder'), 'Transforms', 'EXM', 'xdts')]"
            }
        }
    }
}