microsoft / navcontainerhelper

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

The provided email address and password are not valid Office 365 or Exchange credentials. #1378

Closed shashiBssi closed 3 years ago

shashiBssi commented 3 years ago

The provided email address and password are not valid Office 365 or Exchange credentials.

this error occurs while setting up outlook addin in docker container.

Steps Go to Assisted Setup in BC Then under Do More with Business Central click on Setup your Business Inbox In Outlook Then complete the setup by providing all the details such as Email and password click next and the error.

script

New-NavContainer -containerName $oldcontainer `
        -accept_eula `
        -auth NavUserPassword `
        -doNotExportObjectsToText `
        -artifactUrl $artifactUrl `
        -credential $credential `
        -licenseFile $mylicense `
        -updateHosts `
        -memoryLimit 5G `
        -assignPremiumPlan `
        -dns 8.8.8.8 `
        -useSSL `
        -installCertificateOnHost `

NavContainerHelper is version 0.7.0.26
NavContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 2004
Docker Client Version is 19.03.12
Docker Server Version is 19.03.12
Removing container bc18
Removing bc18 from host hosts file
Removing C:\ProgramData\NavContainerHelper\Extensions\bc18
Fetching all docker images
Pulling image mcr.microsoft.com/dynamicsnav:10.0.19041.508-generic
10.0.19041.508-generic: Pulling from dynamicsnav
Using image mcr.microsoft.com/dynamicsnav:10.0.19041.508-generic
Downloading application artifact /sandbox/16.5.15897.17820/us
Downloading C:\Users\shashi\AppData\Local\Temp\0fe26b8f-3c12-4fda-8e21-e6ce83d2e55b.zip

PS C:\WINDOWS\system32> E:\PS Commansds\container public Artifct.ps1
NavContainerHelper is version 0.7.0.26
NavContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 2004
Docker Client Version is 19.03.12
Docker Server Version is 19.03.12
Removing C:\ProgramData\NavContainerHelper\Extensions\bc18
Fetching all docker images
Pulling image mcr.microsoft.com/dynamicsnav:10.0.19041.508-generic
10.0.19041.508-generic: Pulling from dynamicsnav
Using image mcr.microsoft.com/dynamicsnav:10.0.19041.508-generic
Creating Container bc18
Version: 17.0.17126.17806-US
Style: sandbox
Platform: 17.0.17020.17774
Generic Tag: 0.1.0.24
Container OS Version: 10.0.19041.508 (2004)
Host OS Version: 10.0.19041.508 (2004)
Using locale en-US
Using process isolation
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file E:\bc license\D365BC-V17.flf
Files in C:\ProgramData\NavContainerHelper\Extensions\bc18\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bc18 from image mcr.microsoft.com/dynamicsnav:10.0.19041.508-generic
4f314553c7773cc5286f031b4891d098e90844eb9b8e1fd3621e6a28a97b5ce1
Waiting for container bc18 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/17.0.17126.17806/us
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
start...
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\17.0.17126.17806\us\BusinessCentral-US.bak
Restoring CRONUS Demo Database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying Applications.US
Starting Business Central Service Tier
Importing license file
Stopping Business Central Service Tier
Installation took 257 seconds
Installation complete
Initializing...
Setting host.docker.internal to xxxxxxxxx in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to xxxxxxxxxxxxx in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to xxxxxxxxxxxxxxxxx in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to xxxxxxxxxxxxxxxxxx in container hosts file
Starting Container
Hostname is bc18
PublicDnsName is bc18
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 901EF87DDBB026E0E9805ADD7A5A1C4F01E248E8
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating sv 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.
Assign Premium plan for SV
Container IP Address: xx.xx.xx.xxx
Container Hostname  : bc18
Container Dns Name  : bc18
Web Client          : https://bc18/BC/
Dev. Server         : https://bc18
Dev. ServerInstance : BC
Setting bc18 to xxxxxxxxxxxxxxxxxx in host hosts file

Files:
http://bc18:8080/ALLanguage.vsix
http://bc18:8080/certificate.cer

Container Total Physical Memory is 31.9Gb
Container Free Physical Memory is 6.7Gb

Initialization took 56 seconds
Ready for connections!
Reading CustomSettings.config from bc18
Certificate with thumbprint 901EF87DDBB026E0E9805ADD7A5A1C4F01E248E8 imported successfully
freddydk commented 3 years ago

You are using the sandbox artifacts - could you try to do the same with onprem artifacts instead?

freddydk commented 3 years ago

Also please change to bcContainerHelper when you can (all containers must be removed first) - there are a lot of fixes in BcContainerHelper - not specifically in this area though.

mavohra commented 2 years ago

I'm getting this error while trying to setup outlook add-in. What was the solution, can someone please guide me in this?

freddydk commented 2 years ago

I think the solution was to use onprem artifacts - or run container with -runsandboxasonprem