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", 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")); }