Skip to content

DevCDR customizing

Roger Zander edited this page Dec 7, 2019 · 14 revisions

This Page documents all the options to customize DevCDR without code modifications.

DevCDR Server

When customizing the Server, it's important that all modifications will survive an update of the instance. The following options will not be modified during update.

Instance Name and Title

You can customize the Instance Title and Name.

Application settings:

  • INSTANCETITLE = "Default Environment"
  • INSTANCENAME = "Default"

Hostname filtering

Hostname filtering allows to specify a Rule (Regex) on Computernames so that only valid names will be able to send inventory and run compliance checks. Application settings:

  • ComputernameRegex = (.*?)

Note: This is not a security feature. The goal is reduce inventory from clients that will change the name (e.g. during setup)

Inventory

Inventory will be collected by running a PowerShell script hosted on the Server. You can change the name of the PowerShell file that is triggerred by the Agents. The PowerShell File must be copied into the same path as the default inventory.ps1 (wwwroot\jaindb). Do not replace or modify inventory.ps1 as this file will be replaced with the next server update. Application settings:

  • ScriptInventory = inventory.ps1

Note: It's highly recommended to sign this PowerShell script.

Compliance check

Every DevCDR Agents is running a PowerShell script at a schedule (default every 30min). This script is hosted on the server in wwwroot\jaindb\compliance_default.ps1. If you want to have a customized version, do not change this file, create a new File and set the FileName in the ScriptCompliance variable.

Application settings:

  • ScriptCompliance = compliance_default.ps1

Note: It's highly recommended to sign this PowerShell script.

Context Menu

additional File: wwwroot\plugin_ContextMenu.cshtml

Logging

Application settings:

  • Log-SharedKey =
  • Log-WorkspaceID =

Reporting

Application settings:

  • REPORTUSER =
  • REPORTPASSWORD =

IP Location lookup

  • IP2LocationURL = { IPLocationLookup WebService }

Azure SignalR Service

Only set the following variables if you are using Azure SignalR Service !

Enterprise Functions

  • fnDevCDR = URL to Enterprise REST API
  • CUSTOMERID = Default Customer Key

DevCDR Agent

Fallback URL

Inventory interval

Compliancecheck interval

Status interval

Heartbeat properties

JainDB

Inventory forwarder

Storage Providers