Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
});
}
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();
}