shurick81 / dynamics365configuration Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.powershellgallery.com/packages/Dynamics365Configuration
Home Page: https://www.powershellgallery.com/packages/Dynamics365Configuration
This parameter should be not mandatory. It should be automatically figured out based on the version of the product.
In conditions when Dynamics Server is not installed but reporting services are installed on the machine, Install-Dynamics365Server
command is returning CRM_Server_Serviceability_Version registry value is not found
exception
Install process takes around 30-70 minutes depending on the resources. It would be nice to pull installation logs in real time.
One trick which can be useful is below. It can be adapted into the install process to monitor it in real time.
# pull logs in the real time
Get-Content $path -Wait
``
Install-Dynamics365Server does the pulling of the job status, it could potentially read $path, compare new lines added, and the push int the console output in -verbose mode or with special flag.
Unattended installs would surely benefit from this feature.
In current version of the module, these updates are missing
It would be nice if this module could output or capture errors during the installation process.
Currently, install process fails without explanation:
Installation job finished but the product is still not installed. Current product version installed is 'Could not load
crm: Microsoft.Crm.PowerShell PSSnapin'
It can be improved in various ways:
$path = "install-log-path"
Get-Content $path | Select-String -Pattern "Error" -SimpleMatch
Finally, Install-Dynamics365Server behaviour on failure should be known:
azure-arm: Install-Dynamics365Prerequisite -Prerequisite SQLNCli2012SP4 -DynamicsPrerequisiteFilePath .
==> azure-arm: Hash does not match A391BF631CCA15E5CEB4BD6B5D17EAE4B1EA25C3
azure-arm: 10/31/2020 09:16:25 Downloading https://download.microsoft.com/download/F/3/C/F3C64941-22A0-47E9-BC9B-1A19B4CA3E88/ENU/x64/sqlncli.msi to C:\Users\packer\AppData\Local\Temp\a8dd7fab-3673-4f71-9335-a4e3db253b89\sqlncli.msi
azure-arm: 10/31/2020 09:16:25 Calculating hash for C:\Users\packer\AppData\Local\Temp\a8dd7fab-3673-4f71-9335-a4e3db253b89\sqlncli.msi
azure-arm: Hash of the downloaded file: 987E185CFB57FEBAC85770ABCCC6DEFB62DE0B4A
azure-arm: 10/31/2020 09:16:25 Hash does not match A391BF631CCA15E5CEB4BD6B5D17EAE4B1EA25C3
==> azure-arm: At C:\Program
==> azure-arm: Files\WindowsPowerShell\Modules\Dynamics365Configuration\2.0.0\DownloadAndUnpack-Dynamics365Resource.psm1:68 char:21
==> azure-arm: + ... Throw "Hash does not match $expectedFileChecksum";
==> azure-arm: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm: + CategoryInfo : OperationStopped: (Hash does not m...D17EAE4B1EA25C3:String) [], RuntimeException
==> azure-arm: + FullyQualifiedErrorId : Hash does not match A391BF631CCA15E5CEB4BD6B5D17EAE4B1EA25C3
==> azure-arm:
Install-Dynamics365Prerequisite -Prerequisite SQLSysClrTypes2016 -DynamicsPrerequisiteFilePath .
11/01/2020 08:52:49 Downloading https://download.microsoft.com/download/8/7/2/872BCECA-C849-4B40-8EBE-21D48CDF1456/ENU/x64/SQLSysClrTypes.msi to C:\Users\vagrant\AppData\Local\Temp\d8646e3f-1a83-4e12-bfe7-66816f947a7a\SQLSysClrTypes.msi
The remote server returned an error: (404) Not Found.
Expected behavior - the command is gently informs that the software is already installed. With such behavior, it would be easier to develop idempotent deployment scripts.
Command
Install-Dynamics365ReportingExtensions `
-MediaDir c:\DynamicsResources\Dynamics365Server90RTMSve\SrsDataConnector `
-ConfigDBServer $env:COMPUTERNAME\SQLInstance01 `
-InstanceName SSRS `
-LogFilePath c:\tmp\Dynamics365ServerReportingExtensionsInstallLog.txt `
-LogFilePullIntervalInSeconds 15 `
-LogFilePullToOutput
Getting this error
Error| Check ReportServerValidator : Failure: Unable to validate SQL Server Reporting Services Report Server
installation. Please check that it is correctly installed on the local machine.
SQL SSRS 2017 is provisioned, web site is available.
If any characters in some parameters, for example in user account passwords, are not from the ascii list, the installation fails.
The log output:
10:01:28| Info| === Setup bootstrap logging started 1/30/2021 10:01:28 AM ===
10:01:28| Info| Bootstrap version: 9.0.2.3034.
10:01:28| Info| User: _crmadmin.
10:01:28|Warning| Cannot check for reboot required for updates: Could not obtain ISystemInformation object. hr=0x80070005
10:01:28| Info| No pending reboot detected
10:01:28| Info| ConfigFileName: C:\Users\_CRMAD~1\AppData\Local\Temp\98b78c52-cc7f-44fa-834a-23db66d44256.xml
10:01:28| Info| Clean up the BITS downloader.
10:01:28| Info| === Setup bootstrap logging ended 1/30/2021 10:01:28 AM ===
In the C:\Users\<install_account>\AppData\Roaming\Microsoft\MSCRM\Logs\crmsetup.log
file you can find the following output:
10:01:28| Info| === Setup bootstrap logging started 1/30/2021 10:01:28 AM ===
10:01:28| Info| Bootstrap version: 9.0.2.3034.
10:01:28| Info| User: _crmadmin.
10:01:28| Info| Invoked with command line: "C:\Install\Dynamics\Dynamics365Server90RTMEnu\SetupServer.exe" /Q /config C:\Users\_CRMAD~1\AppData\Local\Temp\98b78c52-cc7f-44fa-834a-23db66d44256.xml /L C:\Users\_crmadmin\AppData\Roaming\Microsoft\MSCRM\Logs\CRMInstallationLog_2021-01-30-10-01-26Z.txt
10:01:28| Info| Running C:\Install\Dynamics\Dynamics365Server90RTMEnu\SetupServer.exe
10:01:28| Info| Loading bootstrap library C:\Install\Dynamics\Dynamics365Server90RTMEnu\ServerSetup.dll
10:01:28| Info| Dynamics 365 is not currently installed.
10:01:28| Info| Closing bootstrap library C:\Install\Dynamics\Dynamics365Server90RTMEnu\ServerSetup.dll
10:01:28| Info| Error 0x00000003 encountered when trying to find the MSP update file.
10:01:28| Info| No MSP update will be installed.
10:01:28| Info| Beginning to parse configuration file 'C:\Users\_CRMAD~1\AppData\Local\Temp\98b78c52-cc7f-44fa-834a-23db66d44256.xml'
10:01:28| Info| Found product element: server
10:01:28| Info| Found patch element
10:01:28| Info| Update=False
10:01:28| Info| End of patch element
10:01:28| Error| Error parsing config file(HRESULT = 0xC00CEE2B) (ConfigFileParse.h:CConfigFileParser::Parse:435).
10:01:28| Info| Clean up the BITS downloader.
10:01:28| Error| Error parsing config file, Error, OK
10:01:28| Info| InputResult: No Input
10:01:28| Info| Uninitializing COM.
10:01:28| Info| Uninitialized COM.
10:01:28| Info| Clean up the BITS downloader.
10:01:28| Info| === Setup bootstrap logging ended 1/30/2021 10:01:28 AM ===
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.