How to use the azure-actions-appservice-rest/Utilities/AnnotationUtility.addAnnotation function in azure-actions-appservice-rest

To help you get started, we’ve selected a few azure-actions-appservice-rest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / webapps-deploy / src / deploymentProvider / WebAppDeploymentProvider.ts View on Github external
public async UpdateDeploymentStatus(isDeploymentSuccess: boolean) {
        if(!!this.appService) {
            await addAnnotation(this.taskParams.endpoint, this.appService, isDeploymentSuccess);
        }
        
        this.activeDeploymentID = await this.kuduServiceUtility.updateDeploymentStatus(isDeploymentSuccess, null, {'type': 'Deployment', slotName: this.taskParams.slotName});
        core.debug('Active DeploymentId :'+ this.activeDeploymentID);
        if(!!isDeploymentSuccess) {
            await this.kuduServiceUtility.postZipDeployOperation(this.deploymentID, this.activeDeploymentID);
        }
        
        console.log('App Service Application URL: ' + this.applicationURL);
        core.setOutput('webapp-url', this.applicationURL);
    }
github Azure / webapps-deploy / lib / deploymentProvider / WebAppDeploymentProvider.js View on Github external
return __awaiter(this, void 0, void 0, function* () {
            if (!!this.appService) {
                yield AnnotationUtility_1.addAnnotation(this.taskParams.endpoint, this.appService, isDeploymentSuccess);
            }
            this.activeDeploymentID = yield this.kuduServiceUtility.updateDeploymentStatus(isDeploymentSuccess, null, { 'type': 'Deployment', slotName: this.taskParams.slotName });
            core.debug('Active DeploymentId :' + this.activeDeploymentID);
            if (!!isDeploymentSuccess) {
                yield this.kuduServiceUtility.postZipDeployOperation(this.deploymentID, this.activeDeploymentID);
            }
            console.log('App Service Application URL: ' + this.applicationURL);
            core.setOutput('webapp-url', this.applicationURL);
        });
    }