_ _ _____ ______ | | | | | __ \ | ____| | | ___ ___ __ _| | | | | | _____ __ |__ _ ____ __ | | / _ \ / __/ _` | | | | | |/ _ \ \ / / __| | '_ \ \ / / | |____ (_) | (__ (_| | | | |__| | __/\ V /| |____| | | \ V / |______\___/ \___\__,_|_| |_____/ \___| \_/ |______|_| |_|\_/ Downloading Github-Helper.psm1 from https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Github-Helper.psm1 Downloading AL-Go-Helper.ps1 from https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1 Downloading Packages.json from https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Packages.json This script will create a docker based local development environment for your project. NOTE: You need to have Docker installed, configured and be able to create Business Central containers for this to work. If this fails, you can setup a cloud based development environment by running cloudDevEnv.ps1 All apps and test apps will be compiled and published to the environment in the development scope. The script will also modify launch.json to have a Local Sandbox configuration point to your environment. Applying settings from D:\projects\sparkrock\development\repo\github\testing\test-al-go\.github\AL-Go-Settings.json Applying settings from D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\.AL-Go\settings.json No settings found in D:\projects\sparkrock\development\repo\github\testing\test-al-go\.github\localDevEnv.settings.json No settings found in D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\.AL-Go\localDevEnv.settings.json No settings found in D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\.AL-Go\Computer.settings.json Checking System Requirements Container name -------------- Please enter the name of the container to create (default bcserver) bcserver selected Authentication mechanism for container -------------------------------------- a Windows Authentication b Username/Password authentication Select authentication mechanism for container (default b) Username/Password authentication selected LicenseFileUrl -------------- When developing AppSource Apps for Business Central versions prior to 22, your local development environment needs the developer licensefile with permissions to your AppSource app object IDs Local path or a secure download URL to license file (default none) none selected Using BcContainerHelper latest version Downloading BcContainerHelper latest version from Blob Storage Using 7zip Import from C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\BcContainerHelper.ps1 BcContainerHelper version 6.0.30 WinRM service is not running, will not try to use WinRM sessions BC.HelperFunctions emits usage statistics telemetry to Microsoft Running on Windows, PowerShell 5.1.21996.1 Applying settings from D:\projects\sparkrock\development\repo\github\testing\test-al-go\.github\AL-Go-Settings.json Applying settings from D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\.AL-Go\settings.json No settings found in D:\projects\sparkrock\development\repo\github\testing\test-al-go\.github\localDevEnv.settings.json No settings found in D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\.AL-Go\localDevEnv.settings.json No settings found in D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\.AL-Go\Computer.settings.json Checking type Checking appFolders, testFolders and bcptTestFolders Application Dependency 25.0.0.0 Checking artifact setting for project Downloading artifacts from https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.2.27733.28023/us Updating app- and test Dependencies Analyzing Test App Dependencies No performance test apps found in bcptTestFolders in .AL-Go\settings.json Checking appDependencyProbingPaths https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.2.27733.28023/us Parameters _____ _ | __ \ | | | |__) |_ _ _ __ __ _ _ __ ___ ___| |_ ___ _ __ ___ | ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __| | | | (_| | | | (_| | | | | | | __/ |_ __/ | \__ \ |_| \__,_|_| \__,_|_| |_| |_|\___|\__\___|_| |___/ Pipeline name localDevEnv Container name bcserver Image name ArtifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.2.27733.28023/us BcAuthContext Not Specified Environment ReUseContainer False KeepContainer True useCompilerFolder False artifactCachePath useDevEndpoint True Auth UserPassword CompanyName MemoryLimit 8G FailOn error TreatTestFailuresAsWarnings False Enable Task Scheduler False Assign Premium Plan False Install Test Runner True Install Test Framework False Install Test Libraries False Install Perf. Toolkit False InstallOnlyReferencedApps True generateDependencyArtifact False CopySymbolsFromContainer False enableCodeCop True enableAppSourceCop True enableUICop True enablePerTenantExtensionCop False enableCodeAnalyzersOnTestApps False doNotPerformUpgrade False doNotPublishApps False uninstallRemovedApps False escapeFromCops False doNotBuildTests False doNotRunTests True doNotRunBcptTests True doNotRunPageScriptingTests False useDefaultAppSourceRuleSet False rulesetFile D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365.ruleset.json generateErrorLog False enableExternalRulesets False azureDevOps False gitLab False gitHubActions False vsixFile License file Not specified CodeSignCertPfxFile Not specified CodeSignCertPfxPassword Not specified CodeSignCertIsSelfSigned False KeyVaultCertPfxFile Not specified KeyVaultCertPfxPassword Not specified KeyVaultClientId BuildOutputFile ContainerEventLogFile TestResultsFile D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\TestResults.xml BcptTestResultsFile D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\bcptTestResults.json TestResultsFormat JUnit AdditionalCountries PackagesFolder .packages OutputFolder BuildArtifactFolder CreateRuntimePackages False AppVersion AppBuild 0 AppRevision 0 SourceRepositoryUrl SourceCommit BuildBy BcContainerHelper,6.0.30 BuildUrl Mandatory Affixes SRP Supported Countries ObsoleteTagMinAllowedMajorMinor Install Apps - None Install Test Apps - None Previous Apps - None Application folders - D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\app Test application folders - D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\test BCPT Test application folders - None BCPT Test suites - None Page Scripting Tests - None Custom CodeCops - None Resolving dependencies _____ _ _ _ _ _ | __ \ | | (_) | | | | (_) | |__) |___ ___ ___ | |_ ___ _ __ __ _ __| | ___ _ __ ___ _ __ __| | ___ _ __ ___ _ ___ ___ | _ // _ \ __|/ _ \| \ \ / / | '_ \ / _` | / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \ __| | | \ \ __\__ \ (_) | |\ V /| | | | | (_| | | (_| | __/ |_) | __/ | | | (_| | __/ | | | (__| | __\__ \ |_| \_\___|___/\___/|_| \_/ |_|_| |_|\__, | \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___|___/ __/ | | | |___/ |_| Sorted App folders - D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\app External dependencies - 437dbf0e-84ff-417a-965d-ed2bb9650972:Microsoft_Base Application_25.0.0.0.app - 63ca2fa4-4f03-4f2b-a480-172fef340d3f:Microsoft_System Application_25.0.0.0.app - f3552374-a1f2-4356-848e-196002525837:Microsoft_Business Foundation_25.0.0.0.app Sorted TestApp folders - D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\test External TestApp dependencies - 437dbf0e-84ff-417a-965d-ed2bb9650972:Microsoft_Base Application_25.0.0.0.app - 63ca2fa4-4f03-4f2b-a480-172fef340d3f:Microsoft_System Application_25.0.0.0.app - f3552374-a1f2-4356-848e-196002525837:Microsoft_Business Foundation_25.0.0.0.app - 23de40a6-dfe8-4f80-80db-d70f83ce8caf:Microsoft_Test Runner_25.0.0.0.app Compiling apps _____ _ _ _ / ____| (_) (_) | | ___ _ __ ___ _ __ _| |_ _ __ __ _ __ _ _ __ _ __ ___ | | / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` | / _` | '_ \| '_ \/ __| | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \ \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, | \__,_| .__/| .__/|___/ | | __/ | | | | | |_| |___/ |_| |_| Using custom ruleset _____ _ _ _ _ _ | __ \ | | (_) (_) (_) | |__) | _| | |_ _ __ __ _ __ _ ___ _ __ ___ _ __ _ ___ _ _ __ ___ __ _ __ _ ___ | ___/ | | | | | | '_ \ / _` | / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \ | | | |_| | | | | | | | (_| | | (_| | __/ | | | __/ | | | (__ | | | | | | | (_| | (_| | __/ |_| \__,_|_|_|_|_| |_|\__, | \__, |\___|_| |_|\___|_| |_|\___| |_|_| |_| |_|\__,_|\__, |\___| __/ | __/ | __/ | |___/ |___/ |___/ PS CallStack : - Write-PSCallStack (HelperFunctions.ps1 Line 1639) - (Run-AlPipeline.ps1 Line 531) - PullGenericImage (Run-AlPipeline.ps1 Line 518) - GetBuildContainer (Run-AlPipeline.ps1 Line 552) - (Run-AlPipeline.ps1 Line 2043) - (Run-AlPipeline.ps1 Line 1692) - (Run-AlPipeline.ps1 Line 1687) - (Run-AlPipeline.ps1 Line 1259) - Run-AlPipeline (Run-AlPipeline.ps1 Line 1244) - CreateDevEnv (AL-Go-Helper.ps1 Line 1941) - (localDevEnv.ps1 Line 139) - ( Line 1) Pulling mcr.microsoft.com/businesscentral:ltsc2022 Pulling generic image took 1 seconds _____ _ _ _____ _ _ / ____| | | (_) / ____| | | (_) | | _ __ ___ __ _| |_ _ _ __ __ _ | | ___ _ __ | |_ __ _ _ _ __ ___ _ __ | | | '__/ _ \/ _` | __| | '_ \ / _` | | | / _ \| '_ \| __/ _` | | '_ \ / _ \ '__| | |____| | | __/ (_| | |_| | | | | (_| | | |___| (_) | | | | || (_| | | | | | __/ | \_____|_| \___|\__,_|\__|_|_| |_|\__, | \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_| __/ | |___/ PS CallStack : - Write-PSCallStack (HelperFunctions.ps1 Line 1639) - (Run-AlPipeline.ps1 Line 567) - GetBuildContainer (Run-AlPipeline.ps1 Line 554) - (Run-AlPipeline.ps1 Line 2043) - (Run-AlPipeline.ps1 Line 1692) - (Run-AlPipeline.ps1 Line 1687) - (Run-AlPipeline.ps1 Line 1259) - Run-AlPipeline (Run-AlPipeline.ps1 Line 1244) - CreateDevEnv (AL-Go-Helper.ps1 Line 1941) - (localDevEnv.ps1 Line 139) - ( Line 1) Creaing docker container BcContainerHelper is version 6.0.30 BcContainerHelper is running as administrator HyperV is Enabled Host is Microsoft Windows 11 Pro - 10.0.21996.1 UsePsSession is True UsePwshForBc24 is True UseWinRmSession is never UseSslForWinRmSession is True Docker Client Version is 27.2.0 Docker Server Version is 27.2.0 Removing Session bcserver Removing container bcserver Removing entries from hosts Removing bcserver from container hosts file Removing bcserver-* from container hosts file Removing Desktop shortcuts Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver Fetching all docker images Fetching all docker volumes Using image mcr.microsoft.com/businesscentral:ltsc2022 Creating Container bcserver Style: sandbox Multitenant: Yes Version: 25.2.27733.28023 Platform: 25.2.27990.0 Generic Tag: 1.0.2.53 Container OS Version: 10.0.20348.2966 (ltsc2022) Host OS Version: 10.0.21996.1 (Unknown/Insider build) Container and host OS are 20348 or above, not using SSL, recommended isolation mode is process. Using process isolation Using locale en-US Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Additional Parameters: --volume "D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base:c:\sources" --volume "D:/projects/sparkrock/development/repo/github/testing/test-al-go:c:\shared" --env customNavSettings=EnableTaskScheduler=False Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my: - AdditionalOutput.ps1 - HelperFunctions.ps1 - MainLoop.ps1 - SetupVariables.ps1 - updatehosts.ps1 Creating container bcserver from image mcr.microsoft.com/businesscentral:ltsc2022 85b7c85865407227c73d49285da1bc922ece4968e856bcff89e9510bc87d7aad Waiting for container bcserver to be ready Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.2.27733.28023/us Using installer from C:\Run\240 Installing Business Central: multitenant=True, installOnly=False, filesOnly=False, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\25.2.27733.28023\us, platformArtifactPath=c:\dl\sandbox\25.2.27733.28023\platform, databasePath=c:\dl\sandbox\25.2.27733.28023\us\BusinessCentral-US.bak, licenseFilePath=c:\dl\sandbox\25.2.27733.28023\us\Cronus.bclicense, rebootContainer=True Installing from artifacts Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files c:\dl\sandbox\25.2.27733.28023\platform\ServiceTier\Program Files c:\dl\sandbox\25.2.27733.28023\platform\ServiceTier\System64Folder Copying Web Client Files c:\dl\sandbox\25.2.27733.28023\platform\WebClient\Microsoft Dynamics NAV Copying ModernDev Files c:\dl\sandbox\25.2.27733.28023\platform c:\dl\sandbox\25.2.27733.28023\platform\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\dl\sandbox\25.2.27733.28023\us\ConfigurationPackages Copying Test Assemblies C:\dl\sandbox\25.2.27733.28023\platform\Test Assemblies Copying Extensions C:\dl\sandbox\25.2.27733.28023\us\Extensions Copying Applications C:\dl\sandbox\25.2.27733.28023\platform\Applications Copying Applications.US C:\dl\sandbox\25.2.27733.28023\us\Applications.US Copying dependencies Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' Starting Business Central Service Tier Importing license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Stopping Business Central Service Tier Installation took 149 seconds Installation complete Initializing... Setting host.docker.internal to 192.168.0.6 in container hosts file (copy from host hosts file) Setting gateway.docker.internal to 192.168.0.6 in container hosts file (copy from host hosts file) Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file) Setting host.containerhelper.internal to 172.30.176.1 in container hosts file Starting Container Hostname is bcserver PublicDnsName is bcserver WARNING: DNS resolution not working from within the container. Using NavUserPassword Authentication Creating Self Signed Certificate Self Signed Certificate Thumbprint 14CD0ED5ADCBA6A3574F8EC68B9127B2BC8E8575 DNS identity bcserver Modifying Service Tier Config File with Instance Specific Settings Modifying Service Tier Config File with settings from environment variable Setting EnableTaskScheduler to False Starting Service Tier Registering event sources Creating DotNetCore Web Server Instance Using application pool name: BC Using default container name: NavWebApplicationContainer Copy files to WWW root C:\inetpub\wwwroot\BC Create the application pool BC Create website: NavWebApplicationContainer without SSL Update configuration: navsettings.json Done Configuring Web Client Enabling Financials User Experience Dismounting Tenant Mounting Tenant Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Creating http download site Setting SA Password and enabling SA Creating admin as SQL User and add to sysadmin Creating SUPER user WARNING: The password that you entered does not meet the minimum requirements. It should be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, and one number. Container IP Address: 172.30.177.153 Container Hostname : bcserver Container Dns Name : bcserver Web Client : http://bcserver/BC/?tenant=default Dev. Server : http://bcserver Dev. ServerInstance : BC Dev. Server Tenant : default Setting bcserver to 172.30.177.153 in host hosts file Setting bcserver-default to 172.30.177.153 in host hosts file Setting bcserver-default to 172.30.177.153 in container hosts file Files: http://bcserver:8080/ALLanguage.vsix Container Total Physical Memory is 127.1Gb Container Free Physical Memory is 76.1Gb Initialization took 54 seconds Ready for connections! Reading CustomSettings.config from bcserver Creating Desktop Shortcuts for bcserver Cleanup old dotnet core assemblies Container bcserver successfully created Health check returns False, restarting container Removing Session bcserver bcserver Waiting for container bcserver to be ready Initializing... Setting host.docker.internal to 192.168.0.6 in container hosts file (copy from host hosts file) Setting gateway.docker.internal to 192.168.0.6 in container hosts file (copy from host hosts file) Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file) Setting host.containerhelper.internal to 172.30.176.1 in container hosts file Restarting Container PublicDnsName unchanged Hostname is bcserver PublicDnsName is bcserver Using NavUserPassword Authentication Starting Local SQL Server Starting Internet Information Server Starting Service Tier Container IP Address: 172.30.191.211 Container Hostname : bcserver Container Dns Name : bcserver Web Client : http://bcserver/BC/?tenant=default Dev. Server : http://bcserver Dev. ServerInstance : BC Dev. Server Tenant : default Setting bcserver to 172.30.191.211 in host hosts file Setting bcserver-default to 172.30.191.211 in host hosts file Setting bcserver-default to 172.30.191.211 in container hosts file Files: http://bcserver:8080/ALLanguage.vsix Container Total Physical Memory is 127.1Gb Container Free Physical Memory is 79.8Gb Initialization took 17 seconds Ready for connections! Use: Get-BcContainerEventLog -containerName bcserver to retrieve a snapshot of the event log from the container Get-BcContainerDebugInfo -containerName bcserver to get debug information about the container Enter-BcContainer -containerName bcserver to open a PowerShell prompt inside the container Remove-BcContainer -containerName bcserver to remove the container again docker logs bcserver to retrieve information about URL's again Creating Container took 335 seconds Creating AppSourceCop.json for validation AppSourceCop.json content: { "mandatoryAffixes": [ "SRP" ] } Compiling D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\app Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\252\Service to assemblyProbingPath Compile-AppInBcContainer Telemetry Correlation Id: 5c00234e-7633-4012-af3c-be6a2788821b Run-AlPipeline Telemetry Correlation Id: b828cd72-3b7f-49c9-adf6-fc75e30689d5 Error: Error executing script in Container Stacktrace: at Invoke-ScriptInBcContainer, C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 293 at Compile-AppInBcContainer, C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\AppHandling\Compile-AppInNavContainer.ps1: line 159 at , C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1139 at , C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 2184 at , C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1692 at , C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1687 at , C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1259 at Run-AlPipeline, C:\ProgramData\BcContainerHelper\6.0.30\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1244 at CreateDevEnv, C:\Users\Computer\AppData\Local\Temp\cf1ec83b-a9a2-4c7a-a86b-089ec96d388a\AL-Go-Helper.ps1: line 1941 at , D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base\.AL-Go\localDevEnv.ps1: line 139 at , : line 1 PS D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base> ^C PS D:\projects\sparkrock\development\repo\github\testing\test-al-go\sr365-base>