Skip to content

Configuration

sqlstad edited this page Oct 9, 2020 · 2 revisions

The first that needs to be done after installing the module for the first time is to configure it.

The command that is responsible for the configuration is “Set-DcnConfiguration”.

There are two ways to configure the module:

  1. Using JSON files to store information
  2. Using a SQL Server database to store information

There are pros and cons for each decision

Using JSON files

Pros

  • No database needed
  • Easy configuration

Cons

  • Can be easily corrupted
  • Is prone to data loss

Using a SQL Server database

Pros

  • Less prone to corruption

Cons

  • Adds extra elements to the cloning infrastructure (database)
  • Extra authentication needed for database server

Configuration Command

JSON files

The example below will configure the module for the use of JSON files, saved on the server SQLDB1.

Set-DcnConfiguration -InformationStore File -Path \\sqldb1\dbaclone

SQL Server database

The example below will configure the module for the use of a SQL Server database on SQLDB1. By default, when no database name is set, the database name will be set to “dbaclone”.

$Credential = Get-Credential
Set-DcnConfiguration -InformationStore SQL -SqlInstance SQLDB1 -SqlCredential $Credential

Configuration Wizard

When the command is executed without any parameters it will prompt the user for input like a wizard.

Set-DcnConfiguration

JSON files

Example result

JSON Configuration

SQL Server database

Example result

Database Configuration

In the example no credential was set to authenticate to the database server.

Clone this wiki locally