Skip to content

Commit 2cee39f

Browse files
[AppService]: fix #18028- Publish-AzWebapp doesn't handle relative paths properly (#18977)
* Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption * Revert "Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption" This reverts commit 96a4d28. * Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption * Revert "Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption" This reverts commit 96a4d28. * [AppService]: fix #18028- Publish-AzWebapp doesn't handle relative paths properly * Updated changelog.md * Update src/Websites/Websites/ChangeLog.md * Fixed an issue * Updated review comments Co-authored-by: Beisi Zhou <[email protected]>
1 parent b4fc175 commit 2cee39f

File tree

3 files changed

+333
-387
lines changed

3 files changed

+333
-387
lines changed

src/Websites/Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppTests/TestPublishWebAppFromZip.json

Lines changed: 330 additions & 387 deletions
Large diffs are not rendered by default.

src/Websites/Websites/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed `Publish-AzWebapp` to handle relative paths properly [#18028]
2122

2223
## Version 2.11.2
2324
* Updated `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `VirtualNetworkSubnetId` property [#18042]

src/Websites/Websites/Cmdlets/WebApps/PublishAzureWebApp.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public override void ExecuteCmdlet()
7474

7575
Action zipDeployAction = () =>
7676
{
77+
if (!Path.IsPathRooted(ArchivePath))
78+
ArchivePath = Path.Combine(this.SessionState.Path.CurrentFileSystemLocation.Path, ArchivePath);
7779
using (var s = File.OpenRead(ArchivePath))
7880
{
7981
HttpClient client = new HttpClient();

0 commit comments

Comments
 (0)