microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
385 stars 247 forks source link

New-BCContainer fails due to password complexity #3519

Closed darren-rdy closed 6 months ago

darren-rdy commented 6 months ago

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue When creating a new container, an error is returned that stops the container initialisation: Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain

Scripts used to create container and cause the issue

New-BcContainer `
    -accept_eula `
    -containerName $(ContainerName) `
    -artifactUrl (Get-BCArtifactUrl -country au -version $(bc-build-version) -select Latest -type sandbox) `
    -credential (New-Object pscredential 'admin', (ConvertTo-SecureString -String 'xxxxxxxxxxx' -AsPlainText -Force)) `
    -auth UserPassword `
    -licenseFile C:\Temp\BC$(bc-build-version).flf `
    -memoryLimit 8G `
    -isolation hyperv `
    -imageName BC$(bc-build-version) `
    -includeTestToolkit `
    -additionalParameters @("--volume ""$(Agent.WorkFolder):C:\app""")

Note - sanitised password, is actually upper + lower + symbols + number

Full output of scripts

2024-04-29T02:33:58.1244305Z ##[section]Starting: Create Container
2024-04-29T02:33:58.1326576Z ==============================================================================
2024-04-29T02:33:58.1327076Z Task         : PowerShell
2024-04-29T02:33:58.1327257Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2024-04-29T02:33:58.1327570Z Version      : 2.237.5
2024-04-29T02:33:58.1327702Z Author       : Microsoft Corporation
2024-04-29T02:33:58.1327871Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2024-04-29T02:33:58.1328249Z ==============================================================================
2024-04-29T02:33:58.8646329Z Generating script.
2024-04-29T02:33:58.8898887Z ========================== Starting Command Output ===========================
2024-04-29T02:33:58.9094667Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\DevOps\BCBuildAgent\_work\_temp\50e77681-8178-46a5-8595-d95c290e5942.ps1'"
2024-04-29T02:34:20.2188051Z BcContainerHelper version 6.0.16
2024-04-29T02:34:20.3948240Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-04-29T02:34:20.6160060Z Running on Windows, PowerShell 5.1.17763.2183
2024-04-29T02:34:29.1635957Z BcContainerHelper is version 6.0.16
2024-04-29T02:34:29.1640278Z BcContainerHelper is running as administrator
2024-04-29T02:34:29.9558781Z HyperV is Enabled
2024-04-29T02:34:29.9576573Z UsePsSession is True
2024-04-29T02:34:29.9596742Z UsePwshForBc24 is True
2024-04-29T02:34:29.9610552Z Host is Microsoft Windows Server 2019 Standard - 10.0.17763.2237
2024-04-29T02:34:30.2107275Z Docker Client Version is 19.03.5
2024-04-29T02:34:30.2113412Z Docker Server Version is 19.03.5
2024-04-29T02:34:30.9742927Z Removing Desktop shortcuts
2024-04-29T02:34:31.6781543Z Fetching all docker images
2024-04-29T02:34:31.9125300Z Fetching all docker volumes
2024-04-29T02:34:32.1348293Z ArtifactUrl and ImageName specified
2024-04-29T02:34:33.0902403Z Image bc20:sandbox-20.5.45456.61928-au-mt already exists
2024-04-29T02:34:33.8084785Z Image bc20:sandbox-20.5.45456.61928-au-mt has generic Tag 1.0.2.19, should be 1.0.2.20
2024-04-29T02:34:33.8126432Z Building multitenant image bc20:sandbox-20.5.45456.61928-au-mt based on mcr.microsoft.com/businesscentral:ltsc2019 with https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/20.5.45456.61928/au
2024-04-29T02:34:33.8130539Z Pulling latest image mcr.microsoft.com/businesscentral:ltsc2019
2024-04-29T02:34:34.3236100Z ltsc2019: Pulling from businesscentral
2024-04-29T02:34:34.5487753Z Generic Tag: 1.0.2.20
2024-04-29T02:34:34.7710595Z Container OS Version: 10.0.17763.5696 (ltsc2019)
2024-04-29T02:34:34.7715443Z Host OS Version: 10.0.17763.2237 (ltsc2019)
2024-04-29T02:34:34.7756795Z Using hyperv isolation
2024-04-29T02:34:34.7838052Z Using license file C:\Temp\BC20.flf
2024-04-29T02:34:34.7842412Z Files in c:\bcartifacts.cache\bg5wr0xn.skh\my:
2024-04-29T02:34:34.7867905Z Copying Platform Artifacts
2024-04-29T02:34:34.7910471Z c:\bcartifacts.cache\sandbox\20.5.45456.61928\platform
2024-04-29T02:34:38.1392828Z Copying Database
2024-04-29T02:34:38.4384565Z Copying Licensefile
2024-04-29T02:34:38.4554825Z Copying ConfigurationPackages
2024-04-29T02:34:38.4559815Z C:\bcartifacts.cache\sandbox\20.5.45456.61928\au\ConfigurationPackages
2024-04-29T02:34:38.4772884Z Copying Extensions
2024-04-29T02:34:38.4780064Z C:\bcartifacts.cache\sandbox\20.5.45456.61928\au\Extensions
2024-04-29T02:34:38.5889083Z Copying Applications.AU
2024-04-29T02:34:38.5893860Z C:\bcartifacts.cache\sandbox\20.5.45456.61928\au\Applications.AU
2024-04-29T02:34:39.2055297Z Untagged: bc20:sandbox-20.5.45456.61928-au-mt
2024-04-29T02:34:39.2056352Z Deleted: sha256:d93fa57b01199c5bc490c019bdb28660479a510af27006d795b419473c5d6a59
2024-04-29T02:34:39.2057153Z Deleted: sha256:4f930a8eecc5703871f1348a241275b82aef8d2ecb310caa08099cd967ad6faa
2024-04-29T02:34:39.2096044Z c:\bcartifacts.cache\bg5wr0xn.skh
2024-04-29T02:34:49.5568900Z Sending build context to Docker daemon  2.233GB
2024-04-29T02:34:49.5572176Z 
2024-04-29T02:34:49.6065754Z Step 1/6 : FROM mcr.microsoft.com/businesscentral:ltsc2019
2024-04-29T02:34:49.6070672Z  ---> aa1f513a4b46
2024-04-29T02:34:49.6076003Z Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/20.5.45456.61928/au filesOnly=False
2024-04-29T02:34:49.7769830Z  ---> Running in bc40e35cc804
2024-04-29T02:34:50.3048097Z Removing intermediate container bc40e35cc804
2024-04-29T02:34:50.3055093Z  ---> 4cc7b78e4dd6
2024-04-29T02:34:50.3061695Z Step 3/6 : COPY my /run/
2024-04-29T02:34:51.3986674Z  ---> c8b8c1c6ffb4
2024-04-29T02:34:51.3994519Z Step 4/6 : COPY NAVDVD /NAVDVD/
2024-04-29T02:35:21.8128891Z  ---> 70b471225225
2024-04-29T02:35:21.8137088Z Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit
2024-04-29T02:35:21.8621727Z  ---> Running in b9c10b16f039
2024-04-29T02:35:46.8302156Z c:\run\my folder doesn't exist, creating it
2024-04-29T02:35:47.2401623Z Using DVD installer from C:\Run\150-new
2024-04-29T02:35:47.4140265Z Installing Business Central: multitenant=True, installOnly=True, filesOnly=False, includeTestToolkit=True, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=, platformArtifactPath=, databasePath=, licenseFilePath=, rebootContainer=False
2024-04-29T02:35:47.4222688Z Installing from DVD
2024-04-29T02:35:47.4343903Z Starting Local SQL Server
2024-04-29T02:35:49.3881528Z Starting Internet Information Server
2024-04-29T02:35:49.7856408Z Copying Service Tier Files
2024-04-29T02:35:49.7864179Z C:\NAVDVD\ServiceTier\Program Files
2024-04-29T02:35:51.4767758Z C:\NAVDVD\ServiceTier\System64Folder
2024-04-29T02:35:51.4985348Z Copying PowerShell Scripts
2024-04-29T02:35:51.4991925Z C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
2024-04-29T02:35:51.5621434Z C:\NAVDVD\WindowsPowerShellScripts\WebSearch
2024-04-29T02:35:51.5781045Z Copying Web Client Files
2024-04-29T02:35:51.5787148Z C:\NAVDVD\WebClient\Microsoft Dynamics NAV
2024-04-29T02:35:55.0087935Z Copying Client Files
2024-04-29T02:35:55.0094905Z C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
2024-04-29T02:35:55.8425415Z C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
2024-04-29T02:35:55.9244768Z C:\NAVDVD\LegacyDlls\systemFolder
2024-04-29T02:35:55.9457163Z Copying ModernDev Files
2024-04-29T02:35:55.9469360Z C:\NAVDVD
2024-04-29T02:35:55.9663572Z C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV
2024-04-29T02:35:56.2580366Z Copying additional files
2024-04-29T02:35:56.2675305Z Copying ConfigurationPackages
2024-04-29T02:35:56.2681433Z C:\NAVDVD\ConfigurationPackages
2024-04-29T02:35:56.3001678Z Copying Test Assemblies
2024-04-29T02:35:56.3006656Z C:\NAVDVD\Test Assemblies
2024-04-29T02:35:56.3344029Z Copying Extensions
2024-04-29T02:35:56.3350521Z C:\NAVDVD\Extensions
2024-04-29T02:35:56.6369747Z Copying Applications
2024-04-29T02:35:56.6374877Z C:\NAVDVD\Applications
2024-04-29T02:35:57.7563035Z Copying Applications.AU
2024-04-29T02:35:57.7568152Z C:\NAVDVD\Applications.AU
2024-04-29T02:35:58.0070884Z Copying dependencies
2024-04-29T02:35:58.0281135Z Copying ReportBuilder
2024-04-29T02:36:12.6622185Z Importing PowerShell Modules
2024-04-29T02:36:13.8700959Z Restoring CRONUS Demo Database
2024-04-29T02:36:15.0553070Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2024-04-29T02:36:15.6727503Z Exporting Application to CRONUS
2024-04-29T02:36:38.6837441Z Removing Application from tenant
2024-04-29T02:36:41.9506003Z Modifying Business Central Service Tier Config File for Docker
2024-04-29T02:36:41.9670518Z Creating Business Central Service Tier
2024-04-29T02:36:42.0151454Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2024-04-29T02:36:42.6151588Z Starting Business Central Service Tier
2024-04-29T02:36:48.6631960Z Importing CRONUS license file
2024-04-29T02:36:49.1283672Z Copying Database on localhost\SQLEXPRESS from tenant to default
2024-04-29T02:36:49.1295944Z Taking database tenant offline
2024-04-29T02:36:49.1985852Z Copying database files
2024-04-29T02:36:50.1261943Z Attaching files as new Database default
2024-04-29T02:36:50.5457919Z Putting database tenant back online
2024-04-29T02:36:50.6534579Z Mounting tenant database
2024-04-29T02:36:50.6701411Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2024-04-29T02:38:02.5361154Z Sync'ing Tenant
2024-04-29T02:38:03.0053547Z Tenant is Operational
2024-04-29T02:38:03.2219191Z Permissions Mock is already published
2024-04-29T02:38:03.2226961Z Synchronizing Permissions Mock
2024-04-29T02:38:03.4683155Z Installing Permissions Mock
2024-04-29T02:38:07.6120234Z Test Runner is already published
2024-04-29T02:38:07.6125416Z Synchronizing Test Runner
2024-04-29T02:38:07.8182547Z Installing Test Runner
2024-04-29T02:38:08.1498515Z Any is already published
2024-04-29T02:38:08.1504334Z Synchronizing Any
2024-04-29T02:38:08.1782432Z Installing Any
2024-04-29T02:38:08.3357998Z Library Assert is already published
2024-04-29T02:38:08.3363209Z Synchronizing Library Assert
2024-04-29T02:38:08.3672454Z Installing Library Assert
2024-04-29T02:38:08.5198997Z Skipping Permissions Mock as it is already installed
2024-04-29T02:38:08.5440434Z Library Variable Storage is already published
2024-04-29T02:38:08.5446241Z Synchronizing Library Variable Storage
2024-04-29T02:38:08.5765590Z Installing Library Variable Storage
2024-04-29T02:38:08.7526941Z Publishing C:\Applications.AU\Microsoft_System Application Test Library_20.5.45456.61928.app
2024-04-29T02:38:15.7719724Z Synchronizing System Application Test Library
2024-04-29T02:38:16.1347763Z Installing System Application Test Library
2024-04-29T02:38:17.3921961Z Publishing C:\Applications.AU\Microsoft_Tests-TestLibraries_20.5.45456.61928.app
2024-04-29T02:38:31.4002566Z Synchronizing Tests-TestLibraries
2024-04-29T02:38:32.1395090Z Installing Tests-TestLibraries
2024-04-29T02:38:34.9213627Z Publishing C:\Applications\system application\test\Microsoft_System Application Test.app
2024-04-29T02:38:39.7561599Z Synchronizing System Application Test
2024-04-29T02:38:39.8287902Z Installing System Application Test
2024-04-29T02:38:41.6235909Z Publishing C:\Applications.AU\Microsoft_Tests-Bank_20.5.45456.61928.app
2024-04-29T02:38:45.1131185Z Synchronizing Tests-Bank
2024-04-29T02:38:45.1685202Z Installing Tests-Bank
2024-04-29T02:38:45.3884350Z Publishing C:\Applications.AU\Microsoft_Tests-Cash Flow_20.5.45456.61928.app
2024-04-29T02:38:47.0344042Z Synchronizing Tests-Cash Flow
2024-04-29T02:38:47.0903524Z Installing Tests-Cash Flow
2024-04-29T02:38:47.2936043Z Publishing C:\Applications.AU\Microsoft_Tests-Cost Accounting_20.5.45456.61928.app
2024-04-29T02:38:50.0724289Z Synchronizing Tests-Cost Accounting
2024-04-29T02:38:50.1261532Z Installing Tests-Cost Accounting
2024-04-29T02:38:50.3281623Z Publishing C:\Applications.AU\Microsoft_Tests-CRM integration_20.5.45456.61928.app
2024-04-29T02:38:54.6236818Z Synchronizing Tests-CRM integration
2024-04-29T02:38:54.6798819Z Installing Tests-CRM integration
2024-04-29T02:38:55.6301991Z Publishing C:\Applications.AU\Microsoft_Tests-Data Exchange_20.5.45456.61928.app
2024-04-29T02:38:58.3717080Z Synchronizing Tests-Data Exchange
2024-04-29T02:38:58.4248450Z Installing Tests-Data Exchange
2024-04-29T02:38:58.6204098Z Publishing C:\Applications.AU\Microsoft_Tests-Dimension_20.5.45456.61928.app
2024-04-29T02:39:03.8221499Z Synchronizing Tests-Dimension
2024-04-29T02:39:03.8851384Z Installing Tests-Dimension
2024-04-29T02:39:05.3770269Z Publishing C:\Applications.AU\Microsoft_Tests-ERM_20.5.45456.61928.app
2024-04-29T02:39:57.7092461Z Synchronizing Tests-ERM
2024-04-29T02:39:57.8075280Z Installing Tests-ERM
2024-04-29T02:40:07.6135558Z Publishing C:\Applications.AU\Microsoft_Tests-Fixed Asset_20.5.45456.61928.app
2024-04-29T02:40:10.5106401Z Synchronizing Tests-Fixed Asset
2024-04-29T02:40:10.5673096Z Installing Tests-Fixed Asset
2024-04-29T02:40:10.8022770Z Publishing C:\Applications.AU\Microsoft_Tests-General Journal_20.5.45456.61928.app
2024-04-29T02:40:14.6733790Z Synchronizing Tests-General Journal
2024-04-29T02:40:14.7291779Z Installing Tests-General Journal
2024-04-29T02:40:16.0659135Z Publishing C:\Applications.AU\Microsoft_Tests-Graph_20.5.45456.61928.app
2024-04-29T02:40:18.9119322Z Synchronizing Tests-Graph
2024-04-29T02:40:18.9709315Z Installing Tests-Graph
2024-04-29T02:40:19.2407771Z Publishing C:\Applications.AU\Microsoft_Tests-Integration_20.5.45456.61928.app
2024-04-29T02:40:21.2294624Z Synchronizing Tests-Integration
2024-04-29T02:40:21.2870432Z Installing Tests-Integration
2024-04-29T02:40:21.7415823Z Publishing C:\Applications.AU\Microsoft_Tests-Invoicing_20.5.45456.61928.app
2024-04-29T02:40:23.3019041Z Synchronizing Tests-Invoicing
2024-04-29T02:40:23.3587688Z Installing Tests-Invoicing
2024-04-29T02:40:23.7869582Z Publishing C:\Applications.AU\Microsoft_Tests-Job_20.5.45456.61928.app
2024-04-29T02:40:29.5571168Z Synchronizing Tests-Job
2024-04-29T02:40:29.6131974Z Installing Tests-Job
2024-04-29T02:40:30.3387157Z Publishing C:\Applications.AU\Microsoft_Tests-Local_20.5.45456.61928.app
2024-04-29T02:40:35.8763385Z Synchronizing Tests-Local
2024-04-29T02:40:35.9350291Z Installing Tests-Local
2024-04-29T02:40:36.7397580Z Publishing C:\Applications.AU\Microsoft_Tests-Marketing_20.5.45456.61928.app
2024-04-29T02:40:40.1978501Z Synchronizing Tests-Marketing
2024-04-29T02:40:40.2557048Z Installing Tests-Marketing
2024-04-29T02:40:41.3255162Z Publishing C:\Applications.AU\Microsoft_Tests-Misc_20.5.45456.61928.app
2024-04-29T02:40:51.8601726Z Synchronizing Tests-Misc
2024-04-29T02:40:51.9609794Z Installing Tests-Misc
2024-04-29T02:40:55.1597809Z Publishing C:\Applications.AU\Microsoft_Tests-Monitor Sensitive Fields_20.5.45456.61928.app
2024-04-29T02:40:55.2700083Z Synchronizing Tests-Monitor Sensitive Fields
2024-04-29T02:40:55.3391571Z Installing Tests-Monitor Sensitive Fields
2024-04-29T02:40:55.6039684Z Publishing C:\Applications.AU\Microsoft_Tests-Permissions_20.5.45456.61928.app
2024-04-29T02:40:56.1032568Z Synchronizing Tests-Permissions
2024-04-29T02:40:56.1575484Z Installing Tests-Permissions
2024-04-29T02:40:56.4461518Z Publishing C:\Applications.AU\Microsoft_Tests-Physical Inventory_20.5.45456.61928.app
2024-04-29T02:40:57.0759738Z Synchronizing Tests-Physical Inventory
2024-04-29T02:40:57.1625756Z Installing Tests-Physical Inventory
2024-04-29T02:40:57.6138968Z Publishing C:\Applications.AU\Microsoft_Tests-Prepayment_20.5.45456.61928.app
2024-04-29T02:41:00.9086622Z Synchronizing Tests-Prepayment
2024-04-29T02:41:00.9628622Z Installing Tests-Prepayment
2024-04-29T02:41:01.2388092Z Publishing C:\Applications.AU\Microsoft_Tests-Rapid Start_20.5.45456.61928.app
2024-04-29T02:41:02.3686271Z Synchronizing Tests-Rapid Start
2024-04-29T02:41:02.4653985Z Installing Tests-Rapid Start
2024-04-29T02:41:02.7525938Z Publishing C:\Applications.AU\Microsoft_Tests-Report_20.5.45456.61928.app
2024-04-29T02:41:05.5226940Z Synchronizing Tests-Report
2024-04-29T02:41:05.5822192Z Installing Tests-Report
2024-04-29T02:41:06.6225456Z Publishing C:\Applications.AU\Microsoft_Tests-Resource_20.5.45456.61928.app
2024-04-29T02:41:09.6259479Z Synchronizing Tests-Resource
2024-04-29T02:41:09.6817031Z Installing Tests-Resource
2024-04-29T02:41:10.5957136Z Publishing C:\Applications.AU\Microsoft_Tests-Reverse_20.5.45456.61928.app
2024-04-29T02:41:11.7542722Z Synchronizing Tests-Reverse
2024-04-29T02:41:11.8107247Z Installing Tests-Reverse
2024-04-29T02:41:12.2189447Z Publishing C:\Applications.AU\Microsoft_Tests-SCM_20.5.45456.61928.app
2024-04-29T02:42:16.4234668Z Synchronizing Tests-SCM
2024-04-29T02:42:16.4969602Z Installing Tests-SCM
2024-04-29T02:42:21.0090292Z Publishing C:\Applications.AU\Microsoft_Tests-SMB_20.5.45456.61928.app
2024-04-29T02:42:24.8961639Z Synchronizing Tests-SMB
2024-04-29T02:42:24.9543740Z Installing Tests-SMB
2024-04-29T02:42:25.7122363Z Publishing C:\Applications.AU\Microsoft_Tests-Upgrade_20.5.45456.61928.app
2024-04-29T02:42:25.9063367Z Synchronizing Tests-Upgrade
2024-04-29T02:42:25.9943116Z Installing Tests-Upgrade
2024-04-29T02:42:26.4109892Z Publishing C:\Applications.AU\Microsoft_Tests-User_20.5.45456.61928.app
2024-04-29T02:42:26.5455761Z Synchronizing Tests-User
2024-04-29T02:42:26.6099805Z Installing Tests-User
2024-04-29T02:42:26.8889216Z Publishing C:\Applications.AU\Microsoft_Tests-VAT_20.5.45456.61928.app
2024-04-29T02:42:30.9122061Z Synchronizing Tests-VAT
2024-04-29T02:42:30.9676920Z Installing Tests-VAT
2024-04-29T02:42:31.4461210Z Publishing C:\Applications.AU\Microsoft_Tests-Workflow_20.5.45456.61928.app
2024-04-29T02:42:36.1831816Z Synchronizing Tests-Workflow
2024-04-29T02:42:36.2482141Z Installing Tests-Workflow
2024-04-29T02:42:36.9051233Z Stopping Business Central Service Tier
2024-04-29T02:42:37.1735552Z Installation took 410 seconds
2024-04-29T02:42:37.1830641Z Installation complete
2024-04-29T02:43:50.8209612Z Removing intermediate container b9c10b16f039
2024-04-29T02:43:50.8216495Z  ---> 12802cc23652
2024-04-29T02:43:50.8224967Z Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447"       created="202404290234"       nav=""       cu=""       multitenant="Y"       country="AU"       version="20.5.45456.61928"       platform="20.0.45448.61913"
2024-04-29T02:43:50.8709813Z  ---> Running in 99b8247c9c7d
2024-04-29T02:43:51.4718558Z Removing intermediate container 99b8247c9c7d
2024-04-29T02:43:51.4727374Z  ---> a097747046e5
2024-04-29T02:43:52.5947443Z Successfully built a097747046e5
2024-04-29T02:43:52.6146671Z Successfully tagged bc20:sandbox-20.5.45456.61928-au-mt
2024-04-29T02:43:52.6221230Z Building image took 559 seconds
2024-04-29T02:43:54.8498896Z Using image bc20:sandbox-20.5.45456.61928-au-mt
2024-04-29T02:43:55.1083945Z Creating Container DocumentStorage
2024-04-29T02:43:55.1109008Z Style: sandbox
2024-04-29T02:43:55.1116758Z Multitenant: Yes
2024-04-29T02:43:55.1121000Z Version: 20.5.45456.61928
2024-04-29T02:43:55.1132154Z Platform: 20.0.45448.61913
2024-04-29T02:43:55.1138218Z Generic Tag: 1.0.2.20
2024-04-29T02:43:55.1147936Z Container OS Version: 10.0.17763.5696 (ltsc2019)
2024-04-29T02:43:55.1151759Z Host OS Version: 10.0.17763.2237 (ltsc2019)
2024-04-29T02:43:55.1195945Z Using hyperv isolation
2024-04-29T02:43:55.1212641Z Using locale en-AU
2024-04-29T02:43:55.1237969Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2024-04-29T02:43:55.1276636Z Using license file C:\Temp\BC20.flf
2024-04-29T02:43:55.1944229Z Additional Parameters:
2024-04-29T02:43:55.1952160Z --volume "C:\DevOps\BCBuildAgent\_work:C:\app"
2024-04-29T02:43:55.1956240Z --expose 5986
2024-04-29T02:43:55.1962611Z Files in C:\ProgramData\BcContainerHelper\Extensions\DocumentStorage\my:
2024-04-29T02:43:55.1990955Z - AdditionalOutput.ps1
2024-04-29T02:43:55.1995595Z - AdditionalSetup.ps1
2024-04-29T02:43:55.2000183Z - HelperFunctions.ps1
2024-04-29T02:43:55.2009904Z - license.flf
2024-04-29T02:43:55.2014738Z - MainLoop.ps1
2024-04-29T02:43:55.2019161Z - SetupVariables.ps1
2024-04-29T02:43:55.2023344Z - updatecontainerhosts.ps1
2024-04-29T02:43:55.2027484Z Creating container DocumentStorage from image bc20:sandbox-20.5.45456.61928-au-mt
2024-04-29T02:43:55.4779187Z 488ab12ddb9f51aee12c86da48d4af8b33342b237170f388928a6ac5916bc5a0
2024-04-29T02:44:18.8090565Z Waiting for container DocumentStorage to be ready
2024-04-29T02:44:25.0438739Z Initializing...
2024-04-29T02:44:25.0439709Z Setting host.containerhelper.internal to 172.25.16.1 in container hosts file
2024-04-29T02:44:25.0440170Z Starting Container
2024-04-29T02:44:25.0440354Z Hostname is DocumentStorage
2024-04-29T02:44:25.0440810Z PublicDnsName is DocumentStorage
2024-04-29T02:44:25.0441216Z Using NavUserPassword Authentication
2024-04-29T02:44:27.5219848Z Starting Local SQL Server
2024-04-29T02:44:28.7834426Z Starting Internet Information Server
2024-04-29T02:44:28.7835233Z Creating Self Signed Certificate
2024-04-29T02:44:28.7835864Z Self Signed Certificate Thumbprint 7238894293318DCF74C6A179875E7F8BAADDC9C4
2024-04-29T02:44:28.7836696Z DNS identity DocumentStorage
2024-04-29T02:44:28.7837041Z Modifying Service Tier Config File with Instance Specific Settings
2024-04-29T02:44:44.3507383Z Starting Service Tier
2024-04-29T02:44:44.3508128Z Registering event sources
2024-04-29T02:44:44.3508533Z Creating DotNetCore Web Server Instance
2024-04-29T02:44:44.3509297Z Using application pool name: BC
2024-04-29T02:44:44.3509713Z Using default container name: NavWebApplicationContainer
2024-04-29T02:44:49.3742706Z Copy files to WWW root C:\inetpub\wwwroot\BC
2024-04-29T02:44:50.6254521Z Create the application pool BC
2024-04-29T02:44:51.8696089Z Create website: NavWebApplicationContainer without SSL
2024-04-29T02:44:51.8696649Z Update configuration: navsettings.json
2024-04-29T02:44:53.1201261Z Done Configuring Web Client
2024-04-29T02:44:53.1201769Z Enabling Financials User Experience
2024-04-29T02:44:53.1202035Z Using license file 'c:\run\my\license.flf'
2024-04-29T02:44:58.1121726Z Import License
2024-04-29T02:44:59.3666107Z Dismounting Tenant
2024-04-29T02:44:59.3666570Z Mounting Tenant
2024-04-29T02:45:10.8650440Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2024-04-29T02:45:12.1523203Z Sync'ing Tenant
2024-04-29T02:45:12.1523660Z Tenant is Operational
2024-04-29T02:45:12.1523878Z Creating http download site
2024-04-29T02:45:12.1524124Z Setting SA Password and enabling SA
2024-04-29T02:45:15.9174746Z Creating admin as SQL User and add to sysadmin
2024-04-29T02:45:17.1664332Z Creating SUPER user
2024-04-29T02:45:33.9048577Z Enable PSRemoting and setup user for winrm
2024-04-29T02:45:33.9049534Z Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.
2024-04-29T02:45:33.9050165Z 
2024-04-29T02:45:33.9050912Z at <ScriptBlock>, C:\Run\my\AdditionalSetup.ps1: line 8
2024-04-29T02:45:33.9051792Z at <ScriptBlock>, C:\Run\navstart.ps1: line 243
2024-04-29T02:45:33.9052232Z at <ScriptBlock>, C:\Run\start.ps1: line 390
2024-04-29T02:45:33.9058247Z at <ScriptBlock>, <No file>: line 1Error
2024-04-29T02:45:33.9062939Z Initializing...
2024-04-29T02:45:33.9063464Z Setting host.containerhelper.internal to 172.25.16.1 in container hosts file
2024-04-29T02:45:33.9063953Z Starting Container
2024-04-29T02:45:33.9064149Z Hostname is DocumentStorage
2024-04-29T02:45:33.9064367Z PublicDnsName is DocumentStorage
2024-04-29T02:45:33.9064587Z Using NavUserPassword Authentication
2024-04-29T02:45:33.9064867Z Starting Local SQL Server
2024-04-29T02:45:33.9065073Z Starting Internet Information Server
2024-04-29T02:45:33.9065304Z Creating Self Signed Certificate
2024-04-29T02:45:33.9065649Z Self Signed Certificate Thumbprint 7238894293318DCF74C6A179875E7F8BAADDC9C4
2024-04-29T02:45:33.9066032Z DNS identity DocumentStorage
2024-04-29T02:45:33.9066325Z Modifying Service Tier Config File with Instance Specific Settings
2024-04-29T02:45:33.9066663Z Starting Service Tier
2024-04-29T02:45:33.9066835Z Registering event sources
2024-04-29T02:45:33.9067048Z Creating DotNetCore Web Server Instance
2024-04-29T02:45:33.9067280Z Using application pool name: BC
2024-04-29T02:45:33.9067558Z Using default container name: NavWebApplicationContainer
2024-04-29T02:45:33.9067887Z Copy files to WWW root C:\inetpub\wwwroot\BC
2024-04-29T02:45:33.9068150Z Create the application pool BC
2024-04-29T02:45:33.9068420Z Create website: NavWebApplicationContainer without SSL
2024-04-29T02:45:33.9068727Z Update configuration: navsettings.json
2024-04-29T02:45:33.9068970Z Done Configuring Web Client
2024-04-29T02:45:33.9069182Z Enabling Financials User Experience
2024-04-29T02:45:33.9069435Z Using license file 'c:\run\my\license.flf'
2024-04-29T02:45:33.9069686Z Import License
2024-04-29T02:45:33.9069966Z Dismounting Tenant
2024-04-29T02:45:33.9070140Z Mounting Tenant
2024-04-29T02:45:33.9070587Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2024-04-29T02:45:33.9071046Z Sync'ing Tenant
2024-04-29T02:45:33.9071215Z Tenant is Operational
2024-04-29T02:45:33.9071402Z Creating http download site
2024-04-29T02:45:33.9071619Z Setting SA Password and enabling SA
2024-04-29T02:45:33.9071885Z Creating admin as SQL User and add to sysadmin
2024-04-29T02:45:33.9072149Z Creating SUPER user
2024-04-29T02:45:33.9072346Z Enable PSRemoting and setup user for winrm
2024-04-29T02:45:33.9072992Z Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.
2024-04-29T02:45:33.9073562Z 
2024-04-29T02:45:33.9073760Z at <ScriptBlock>, C:\Run\my\AdditionalSetup.ps1: line 8
2024-04-29T02:45:33.9074107Z at <ScriptBlock>, C:\Run\navstart.ps1: line 243
2024-04-29T02:45:33.9074404Z at <ScriptBlock>, C:\Run\start.ps1: line 390
2024-04-29T02:45:33.9074668Z at <ScriptBlock>, <No file>: line 1
2024-04-29T02:45:34.5040625Z New-BcContainer Telemetry Correlation Id: 4656e1a8-d279-4007-b5fd-74da92651d9b
2024-04-29T02:45:34.5322355Z Initialization of container DocumentStorage failed
2024-04-29T02:45:34.5323229Z At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.16\ContainerHandling\Wait-NavContainerReady.ps1:42 
2024-04-29T02:45:34.5324052Z char:17
2024-04-29T02:45:34.5324298Z + ...             throw "Initialization of container $containerName failed" ...
2024-04-29T02:45:34.5324704Z +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-04-29T02:45:34.5325264Z     + CategoryInfo          : OperationStopped: (Initialization ...tStorage failed:String) [], RuntimeException
2024-04-29T02:45:34.5325851Z     + FullyQualifiedErrorId : Initialization of container DocumentStorage failed
2024-04-29T02:45:34.5326230Z  
2024-04-29T02:45:34.6038265Z ##[error]PowerShell exited with code '1'.
2024-04-29T02:45:34.6430500Z ##[section]Finishing: Create Container

...

Screenshots N/A

Additional context

darren-rdy commented 6 months ago

Hi Freddy, Please let me know if you need any more information. Really appreciate the work you put into this package. Cheers, Darren.

freddydk commented 6 months ago

In this case, it is trying to create a winrm user inside the container and prepare the container for a connection. I will investigate why this doesn't work - why the PW doesn't meet domain requirements??? Could you tell me what the value if this:

(Get-CimInstance win32_ComputerSystemProduct).UUID

is on your machine?

darren-rdy commented 6 months ago

UUID on the Docker host machine is 03000200-0400-0500-0006-000700080009

The container is not domain joined, so surely it's not trying to check my actual domain password policy?

freddydk commented 6 months ago

Thanks Under PS5 as administrator, you can connect to the container with no authentication. Running PS5 as non-admin or PS7 - this doesn't work, so I create a user inside the container and use the UUID from the host as password - obviously the UUID is not a very secure password, but it is only for connections from the host. So, your UUID doesn't meet the password requirements inside of the container. I will fix this by modifying the password generation - and also allow people to set tryWinRmSession configuration to false in order to avoid winrm altogether.

Expect a new ContainerHelper later today with these fixes.

freddydk commented 6 months ago

please test the latest preview, which should have a fix for this.

darren-rdy commented 6 months ago

Thanks Freddy - confirmed working