Skip to content

[App Service] BREAKING CHANGE: Update websites SDK to the latest version (azure-mgmt-web==2.0.0) & Adopt track2 SDK#17146

Merged
qwordy merged 8 commits intoAzure:devfrom
panchagnula:sisirap-websitesSDK-dev
Apr 14, 2021
Merged

[App Service] BREAKING CHANGE: Update websites SDK to the latest version (azure-mgmt-web==2.0.0) & Adopt track2 SDK#17146
qwordy merged 8 commits intoAzure:devfrom
panchagnula:sisirap-websitesSDK-dev

Conversation

@panchagnula
Copy link
Copy Markdown
Contributor

@panchagnula panchagnula commented Feb 28, 2021

Fixes #17228
Fixes #17124
Description
Updating websites extension to latest SDK https://docs.microsoft.com/en-us/python/api/azure-mgmt-web/azure.mgmt.web.v2020_09_01?view=azure-python & this also has the track 2 SDK changes as well.
https://pypi.org/project/azure-mgmt-web/2.0.0/

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@panchagnula panchagnula marked this pull request as draft February 28, 2021 22:13
@panchagnula panchagnula force-pushed the sisirap-websitesSDK-dev branch from 9ea1ac7 to 4784ee2 Compare February 28, 2021 22:17
@yungezz yungezz added the App Services az appservice label Mar 1, 2021
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[thumb up]!

@yungezz
Copy link
Copy Markdown
Member

yungezz commented Mar 1, 2021

HI @panchagnula , since this is a major SDK version change from Track1 to Track2, there should be code change also. And run live tests for impacted command modules to avoid regression. thanks.

@panchagnula
Copy link
Copy Markdown
Contributor Author

HI @panchagnula , since this is a major SDK version change from Track1 to Track2, there should be code change also. And run live tests for impacted command modules to avoid regression. thanks.

yes the PR is marked as draft while i get the tests re-recorded make the necessary fixes.

@panchagnula panchagnula force-pushed the sisirap-websitesSDK-dev branch from 2aa24ff to a001248 Compare March 2, 2021 04:32
@qwordy
Copy link
Copy Markdown
Member

qwordy commented Mar 3, 2021

@panchagnula Could you please summarize the code change pattern when updating to new SDK? Thanks a lot

@panchagnula
Copy link
Copy Markdown
Contributor Author

@panchagnula Could you please summarize the code change pattern when updating to new SDK? Thanks a lot

@qwordy Sorry, I am not sure what 'code change pattern' are you referring to? Please elaborate or we can discuss offline in email if that helps. Thank you.

@panchagnula panchagnula force-pushed the sisirap-websitesSDK-dev branch 2 times, most recently from 737636a to 86bd59f Compare March 7, 2021 00:45
@qwordy
Copy link
Copy Markdown
Member

qwordy commented Mar 29, 2021

@panchagnula Could you please summarize the code change pattern when updating to new SDK? Thanks a lot

@qwordy Sorry, I am not sure what 'code change pattern' are you referring to? Please elaborate or we can discuss offline in email if that helps. Thank you.

@panchagnula This article lists typical modifications when updating to new SDK. Appreciate if you can summarize modifications you made in this PR.
https://github.com/Azure/azure-cli/blob/dev/doc/track_2_migration_guidance.md

@qwordy
Copy link
Copy Markdown
Member

qwordy commented Mar 29, 2021

@panchagnula This PR isn't active for about one month and is in draft status. Do you encounter any problem? We can provide help.

@panchagnula
Copy link
Copy Markdown
Contributor Author

@panchagnula This PR isn't active for about one month and is in draft status. Do you encounter any problem? We can provide help.

@qwordy thanks for checking - was heads down on other high pri items - just restarted fixing & re-testing. aim to have this ready out of draft PR by wed this week. Will reach out if I have questions. Thank you.

@panchagnula panchagnula force-pushed the sisirap-websitesSDK-dev branch from b92887e to a45709c Compare March 29, 2021 18:50
@AnatoliB
Copy link
Copy Markdown

Tagging @gzuber for Functions

@panchagnula panchagnula force-pushed the sisirap-websitesSDK-dev branch from a45709c to fd28745 Compare March 29, 2021 18:58
@panchagnula panchagnula marked this pull request as ready for review March 31, 2021 20:30
@panchagnula panchagnula requested a review from qwordy as a code owner March 31, 2021 20:30
@panchagnula panchagnula added this to the S185 milestone Mar 31, 2021
@panchagnula
Copy link
Copy Markdown
Contributor Author

panchagnula commented Mar 31, 2021

@qwordy can you help me find an owner from bot service - seems like they have their own version of webapp_operations they use & this will be impacted by the new change - so they need fix these on their end.

************* Module azure.cli.command_modules.botservice.bot_json_formatter
src/azure-cli/azure/cli/command_modules/botservice/bot_json_formatter.py:128:40: E1121: Too many positional arguments for constructor call (too-many-function-args)
************* Module azure.cli.command_modules.botservice.web_app_operations
src/azure-cli/azure/cli/command_modules/botservice/web_app_operations.py:70:52: E1121: Too many positional arguments for method call (too-many-function-args)
src/azure-cli/azure/cli/command_modules/botservice/web_app_operations.py:73:16: E1121: Too many positional arguments for method call (too-many-function-args)
src/azure-cli/azure/cli/command_modules/botservice/web_app_operations.py:74:48: E1121: Too many positional arguments for method call (too-many-function-args)

@panchagnula panchagnula force-pushed the sisirap-websitesSDK-dev branch from a3777ec to 72f56c4 Compare April 1, 2021 02:02
@panchagnula
Copy link
Copy Markdown
Contributor Author

@qwordy can you review this change & provide feedback as needed. Thank you.

@panchagnula panchagnula changed the title [App Service]: Updating websites SDK to the latest version (azure-mgmt-web==2.0.0) & Adopt track2 SDK [App Service] BREAKING CHANGE: Updating websites SDK to the latest version (azure-mgmt-web==2.0.0) & Adopt track2 SDK Apr 5, 2021
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If it is debugging purpose, use logger. If it is command output, consider returning data in a method. Azure CLI will print them. We seldom print data by self.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

logger is better

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out - I had this while I was trying to debug. Will remove this one.

@panchagnula panchagnula force-pushed the sisirap-websitesSDK-dev branch from f7c1b65 to 513c763 Compare April 7, 2021 05:22
@fengzhou-msft fengzhou-msft changed the title [App Service] BREAKING CHANGE: Updating websites SDK to the latest version (azure-mgmt-web==2.0.0) & Adopt track2 SDK [App Service] BREAKING CHANGE: Update websites SDK to the latest version (azure-mgmt-web==2.0.0) & Adopt track2 SDK Apr 8, 2021
Co-authored-by: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com>
Copy link
Copy Markdown
Member

@evelyn-ys evelyn-ys left a comment

Choose a reason for hiding this comment

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

Approved for databoxedge part

@qwordy qwordy modified the milestones: S185, S186 Apr 9, 2021
@panchagnula
Copy link
Copy Markdown
Contributor Author

@qwordy can we merge this once the build with the conflicting change merge is successful? Thanks!

@qwordy qwordy merged commit 680f833 into Azure:dev Apr 14, 2021
stefanushinardi pushed a commit to stefanushinardi/azure-cli that referenced this pull request Apr 15, 2021
…ion (azure-mgmt-web==2.0.0) & Adopt track2 SDK (Azure#17146)

* Updating with NewSDK

* Adding file to CredScanner

* Fixing bot tests

* Style checks

* Removing unneeded print statements

* Update scripts/sdk_process/patch_models.py

Co-authored-by: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com>

* removing print statements added for debugging

Co-authored-by: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App Services az appservice Bot Services Service Attention This issue is responsible by Azure service team. Track2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebApp:az webapp deploy only works when extension is installed az cli "hybrid connections not supported on linux app."

9 participants