Skip to content
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

[AppService]: fix #18028- Publish-AzWebapp doesn't handle relative paths properly #18977

Merged
merged 10 commits into from
Jul 25, 2022
Merged

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Websites/Websites/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Fixed `Publish-AzWebapp` to handle relative paths properly [#18028]
BethanyZhou marked this conversation as resolved.
Show resolved Hide resolved

## Version 2.11.2
* Updated `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `VirtualNetworkSubnetId` property [#18042]
Expand Down
2 changes: 2 additions & 0 deletions src/Websites/Websites/Cmdlets/WebApps/PublishAzureWebApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public override void ExecuteCmdlet()

Action zipDeployAction = () =>
{
if (!Path.IsPathRooted(ArchivePath))
ArchivePath = Path.Combine(this.SessionState.Path.CurrentFileSystemLocation.Path, ArchivePath);
using (var s = File.OpenRead(ArchivePath))
{
HttpClient client = new HttpClient();
Expand Down