dsccommunity / SharePointDsc

The SharePointDsc PowerShell module provides DSC resources that can be used to deploy and manage a SharePoint farm
MIT License
247 stars 107 forks source link

[SPConfigWizard] Add possibility to temporarily dismount content databases during config wizard #1413

Open ykuijs opened 2 years ago

ykuijs commented 2 years ago

Problem description

(Idea provided by Markku Partanen)

Would it be an idea to temporarily dismount content databases before running the configuration wizard and mounting them again afterwards.

This means that without any content databases the configuration wizard will complete faster. Also, when remounting the databases again, the upgrade will run in parallel instead of sequential by running the config wizard.

Some important considerations are:

Verbose logs

N/A

DSC configuration

SPConfigWizard RunConfigWizard
{
    IsSingleInstance     = "Yes"
    DismountDatabases    = $true
    PsDscRunAsCredential = $SetupAccount
}

or 

SPConfigWizard RunConfigWizard
{
    IsSingleInstance     = "Yes"
    DismountDatabases    = @("SPContent1", "SPContent2")
    PsDscRunAsCredential = $SetupAccount
}

Suggested solution

Potentially add possibility to dismount content databases before upgrade, to speed up upgrade process.

SharePoint version and build

All

Operating system the target node is running

All

PowerShell version and build the target node is running

All

SharePointDsc version

Dev