Repository navigation
[App Service] az webapp deploy: URI encode target path parameter - #32049
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes URL encoding for the target path parameter in the az webapp deploy command to properly handle special characters like # in file paths.
- URI encode the target path parameter using
urllib.parse.quote - Import the
quotefunction fromurllib.parse
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
please add some tests for the change to ensure it works well. |
|
Please note that the Azure CLI release process will begin on 09/30/2025 at 07:00 UTC. If this PR is intended for the upcoming release, kindly resolve the comments as soon as possible; otherwise, it will need to be postponed to the next sprint. |
Related command
az webapp deployDescription
URI encoding the target path parameter to ensure that target paths that include the
#character are encoded correctly as a query parameter.Testing Guide
az webapp deploy --resource-group {rg-name} --name {app-name} --src-path {artifact-path}" --target-path "/home/site/wwwroot
History Notes
[App Service]
az webapp deploy: Encode target path parameterThis 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.