public async updateConfiguration()

in src/appservice-rest/Arm/azure-app-service.ts [286:308]


    public async updateConfiguration(applicationSettings: any): Promise<AzureAppServiceConfigurationDetails> {
        try {
            var httpRequest: WebRequest = {
                method: 'PUT',
                body: JSON.stringify(applicationSettings),
                uri: this._client.getRequestUri(`//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/${this._slotUrl}/config/web`,
                {
                    '{resourceGroupName}': this._resourceGroup,
                    '{name}': this._name,
                }, null, '2016-08-01')
            };

            var response = await this._client.beginRequest(httpRequest);
            if(response.statusCode != 200) {
                throw ToError(response);
            }

            return response.body;
        }
        catch(error) {
            throw Error("Failed to update configuration settings for app service " + this._getFormattedName() + ".\n" + getFormattedError(error));
        }
    }