in src/appservice-rest/Utilities/AzureAppServiceUtility.ts [24:44]
public async getWebDeployPublishingProfile(): Promise<any> {
var publishingProfile = await this._appService.getPublishingProfileWithSecrets();
var defer = Q.defer<any>();
parseString(publishingProfile, (error: any, result: any) => {
if(!!error) {
defer.reject(error);
}
var publishProfile = result && result.publishData && result.publishData.publishProfile ? result.publishData.publishProfile : null;
if(publishProfile) {
for (var index in publishProfile) {
if (publishProfile[index].$ && publishProfile[index].$.publishMethod === "MSDeploy") {
defer.resolve(result.publishData.publishProfile[index].$);
}
}
}
defer.reject('Error : No such deploying method exists.');
});
return defer.promise;
}