-
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
Feature Added to Azure App Service Manage : Swap Slot with Preview #11155
Conversation
Tasks/AzureAppServiceManageV0/Strings/resources.resjson/en-US/resources.resjson
Outdated
Show resolved
Hide resolved
const webAppKindMap = new Map([ | ||
[ 'app', 'webApp' ], | ||
[ 'app,linux', 'webAppLinux' ], | ||
['app,container', 'webAppContainer'] |
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.
Can you ensure whether windows container apps are covered?
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.
Checked. All container web apps are covered.
@@ -82,7 +85,7 @@ | |||
"label": "Specify Slot or App Service Environment", | |||
"defaultValue": "false", | |||
"required": false, | |||
"visibleRule": "Action != Swap Slots && Action != Delete Slot" | |||
"visibleRule": "Action != Swap Slots && Action != Delete Slot && Action != Start Swap With Preview && Action != Complete Swap && Action != Cancel Swap" |
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.
Does complete swap and Cancel swap require both source and target slot?
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 need both for Complete swap but not for Cancel swap (only source slot is required) . Will make the changes.
@@ -55,6 +55,9 @@ | |||
"Start Azure App Service": "Start App Service", | |||
"Stop Azure App Service": "Stop App Service", | |||
"Restart Azure App Service": "Restart App Service", | |||
"Start Swap With Preview" : "Start Swap with Preview", |
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.
@N-Usha, Can you check the camelcase?
Add L0s in azure-arm-rest-v2 |
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.
Looks good!
Add the following new “Actions” in the App service Manage task:
The task validates the “Action” during runtime and fails if not applicable for the selected web app type. ( Web apps on Linux as well as Web apps for containers )
Action: Start Swap with Preview
Action: Complete swap with Preview:
All inputs needed for “Swap slots” Action are needed: App service name, Resource Group, Source slot, target Slot. Checkboxes for “Swap with Production” , “Preserve Vnet”
Action: Cancel swap with Preview: (Cancel a pending swap and restore the source slot configuration)
All inputs needed for “Swap slots” Action are needed: App service name, Resource Group, Source slot, target Slot. Checkboxes for “Swap with Production” , “Preserve Vnet”
The task fails when "Start Swap with Preview" action is completed before allowing any new “Swap Slots” Action on the app giving a conflict error.
Reference: #6917