in src/appservice-rest/Kudu/azure-app-kudu-service.ts [321:341]
public async imageDeploy(headers:any) {
const _Error: string = "Error";
let httpRequest: WebRequest = {
method: 'POST',
uri: this._client.getRequestUri(`/api/app/update`),
headers: headers
};
let response = await this._client.beginRequest(httpRequest, null);
core.debug(`Image Deploy response: ${JSON.stringify(response)}`);
if(response.statusCode == 200) {
if(!!response.body && typeof response.body === 'object' && _Error in response.body) {
throw response.body[_Error];
}
}
else {
throw JSON.stringify(response);
}
core.debug('Deployment passed');
}