Skip to content

Commit abedf6f

Browse files
author
Freddy Kristiansen
authored
Merge pull request #2834 from freddydk/master
Issue #2833
2 parents 8d78be9 + 8bb5545 commit abedf6f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ReleaseNotes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ Issue #1577 Run-AlValidation and Extract-AppFileToFolder require absolute paths
499499
Issue #1579 Change default timeStampServer and digestAlgorithm
500500
Issues #1912, #957, #2796 - PowerShell 7 is now supported. Please report issues on https://github.com/microsoft/navcontainerhelper/issues
501501
The parts of BcContainerHelper, which doesn't work with Containers, can also run on Linux as an experiment. Please report issues on https://github.com/microsoft/navcontainerhelper/issues
502+
Issue #2833 Publish-PerTenantExtensionApps fails after first app
502503

503504
1.0.17
504505
Issue #1494 Creating another container based on existing artifact

Saas/Publish-PerTenantExtensionApps.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ try {
120120
$appJsonFile = Join-Path $tempFolder "app.json"
121121
$appJson = [System.IO.File]::ReadAllLines($appJsonFile) | ConvertFrom-Json
122122
Remove-Item -Path $tempFolder -Force -Recurse
123-
$body | ConvertTo-Json | out-host
124123
Write-Host @newLine "Publishing and Installing"
125124
$extensionUpload = (Invoke-RestMethod -Method Get -Uri "$automationApiUrl/companies($companyId)/extensionUpload" -Headers $authHeaders).value
126125
Write-Host @newLine "."
@@ -142,12 +141,12 @@ try {
142141
if ($null -eq $extensionUpload.systemId) {
143142
throw "Unable to upload extension"
144143
}
145-
$body = (Invoke-WebRequest -UseBasicParsing $_).Content
144+
$fileBody = (Invoke-WebRequest -UseBasicParsing $_).Content
146145
Invoke-RestMethod `
147146
-Method Patch `
148147
-Uri $extensionUpload.'extensionContent@odata.mediaEditLink' `
149148
-Headers ($authHeaders + $ifMatchHeader + $streamHeader) `
150-
-Body $body | Out-Null
149+
-Body $fileBody | Out-Null
151150
Write-Host @newLine "."
152151
Invoke-RestMethod `
153152
-Method Post `

0 commit comments

Comments
 (0)