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

[AppService] Fix - bug that prevented changing Container settings in Set-AzWebApp and Set-AzWebAppSlot #12107

Merged
merged 2 commits into from
Jun 11, 2020

Conversation

vinisoto
Copy link
Contributor

Description

-Fix - bug that prevented changing Container settings in Set-AzWebApp and Set-AzWebAppSlot
-Fixed typos.

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@vinisoto vinisoto requested a review from panchagnula June 10, 2020 00:15
@vinisoto vinisoto requested a review from jvano June 10, 2020 00:16
@VeryEarly VeryEarly self-assigned this Jun 10, 2020
Copy link
Contributor

@VeryEarly VeryEarly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add test case for these changes

@vinisoto vinisoto requested a review from VeryEarly June 10, 2020 21:58
@vinisoto
Copy link
Contributor Author

@VeryEarly - Added test cases.

FYI @jvano @panchagnula

@@ -539,14 +539,6 @@ public void UpdateWebAppConfiguration(string resourceGroupName, string location,

if (useSlot)
{
if (siteConfig != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinisoto - what was the scenario to move siteConfig configuration update to behind the appSettings configuration update. It is reported as regression issue in #14998 . please let me whether I can alter their sequence of updating the configuration or it should be like this for any of the other functionality.

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 need to make sure that the app settings below are updated before or at the same time as WindowsFxVersion (which is in SiteConfig). Otherwise, server side validation for WindowsFxVersion will fail since it will be trying to use "old" container settings.

public const string DockerRegistryServerUrl = "DOCKER_REGISTRY_SERVER_URL";
public const string DockerRegistryServerUserName = "DOCKER_REGISTRY_SERVER_USERNAME";
public const string DockerRegistryServerPassword = "DOCKER_REGISTRY_SERVER_PASSWORD";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinisoto - For now I have reverted your changes. Because it has created a lot of mess in just few days. can you give me the #GitID for the same. I want to analyze it further to understand the issue and fix it if required.

@panchagnula - FYI.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kotasudhakarreddy we should make sure to fix the issue Vini was working on as well with your changes so that we don't trade one regression for another. i.e this bug #13866

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vinisoto - I have reverted your changes only from WebsitesClient.cs->UpdateWebAppConfiguration method. But I don't see any server side validation for setting WindowsFxVersion. Could you please test this PR and confirm us the same.

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

Successfully merging this pull request may close these issues.

5 participants