WebDeployApplication [SPFSDK][VMROLE]

 

适用于:Windows Azure Pack

WebDeployApplication 对象提供设置,用于在预配基于Windows的虚拟机时安装Microsoft SQL Server实例。

类型层次结构

ResourceExtension [SPFSDK][VMROLE].ExtensionSettings [SPFSDK][VMROLE].ApplicationProfile.WindowsApplicationProfile [SPFSDK][VMROLE]。WebDeployApplication

语法

{
    "DeploymentName": "string",

    "ScriptCommands": [
        <Script>
    ],

    "DeploymentName": "string",
    "ApplicationPayloadId": "string",
    "PackagePassword": "string",
    "WebDeployParameters": [
        <Parameter>
    ]
}

属性

名称

类型

必须

默认值

说明

DeploymentName

字符串

要部署的每个SQL Server实例的定义。

ApplicationPayloadId

字符串

ApplicationProfile.ApplicationPayload 项的标识符。 此有效负载必须指向 Web 部署.zip文件。

PackagePassword

字符串

Web 部署有效负载的密码(如果包含安全值)。

ScriptCommands

脚本数组 [SPFSDK][VMROLE]

Null

在安装过程中运行的脚本。

WebDeployParameters

参数和类型的数组 [SPFSDK][VMROLE]

Null

声明供部署使用的参数。

备注

下面的代码示例提供了一个 示例 WebDeployApplication 对象。

{
    "DeploymentName": "WebDeploy App 1",

    "ScriptCommands": [
        {
            "AlwaysReboot": false,
            "ApplicationPayloadId": "366819c2-bf11-4c85-9555- 6293e2a3ce7b",
            "ErrorPolicy": "FailOnMatch",
            "ExecutableAndParams": {
                "Executable": "cmd.exe",
                "Parameters": "/q /c installwebdeploy.cmd"
            },
            "ExitCodeRegex": "[1-9][0-9]*",
            "MaxOutputSize": 1048576,
            "RebootExitCodeRegex": "{1641}|{3010}|{3011}",
            "RestartOnRetry": false,
            "ScriptBlock": null,
            "ScriptCredential": "domain\\user:password",
            "ScriptType": "PreInstall",
            "StandardErrorPath": "c:\\err.txt",
            "StandardErrorRegex": ".+",
            "StandardInput": null,
            "StandardOutputPath": "c:\\out.txt",
            "StandardOutputRegex": null,
            "TimeoutInSeconds": 900,
            "WorkingDirectory": null
        }
    ],

    "DeploymentName": "Deployment1",
    "ApplicationPayloadId": "371ade4c-03a2-492d-9589-b399b940e44f",
    "PackagePassword": "mypassword2",
    "WebDeployParameters": [
        {
            "ParameterName": "CONNECTION_STRING",
            "Value": "[Param.ConnectionString]"
        }
    ]
}

另请参阅

ApplicationProfile.WindowsApplicationProfile [SPFSDK][VMROLE]
SQLProfile [SPFSDK][VMROLE]
SQLDacApplication [SPFSDK][VMROLE]
ScriptApplication [SPFSDK][VMROLE]
脚本 [SPFSDK][VMROLE]