in SamplesV1/ADFSecurePublish/AdfKeyVaultDeployment/AdfFileHelper.cs [261:283]
private JObject ResolveDeploymentSettings(JObject jObject, string name, DeployConfigInfo deployConfig)
{
// Update with values from delpoyment config if exists
if (deployConfig.DeploymentDictionary.Count > 0 && deployConfig.DeploymentDictionary.ContainsKey(name))
{
foreach (KeyValuePair<string, string> pair in deployConfig.DeploymentDictionary[name])
{
JToken token = jObject.SelectToken(pair.Key);
if (token == null)
{
logger.Write(
$"The deployment configuration file '{deployConfig.FileName}' contains a substitution for '{name}' however the JPath '{pair.Key}' is not found in '{name}'.");
}
else
{
token.Replace(pair.Value);
}
}
}
return jObject;
}