The Generated Artifacts zip file contains files with placeholders for the target environment parameters.
You should replace all the placeholders to deploy your Microsoft SQL Server Target System.
Replace Placeholders
A toolkit is provided in the generated artifacts to replace placeholders.
It is composed of a Powershell script to execute: replace_placeholders.ps1.
For executing commands with Powershell later in this article, please use at least version 7 provided by Microsoft. If you would like to install the latest version, please check here.
The process to follow is:
- Update the replacement_config.json file with your values:
- Insert the value to replace into the value node for:
- The target Microsoft SQL Server database(s) in the placeholder database_name
- Ex.: C3-X-MS-DIM
- The target Microsoft SQL Server schemas in the placeholders schema_name
- Ex.: SA
- The source(s) Microsoft SQL Server database(s) and schema(s) in the placeholders database_name, and schema_name
- Ex.:
- database_name: AdventureWorks2019
- schema_name: Person
- Ex.:
- The target Microsoft SQL Server database(s) in the placeholder database_name
- Insert the value to replace into the value node for:
The placeholder values for server_name must be empty, except your data solution architecture is deployed on several servers, and you are using Linked Server to allow communication between them. In this case, the Linked Server name must be filled in the server_name placeholder.
- Replace the placeholders in the files:
- Open Windows Powershell (or equivalent) in the replace_placeholders.ps1 location:
- Execute the following command :
-
.\replace_placeholders.ps1
- Open Windows Powershell (or equivalent) in the replace_placeholders.ps1 location:
-
- You should have a similar result:
- You should have a similar result:
- The placeholders were replaced in each concerned file
- You can now use these files and deploy your Target system
Some parameters can be added to the replace_placeholders.ps1 command.
All are described and available by executing:
.\replace_placeholders.ps1 -help
The -ReplacementConfigPath parameter mainly permits using a replacement_config.json file in another path. It is beneficial when you are in a development mode for your project.
Example of usage:
.\replace_placeholders.ps1 -ReplacementConfigPath "C:\TEMP\Replacement config files\replacement_config_MSSQLServer.json"