in src/appservice-rest/Arm/azure-app-service.ts [593:615]
private async _get(): Promise<AzureAppServiceConfigurationDetails> {
try {
var httpRequest: WebRequest = {
method: 'GET',
uri: this._client.getRequestUri(`//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/${this._slotUrl}`,
{
'{resourceGroupName}': this._resourceGroup,
'{name}': this._name,
}, null, '2016-08-01')
};
var response = await this._client.beginRequest(httpRequest);
if(response.statusCode != 200) {
throw ToError(response);
}
var appDetails = response.body;
return appDetails as AzureAppServiceConfigurationDetails;
}
catch(error) {
throw Error("Failed to fetch app service " + this._getFormattedName() + " details.\n" + getFormattedError(error));
}
}