Skip to content

How to generate and manage secrets

Robert Senktas edited this page Apr 19, 2018 · 1 revision

SIX module provides a functions to generate password with specified lenght and generate a random string in a hexadecimal format.

The example how to use password and randomHex config function is shown below:

"Variables": {
    "SitecoreAdminPassword": "[password('8')]",
    "SqlAdminPassword": "[password('16')]",
    "EXMCryptographicKey": "[randomHex('32')]",
    "EXMAuthenticationKey": "[randomHex('32')]"
  },

The example Powershell script to run secrets-example.json

Import-Module SitecoreInstallFramework

$folderRoot = Split-Path -Path $MyInvocation.MyCommand.Source -Parent

$secretParams =@{
    Path = "$folderRoot\secrets-example.json"
    DeploymentId = "1244"
    AzureKeyVaultName = "<put your own keyvault name>"
    SubscriptionName = "<put your own subscription name>"
}

Install-SitecoreConfiguration @secretParams -Verbose

Clone this wiki locally