-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[App Service] Fix #21168: az webapp deploy
: Call OneDeploy through ARM proxy if --src-url
is provided
#26620
Conversation
️✔️AzureCLI-FullTest
|
❌AzureCLI-BreakingChangeTest
|
App Service |
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!
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py
Outdated
Show resolved
Hide resolved
--src-url
is providedaz webapp deploy
: Call OneDeploy through ARM proxy if --src-url
is provided
Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>
@zhoxing-ms can you please review when you have some time? |
@live_only() | ||
@ResourceGroupPreparer(name_prefix='cli_test_webapp_OneDeploy', location=WINDOWS_ASP_LOCATION_WEBAPP) | ||
def test_one_deploy(self, resource_group): | ||
def test_one_deploy_scm(self, resource_group): | ||
webapp_name = self.create_random_name('webapp-oneDeploy-test', 40) | ||
plan_name = self.create_random_name('webapp-oneDeploy-plan', 40) | ||
war_file = os.path.join(TEST_DIR, 'sample.war') |
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.
@dannysongg Since the @live_only()
label of this test has been removed, our CI pipeline currently perform it's recording test.
war_file = os.path.join(TEST_DIR, 'sample.war')
Please move the sample.war
file to the src/azure-cli/azure/cli/command_modules/appservice/tests/latest/data
folder, otherwise it will cause the execution of package tests in our Batch CI pipeline to fail. pipeline link
…ough ARM proxy if `--src-url` is provided (Azure#26620)
Related command
az webapp deploy
Description
Enable the az webap deploy command to perform a pull based deployment from a remote URL through the OneDeploy API using the ARM proxy if
-src-url
is provided. This is to allow us to deploy to isolated environments such as ILB ASE which cannot be deployed to through the traditional pushed based SCM deployment.Testing Guide
azdev test WebappOneDeployScenarioTest --live
(This will run the test for both the SCM and ARM scenarios to ensure backwards compatibility)This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.