public async updateConnectionStrings()

in src/appservice-rest/Utilities/AzureAppServiceUtility.ts [160:181]


    public async updateConnectionStrings(addProperties: any): Promise<boolean>  {
        var connectionStringProperties: {[index: string]:any} = {}
        for(var property in addProperties) {
            if (!addProperties[property].type) {
                addProperties[property].type = "Custom";
            }
            if (!addProperties[property].slotSetting) {
                addProperties[property].slotSetting = false;
            }
            connectionStringProperties[addProperties[property].name] = addProperties[property];
            delete connectionStringProperties[addProperties[property].name].name;
        }

        console.log('Updating App Service Connection Strings. Data: ' + JSON.stringify(connectionStringProperties));
        var isNewValueUpdated: boolean = await this._appService.patchConnectionString(connectionStringProperties);
        await this._appService.patchConnectionStringSlot(connectionStringProperties);
        if(!!isNewValueUpdated) {
            console.log('Updated App Service Connection Strings.');
        }
        
        return isNewValueUpdated;
    }