-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New task for App service settings #11020
Conversation
…re-pipelines-tasks into UpdateAppSettings
…re-pipelines-tasks into UpdateAppSettings
…re-pipelines-tasks into UpdateAppSettings
|
||
The Azure App Service Settings task is used to update different Azure App Service settings for [Web Apps](https://azure.microsoft.com/en-in/documentation/articles/app-service-web-overview/). The task works on cross platform Azure Pipelines agents running Windows, Linux or Mac. | ||
|
||
The task works for [ASP.NET](https://www.visualstudio.com/en-us/docs/release/examples/azure/azure-web-apps-from-build-and-release-hubs), [ASP.NET Core](https://www.visualstudio.com/en-us/docs/release/examples/azure/aspnet-core10-azure-web-apps), PHP, Java, Python, Go and [Node.js](https://www.visualstudio.com/en-us/docs/release/examples/nodejs/node-to-azure-webapps) based web applications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since package is not an input. You may remove this. Also get this reviewed by @N-Usha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it reviewed. Made the changes.
"@types/mocha": "2.2.48", | ||
"@types/node": "6.0.68", | ||
"@types/q": "1.0.7", | ||
"azurermdeploycommon": "file:../../_build/Tasks/Common/azurermdeploycommon-1.1.0.tgz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of consuming entire azurermdeploy-common, consume only azure-arm-restv2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are also using azurermdeploycommon/operations here.
Tasks/Common/AzureRmDeploy-common/azure-arm-rest/azure-arm-app-service.ts
Outdated
Show resolved
Hide resolved
var isNewValueUpdated: boolean = false; | ||
for(var key in addProperties) { | ||
if(addProperties[key].slotSetting == true) { | ||
if((connectionStringSlotSettings.properties.connectionStringNames.length == 0) || (!connectionStringSlotSettings.properties.connectionStringNames.includes(key))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit let connectionStringNames = connectionStringSlotSettings.properties.connectionStringNames;
Also is it possible that connectionSTringNames is null or properties is null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already included the check 'connectionStringNames.length == 0'
var isNewValueUpdated: boolean = false; | ||
for(var key in addProperties) { | ||
if(addProperties[key].slotSetting == true) { | ||
if((appSettingsSlotSettings.properties.appSettingNames.length == 0) || (!appSettingsSlotSettings.properties.appSettingNames.includes(addProperties[key].name))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit let appSettingNames= connectionStringSlotSettings.properties.appSettingNames;
Also is it possible that connectionSTringNames is null or properties is null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Included the check for null already
Solved: Azure App Service Deploy - Space in app setting key fails on release #10357 |
Solved : #9017 |
New task for App service settings added
Release a New task called “App service Settings”/ “App service Configure” (Name is a placeholder) with the functionality to add app settings, config settings & Connection strings – All in JSON format.
We could start messaging in Logs, documentation that the App settings section will be removed from the existing app service tasks.
In the future, whenever we find a more breaking change needed to revamp the existing tasks, we will remove the “App settings” section and upgrade the major version of the tasks.