How to use azure-actions-appservice-rest - 10 common examples

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 / lib / deploymentProvider / WebAppDeploymentProvider.js View on Github external
return __awaiter(this, void 0, void 0, function* () {
            this.appService = new azure_app_service_1.AzureAppService(this.taskParams.endpoint, this.taskParams.resourceGroupName, this.taskParams.appName, this.taskParams.slotName);
            this.appServiceUtility = new AzureAppServiceUtility_1.AzureAppServiceUtility(this.appService);
            this.kuduService = yield this.appServiceUtility.getKuduService();
            this.kuduServiceUtility = new KuduServiceUtility_1.KuduServiceUtility(this.kuduService);
            // setting application url
            this.applicationURL = yield this.appServiceUtility.getApplicationURL();
        });
    }
github Azure / webapps-deploy / src / deploymentProvider / WebAppDeploymentProvider.ts View on Github external
private async initializeForSPN() {        
        this.appService = new AzureAppService(this.taskParams.endpoint, this.taskParams.resourceGroupName, this.taskParams.appName, this.taskParams.slotName);
        this.appServiceUtility = new AzureAppServiceUtility(this.appService);
        
        this.kuduService = await this.appServiceUtility.getKuduService();
        this.kuduServiceUtility = new KuduServiceUtility(this.kuduService);
        
        // setting application url
        this.applicationURL = await this.appServiceUtility.getApplicationURL();
    }
github Azure / webapps-deploy / src / deploymentProvider / WebAppDeploymentProvider.ts View on Github external
private async initializeForSPN() {        
        this.appService = new AzureAppService(this.taskParams.endpoint, this.taskParams.resourceGroupName, this.taskParams.appName, this.taskParams.slotName);
        this.appServiceUtility = new AzureAppServiceUtility(this.appService);
        
        this.kuduService = await this.appServiceUtility.getKuduService();
        this.kuduServiceUtility = new KuduServiceUtility(this.kuduService);
        
        // setting application url
        this.applicationURL = await this.appServiceUtility.getApplicationURL();
    }
github Azure / webapps-deploy / lib / deploymentProvider / WebAppDeploymentProvider.js View on Github external
return __awaiter(this, void 0, void 0, function* () {
            this.appService = new azure_app_service_1.AzureAppService(this.taskParams.endpoint, this.taskParams.resourceGroupName, this.taskParams.appName, this.taskParams.slotName);
            this.appServiceUtility = new AzureAppServiceUtility_1.AzureAppServiceUtility(this.appService);
            this.kuduService = yield this.appServiceUtility.getKuduService();
            this.kuduServiceUtility = new KuduServiceUtility_1.KuduServiceUtility(this.kuduService);
            // setting application url
            this.applicationURL = yield this.appServiceUtility.getApplicationURL();
        });
    }
github Azure / webapps-deploy / lib / deploymentProvider / WebAppDeploymentProvider.js View on Github external
return __awaiter(this, void 0, void 0, function* () {
            this.appService = new azure_app_service_1.AzureAppService(this.taskParams.endpoint, this.taskParams.resourceGroupName, this.taskParams.appName, this.taskParams.slotName);
            this.appServiceUtility = new AzureAppServiceUtility_1.AzureAppServiceUtility(this.appService);
            this.kuduService = yield this.appServiceUtility.getKuduService();
            this.kuduServiceUtility = new KuduServiceUtility_1.KuduServiceUtility(this.kuduService);
            // setting application url
            this.applicationURL = yield this.appServiceUtility.getApplicationURL();
        });
    }
github Azure / webapps-deploy / src / deploymentProvider / WebAppDeploymentProvider.ts View on Github external
private async initializeForSPN() {        
        this.appService = new AzureAppService(this.taskParams.endpoint, this.taskParams.resourceGroupName, this.taskParams.appName, this.taskParams.slotName);
        this.appServiceUtility = new AzureAppServiceUtility(this.appService);
        
        this.kuduService = await this.appServiceUtility.getKuduService();
        this.kuduServiceUtility = new KuduServiceUtility(this.kuduService);
        
        // setting application url
        this.applicationURL = await this.appServiceUtility.getApplicationURL();
    }
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);
        });
    }
github Azure / webapps-deploy / lib / deploymentProvider / WebAppDeploymentProvider.js View on Github external
return __awaiter(this, void 0, void 0, function* () {
            let scmCreds;
            try {
                scmCreds = yield this.getCredsFromXml(taskparameters_1.TaskParameters.getTaskParams().publishProfileContent);
            }
            catch (error) {
                core.error("Failed to fetch credentials from Publish Profile. For more details on how to set publish profile credentials refer https://aka.ms/create-secrets-for-GitHub-workflows");
                throw error;
            }
            this.kuduService = new azure_app_kudu_service_1.Kudu(scmCreds.uri, scmCreds.username, scmCreds.password);
            this.kuduServiceUtility = new KuduServiceUtility_1.KuduServiceUtility(this.kuduService);
        });
    }
github Azure / webapps-deploy / src / deploymentProvider / WebAppDeploymentProvider.ts View on Github external
private async initializeForPublishProfile() {
        let scmCreds: scmCredentials;
        try {
            scmCreds = await this.getCredsFromXml(TaskParameters.getTaskParams().publishProfileContent);
        } catch(error) {
            core.error("Failed to fetch credentials from Publish Profile. For more details on how to set publish profile credentials refer https://aka.ms/create-secrets-for-GitHub-workflows");
            throw error;
        }

        this.kuduService = new Kudu(scmCreds.uri, scmCreds.username, scmCreds.password);
        this.kuduServiceUtility = new KuduServiceUtility(this.kuduService);
    }