Skip to content
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

Merged
merged 50 commits into from
Aug 23, 2019

Conversation

eaarora-ms
Copy link
Contributor

@eaarora-ms eaarora-ms commented Jul 29, 2019

  1. 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.

  2. We could start messaging in Logs, documentation that the App settings section will be removed from the existing app service tasks.

  3. 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.

image

@eaarora-ms eaarora-ms changed the title Support for Connection string added in existing task : AzureWEbAppV1 New task for App service settings Aug 19, 2019
@eaarora-ms eaarora-ms requested a review from zjrunner as a code owner August 22, 2019 12:33

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.
Copy link
Contributor

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

Copy link
Contributor Author

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",
Copy link
Contributor

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

Copy link
Contributor Author

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.

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))) {
Copy link
Contributor

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

Copy link
Contributor Author

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))) {
Copy link
Contributor

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

Copy link
Contributor Author

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

@eaarora-ms eaarora-ms merged commit 1765eed into microsoft:master Aug 23, 2019
@eaarora-ms
Copy link
Contributor Author

Solved: Azure App Service Deploy - Space in app setting key fails on release #10357

@eaarora-ms
Copy link
Contributor Author

eaarora-ms commented Aug 26, 2019

Solved : #9017

eaarora-ms added a commit to eaarora-ms/azure-pipelines-tasks that referenced this pull request Aug 27, 2019
New task for App service settings added
eaarora-ms added a commit that referenced this pull request Aug 27, 2019
* New task for App service settings  (#11020)

* App Service Settings Changes (#11211)

* Code owners added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants