From 0c3c13d6613667cbf2b5aa392a3ad24f60d174da Mon Sep 17 00:00:00 2001 From: Eavanshi Arora Date: Tue, 27 Aug 2019 17:23:47 +0530 Subject: [PATCH 1/2] Condition Corrected --- Tasks/AzureAppServiceSettingsV1/azurewebappsettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tasks/AzureAppServiceSettingsV1/azurewebappsettings.ts b/Tasks/AzureAppServiceSettingsV1/azurewebappsettings.ts index e748c525d972..396bb2ba5a44 100644 --- a/Tasks/AzureAppServiceSettingsV1/azurewebappsettings.ts +++ b/Tasks/AzureAppServiceSettingsV1/azurewebappsettings.ts @@ -39,7 +39,7 @@ async function main() { var ConfigurationSettings: string = tl.getInput('generalSettings', false); var ConnectionStrings: string = tl.getInput('connectionStrings', false); - if(!AppSettings || !ConfigurationSettings || !ConnectionStrings) { + if(!AppSettings && !ConfigurationSettings && !ConnectionStrings) { throw Error(tl.loc("AppServiceSettingsNotEnabled")); } From 67530e7a05995ba0fe29f45485c65231eedefca3 Mon Sep 17 00:00:00 2001 From: Eavanshi Arora Date: Tue, 27 Aug 2019 18:04:54 +0530 Subject: [PATCH 2/2] Readme updated --- Tasks/AzureAppServiceSettingsV1/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tasks/AzureAppServiceSettingsV1/README.md b/Tasks/AzureAppServiceSettingsV1/README.md index c9d78978a53a..6de4fda52a99 100644 --- a/Tasks/AzureAppServiceSettingsV1/README.md +++ b/Tasks/AzureAppServiceSettingsV1/README.md @@ -46,7 +46,7 @@ The task is used to deploy a Web project to an existing Azure Web App or Functi [Configure an App Service app](https://docs.microsoft.com/en-us/azure/app-service/configure-common) **App settings**: [App settings](https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#app-settings) contains name/value pairs that your web app will load on start up. Edit web app application settings by following the syntax : ->Example : +>Example: [ { "name": "key1",