다음을 통해 공유


ApplicationProfile.WindowsApplicationProfile [SPFSDK][VMROLE]

 

적용 대상: Windows Azure Pack

ApplicationProfile.WindowsApplicationProfile 개체는 프로비전될 때 Windows 기반 가상 머신을 구성하는 설정을 제공합니다.

형식 계층 구조

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

구문

"ApplicationProfile": {

    ...

    "WindowsApplicationProfile": {
        "WindowsServerRolesAndFeatures": [
            "string",
            "string",
            "string",
            ...
        ],

        "SQLProfile": <SQLProfile>
        "ProvisioningScripts": [
            <Script>
        ],
        "WebDeployApplications": [
            <WebDeployApplication>
        ],

        "SQLDacApplications": [
             <SQLDacApplication>
        ],

        "ScriptApplications": [
              <ScriptApplication>
        ]
    }
}

속성

이름

유형

필수

기본값

Description

WindowsServerRolesAndFeatures

문자열 배열

아니요

null

설치할 서버 역할 및 기능을 Windows. 유효한 값 목록은 Windows 서버 역할 및 기능 [SPFSDK][VMROLE]을 참조하세요.

SQLProfile

SQLProfile [SPFSDK][VMROLE]

아니요

null

sysprep을 사용하여 가상 머신에서 SQL Server 인스턴스를 구성하기 위한 지침입니다.

ProvisioningScripts

스크립트 배열 [SPFSDK][VMROLE]

아니요

null

가상 머신이 프로비전되는 동안 실행되는 스크립트입니다.

WebDeployApplications

WebDeployApplication의 배열 [SPFSDK][VMROLE]

아니요

null

가상 머신이 프로비전되는 동안 설치할 웹 배포 패키지입니다.

SQLDacApplications

SQLDacApplication의 배열 [SPFSDK][VMROLE]

아니요

null

가상 머신이 프로비전되는 동안 설치할 DAC(데이터 계층 애플리케이션)를 SQL Server.

ScriptApplications

ScriptApplication 배열 [SPFSDK][VMROLE]

아니요

null

가상 머신이 프로비전되는 동안 설치할 애플리케이션처럼 처리되는 많은 스크립트의 그룹화입니다.

중요

배열의 단일 항목만 현재 지원됩니다.

설명

다음 코드 예제에서는 샘플 ApplicationProfile.WindowsApplicationProfile 개체를 제공합니다.

"ApplicationProfile": {
    "Name": "ApplicationProfile1",

    "ApplicationPayload": [
        {
            "ID": "49c1ccdb-9068-4b91-9409-0a7ca8a1d291",
            "RelativePath": "sharepointfiles"
        }
    ],

    "WindowsApplicationProfile": {
        "WindowsServerRolesAndFeatures": [
            "TFTP-Client"
        ],

        "SQLProfile": {
            "SQLDeployments": [
                {
                    "DeploymentName": "SQL Deployment 1",
                    "InstanceName": "[Param.SQLInstance]",
                    "InstanceID": "[Param.SQLInstance]",
                    "EnableNamedPipes": false,
                    "EnableTCP": true,
                    "MediaSource": "c:\\SQLMediaPath\\sqlsetup.exe",
                    "ProductKey": "abcdefghijklmnopqrstuvwxyz",
                    "SQLAuthenticationType": "WindowsAuthentication",
                    "SQLSysAdminMemberList": "domain\\user",
                    "DeploymentTimeOutInSeconds": 3600,
                    "SQLConfigurationPayloadId": "61A33949-46CE-4d0f-921F-A0059DA9AD1F",
                    "SAPassword": "MySAPassword",

                    "SQLDeploymentCredential": "domain\\user:password",
                    "SQLAgentServiceCredential": "NT AUTHORITY\\System:",
                    "SQLServiceCredential": "NT AUTHORITY\\NetworkService:",
                    "SQLReportingServiceCredential": "domain\\user:password"
                }
            ]
        },

        "ProvisioningScripts": [
            {
                "AlwaysReboot": false,
                "ApplicationPayloadId": "49c1ccdb-9068-4b91-9409-0a7ca8a1d291",
                "DeploymentOrder": 1,
                "ErrorPolicy": "FailOnMatch",
                "ExecutableAndParams": {
                    "Executable": "cmd.exe",
                    "Parameters": "/q /c msiexec sharepoint.msi"
                },
                "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
            }
        ],
        "WebDeployApplications": [
            {
                "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]"
                    }
                ]
            }
        ],

        "SQLDacApplications": [
            {
                "DeploymentName": "SQL App 1",

                "ScriptCommands": [
                    {
                        "AlwaysReboot": false,
                        "ApplicationPayloadId": null,
                        "ErrorPolicy": "FailOnMatch",
                        "ExecutableAndParams": null,
                        "ExitCodeRegex": "[1-9][0-9]*",
                        "MaxOutputSize": 1048576,
                        "RebootExitCodeRegex": "{1641}|{3010}|{3011}",
                        "RestartOnRetry": false,
                        "ScriptBlock": "rem some script that needs to run before sqldac package is installed",
                        "ScriptCredential": {
                            "Password": "mypassword4",
                            "UserName": "dcmanagerlab\\esdcvsec4"
                        },
                        "ScriptType": "PreInstall",
                        "StandardErrorPath": "c:\\err.txt",
                        "StandardErrorRegex": ".+",
                        "StandardInput": null,
                        "StandardOutputPath": "c:\\out.txt",
                        "StandardOutputRegex": null,
                        "TimeoutInSeconds": 900,
                        "WorkingDirectory": null
                    }
                ],

                "SQLScriptCommands": [
                    {
                        "DatabaseName": "[Param.SharepointDB]",
                        "DeploymentOrder": 1,
                        "EncryptConnection": false,
                        "ExecutionTimeoutSeconds": 500,
                        "LoginTimeoutSeconds": 50,
                        "OutputFilePath": "c:\\sharepointDB.sql.log",
                        "SQLAuthenticationType": "WindowsAuthentication",
                        "SQLScriptApplicationPayloadId": "db04416b-d0a8-44d5-b0ee-d5739378a98d",
                        "ScriptCredential": "[Param.SQLScriptCommandCredential]",
                        "ScriptType": "PostInstall"
                    }
                ],

                "DeploymentName": "Deployment1",
                "ApplicationPayloadId": "5b064b6a-d6d0-48f0-8979-9aafc676a9e5",
                "BlockOnChanges": false,
                "DacInstance": "[Param.SharepointDB]",
                "IgnoreDataLoss": false,
                "RollbackOnFailure": true,
                "SQLAuthenticationType": "WindowsAuthentication",

                "SQLDeploymentCredential": "[param.SQLDeploymentCredential]",

                "SQLInstance": "[Param.SQLInstance]",
                "SkipPolicyValidation": true,
                "UninstallMode": "DropDatabase"
            }
        ],

        "ScriptApplications": [
            {
                "DeploymentName": "ScriptDeployment1",

                "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:mypassword",
                        "ScriptType": "PreInstall",
                        "StandardErrorPath": "c:\err.txt",
                        "StandardErrorRegex": ".+",
                        "StandardInput": null,
                        "StandardOutputPath": "c:\out.txt",
                        "StandardOutputRegex": null,
                        "TimeoutInSeconds": 900,
                        "WorkingDirectory": null
                    }
                ],

                "EnvironmentVariables": [
                    {
                        "Name": "envvar1",
                        "Value": "foo",
                    },
                    {
                        "Name": "envvar2",
                        "Value": "bar",
                    },
                ],

                "AlwaysReboot": false,
                "ApplicationPayloadId": "49c1ccdb-9068-4b91-9409-0a7ca8a1d291",
                "ErrorPolicy": "FailOnMatch",
                "ExecutableAndParams": {
                    "Executable": "cmd.exe",
                    "Parameters": "/q /c msiexec sharepoint.msi"
                },
                "ExitCodeRegex": "[1-9][0-9]*",
                "MaxOutputSize": 1048576,
                "RebootExitCodeRegex": "{1641}|{3010}|{3011}",
                "ScriptBlock": null,
                "ScriptCredential": "username:password",
                "StandardErrorPath": "c:\err.txt",
                "StandardErrorRegex": ".+",
                "StandardInput": null,
                "StandardOutputPath": "c:\out.txt",
                "StandardOutputRegex": null,
                "TimeoutInSeconds": 900,
                "WorkingDirectory": null
            }
        ]
    }
}

참고 항목

ExtensionSettings [SPFSDK][VMROLE]
SQLProfile [SPFSDK][VMROLE]
WebDeployApplication [SPFSDK][VMROLE]
SQLDacApplication [SPFSDK][VMROLE]
ScriptApplication [SPFSDK][VMROLE]
ApplicationProfile.LinuxApplicationProfile [SPFSDK][VMROLE]