templates/webapp-releasedefinition.json

{
    "source": 2,
    "revision": 4,
    "description": null,
    "createdBy": {
        "displayName": "alexandre.cotrez",
        "url": "https://spsprodweu3.vssps.visualstudio.com/A7ec1c3fc-8d29-4313-9db5-dd6598c70dd8/_apis/Identities/23163b59-8fcc-69a9-94e0-17c71b7133a8",
        "_links": {
            "avatar": {
                "href": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4"
            }
        },
        "id": "23163b59-8fcc-69a9-94e0-17c71b7133a8",
        "uniqueName": "alexandre.cotrez@exakis-nelite.com",
        "imageUrl": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4",
        "descriptor": "aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4"
    },
    "createdOn": "2019-10-16T10:03:51.440Z",
    "modifiedBy": {
        "displayName": "alexandre.cotrez",
        "url": "https://spsprodweu3.vssps.visualstudio.com/A7ec1c3fc-8d29-4313-9db5-dd6598c70dd8/_apis/Identities/23163b59-8fcc-69a9-94e0-17c71b7133a8",
        "_links": {
            "avatar": {
                "href": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4"
            }
        },
        "id": "23163b59-8fcc-69a9-94e0-17c71b7133a8",
        "uniqueName": "alexandre.cotrez@exakis-nelite.com",
        "imageUrl": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4",
        "descriptor": "aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4"
    },
    "modifiedOn": "2019-10-17T07:57:02.577Z",
    "isDeleted": false,
    "variables": {
        "KeyVaultName": {
            "value": "kv-hyppo02"
        }
    },
    "variableGroups": [],
    "environments": [
        {
            "id": 102,
            "name": "Stage 1",
            "rank": 1,
            "owner": {
                "displayName": "alexandre.cotrez",
                "url": "https://spsprodweu3.vssps.visualstudio.com/A7ec1c3fc-8d29-4313-9db5-dd6598c70dd8/_apis/Identities/23163b59-8fcc-69a9-94e0-17c71b7133a8",
                "_links": {
                    "avatar": {
                        "href": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4"
                    }
                },
                "id": "23163b59-8fcc-69a9-94e0-17c71b7133a8",
                "uniqueName": "alexandre.cotrez@exakis-nelite.com",
                "imageUrl": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4",
                "descriptor": "aad.MjMxNjNiNTktOGZjYy03OWE5LTk0ZTAtMTdjNzFiNzEzM2E4"
            },
            "variables": {},
            "variableGroups": [],
            "preDeployApprovals": {
                "approvals": [
                    {
                        "rank": 1,
                        "isAutomated": true,
                        "isNotificationOn": false,
                        "id": 304
                    }
                ],
                "approvalOptions": {
                    "requiredApproverCount": null,
                    "releaseCreatorCanBeApprover": false,
                    "autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped": false,
                    "enforceIdentityRevalidation": false,
                    "timeoutInMinutes": 0,
                    "executionOrder": 1
                }
            },
            "deployStep": {
                "id": 305
            },
            "postDeployApprovals": {
                "approvals": [
                    {
                        "rank": 1,
                        "isAutomated": true,
                        "isNotificationOn": false,
                        "id": 306
                    }
                ],
                "approvalOptions": {
                    "requiredApproverCount": null,
                    "releaseCreatorCanBeApprover": false,
                    "autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped": false,
                    "enforceIdentityRevalidation": false,
                    "timeoutInMinutes": 0,
                    "executionOrder": 2
                }
            },
            "deployPhases": [
                {
                    "deploymentInput": {
                        "parallelExecution": {
                            "parallelExecutionType": 0
                        },
                        "agentSpecification": {
                            "identifier": "windows-2019"
                        },
                        "skipArtifactsDownload": false,
                        "artifactsDownloadInput": {
                            "downloadInputs": []
                        },
                        "queueId": 1883,
                        "demands": [],
                        "enableAccessToken": false,
                        "timeoutInMinutes": 0,
                        "jobCancelTimeoutInMinutes": 1,
                        "condition": "succeeded()",
                        "overrideInputs": {}
                    },
                    "rank": 1,
                    "phaseType": 1,
                    "name": "Run on agent",
                    "refName": null,
                    "workflowTasks": []
                }
            ],
            "environmentOptions": {
                "emailNotificationType": "OnlyOnFailure",
                "emailRecipients": "release.environment.owner;release.creator",
                "skipArtifactsDownload": false,
                "timeoutInMinutes": 0,
                "enableAccessToken": false,
                "publishDeploymentStatus": true,
                "badgeEnabled": false,
                "autoLinkWorkItems": false,
                "pullRequestDeploymentEnabled": false
            },
            "demands": [],
            "conditions": [
                {
                    "name": "ReleaseStarted",
                    "conditionType": 1,
                    "value": ""
                }
            ],
            "executionPolicy": {
                "concurrencyCount": 1,
                "queueDepthCount": 0
            },
            "schedules": [],
            "currentRelease": {
                "id": 0,
                "url": "https://tgits-code.vsrm.visualstudio.com/a19d46cd-3ff8-40e1-9af9-0d217a33c3cd/_apis/Release/releases/0",
                "_links": {}
            },
            "retentionPolicy": {
                "daysToKeep": 30,
                "releasesToKeep": 3,
                "retainBuild": true
            },
            "processParameters": {
                "inputs": [
                    {
                        "aliases": [],
                        "options": {
                            "webApp": "Web App on Windows",
                            "webAppLinux": "Web App on Linux",
                            "webAppContainer": "Web App for Containers (Linux)",
                            "functionApp": "Function App on Windows",
                            "functionAppLinux": "Function App on Linux",
                            "functionAppContainer": "Function App for Containers (Linux)",
                            "apiApp": "API App",
                            "mobileApp": "Mobile App"
                        },
                        "properties": {
                            "EditableOptions": "false"
                        },
                        "name": "WebAppKind",
                        "label": "App type",
                        "defaultValue": "webApp",
                        "type": "pickList",
                        "helpMarkDown": "",
                        "groupName": ""
                    },
                    {
                        "aliases": [],
                        "options": {},
                        "properties": {},
                        "name": "DockerNamespace",
                        "label": "Registry or Namespace",
                        "defaultValue": "",
                        "required": true,
                        "type": "string",
                        "helpMarkDown": "A globally unique top-level domain name for your specific registry or namespace.<br/> Note: Fully qualified image name will be of the format: '<b>`<registry or namespace`></b>/`<repository`>:`<tag`>'. For example, '<b>myregistry.azurecr.io</b>/nginx:latest'.",
                        "visibleRule": "WebAppKind = webAppContainer || WebAppkind = functionAppContainer",
                        "groupName": ""
                    },
                    {
                        "aliases": [],
                        "options": {},
                        "properties": {},
                        "name": "DockerRepository",
                        "label": "Repository",
                        "defaultValue": "",
                        "required": true,
                        "type": "string",
                        "helpMarkDown": "Name of the repository where the container images are stored.<br/> Note: Fully qualified image name will be of the format: '`<registry or namespace`>/<b>`<repository`></b>:`<tag`>'. For example, 'myregistry.azurecr.io/<b>nginx</b>:latest'.",
                        "visibleRule": "WebAppKind = webAppContainer || WebAppkind = functionAppContainer",
                        "groupName": ""
                    },
                    {
                        "aliases": [],
                        "options": {},
                        "properties": {},
                        "name": "StartupCommand",
                        "label": "Startup command",
                        "defaultValue": "",
                        "type": "string",
                        "helpMarkDown": "Enter the start up command. For ex.<br/>dotnet run<br/>dotnet filename.dll",
                        "visibleRule": "WebAppKind = webAppLinux || WebAppKind = webAppContainer || WebAppkind = functionAppContainer || WebAppKind = functionAppLinux",
                        "groupName": ""
                    }
                ],
                "dataSourceBindings": [
                    {
                        "dataSourceName": "AzureRMWebAppNamesByAppType",
                        "parameters": {
                            "WebAppKind": "$(WebAppKind)"
                        },
                        "endpointId": "$(ConnectedServiceName)",
                        "target": "WebAppName"
                    }
                ]
            },
            "properties": {
                "BoardsEnvironmentType": {
                    "$type": "System.String",
                    "$value": "unmapped"
                },
                "LinkBoardsWorkItems": {
                    "$type": "System.String",
                    "$value": "False"
                }
            },
            "preDeploymentGates": {
                "id": 0,
                "gatesOptions": null,
                "gates": []
            },
            "postDeploymentGates": {
                "id": 0,
                "gatesOptions": null,
                "gates": []
            },
            "environmentTriggers": [],
            "badgeUrl": "https://tgits-code.vsrm.visualstudio.com/_apis/public/Release/badge/a19d46cd-3ff8-40e1-9af9-0d217a33c3cd/102/102"
        }
    ],
    "artifacts": [],
    "triggers": [],
    "releaseNameFormat": "Release-$(rev:r)",
    "tags": [],
    "properties": {
        "DefinitionCreationSource": {
            "$type": "System.String",
            "$value": "BuildSummary"
        },
        "IntegrateJiraWorkItems": {
            "$type": "System.String",
            "$value": "false"
        },
        "IntegrateBoardsWorkItems": {
            "$type": "System.String",
            "$value": "False"
        }
    },
    "id": 102,
    "name": "test-webapp - CD",
    "path": "\\",
    "projectReference": null,
    "url": "https://tgits-code.vsrm.visualstudio.com/a19d46cd-3ff8-40e1-9af9-0d217a33c3cd/_apis/Release/definitions/102",
    "_links": {
        "self": {
            "href": "https://tgits-code.vsrm.visualstudio.com/a19d46cd-3ff8-40e1-9af9-0d217a33c3cd/_apis/Release/definitions/102"
        },
        "web": {
            "href": "https://tgits-code.visualstudio.com/a19d46cd-3ff8-40e1-9af9-0d217a33c3cd/_release?definitionId=102"
        }
    }
}