Skip to content

Commit b412bb6

Browse files
authored
Merge pull request #2710 from microsoft/dev
Patch demo license
2 parents b8a3a3f + b89ebe8 commit b412bb6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ContainerHandling/New-NavContainer.ps1

+11
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,17 @@ try {
543543
$appManifestPath = Join-Path $appArtifactPath "manifest.json"
544544
$appManifest = Get-Content $appManifestPath | ConvertFrom-Json
545545

546+
if ($appManifest.version -like "21.0.*" -and $licenseFile -eq "") {
547+
Write-Host "The CRONUS Demo License shipped in Version 21.0 artifacts doesn't contain sufficient rights to all Test Libraries objects. Patching the license file."
548+
$country = $appManifest.Country.ToLowerInvariant()
549+
if (@('at','au','be','ca','ch','cz','de','dk','es','fi','fr','gb','in','is','it','mx','nl','no','nz','ru','se','us') -contains $country) {
550+
$licenseFile = "https://bcartifacts.azureedge.net/prerequisites/21demolicense/$country/3048953.bclicense"
551+
}
552+
else {
553+
$licenseFile = "https://bcartifacts.azureedge.net/prerequisites/21demolicense/w1/3048953.bclicense"
554+
}
555+
}
556+
546557
if ($runSandboxAsOnPrem -and $appManifest.version -lt [Version]"18.0.0.0") {
547558
$runSandboxAsOnPrem = $false
548559
Write-Host -ForegroundColor Red "Cannot run sandbox artifacts before version 18 as onprem"

ReleaseNotes.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Issue #2652 Support Run-AlPipeline with appRevision only
33
Issue #2704 Wrong package name since today
44
Change country mappings for countries hosted with Brazil app service
5+
Patch wrong DEMO license file in Business Central 21.0 artifacts
56

67
4.0.3
78
Support for specifying STANDARD or EXTENDED in UploadImportAndApply-ConfigPackageInBcContainer

0 commit comments

Comments
 (0)