Class-based DSC resources to manage SCOM components as well as install SCOM. Looking for a schema-based (MOF) resource instead? Go to https://github.com/dsccommunity/xscom.
Configure the Agent Approval Setting for the management group. Select between AutoApprove, AutoReject and Pending.
IsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.ApprovalType[string] Mandatory: Possible Values: (AutoApprove,AutoReject,Pending) Approval type for new agents
Configure the alert resolution setting.
IsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.HealthyAlertAutoResolveDays[Int32]: Number of days after which healthy alerts are automatically resolvedAlertAutoResolveDays[Int32]: Number of days after which alerts are automatically resolved
This module expects some sanity in your choices when using the cScomComponent resource. This resource is used for the installation or removal of all SCOM components. The possible combinations of parameters are not validated. Rather, it is expected that you at least in principle know which parameters SCOM expects. For your reference, these can be reviewed here: https://docs.microsoft.com/en-us/system-center/scom/install-using-cmdline?view=sc-om-2022
SourcePath[string] Mandatory: Directory containing the extraced SCOM setup filesRole[string] Mandatory: Possible Values: (AdditionalManagementServer,FirstManagementServer,NativeConsole,ReportServer,WebConsole) Role of this systemIsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.SqlInstancePort[UInt16]: Port of the SQL instanceProductKey[string]: Product key to configureManagementServer[string]: If role permits, existing management server to connect toManagementServicePort[UInt16]: If role permits, port of existing management serverSqlServerInstance[string]: Name of SQL server (instance)WebConsoleUseSSL[bool]: If Web Console is used, indicates if SSL should be used.WebSiteName[string]: If Web Console is used, name of the web siteWebConsoleAuthorizationMode[string]: If Web Console is used, authorization mode for the web siteSRSInstance[string]: SQL Server Reporting Services instance if Report Server is used.UseMicrosoftUpdate[bool]: Indicates that Setup should use Microsoft UpdateManagementGroupName[string]: Name of the management group, required if management servers are deployedDataReader[PSCredential]: DataReader credential for SqlServerInstanceDataWriter[PSCredential]: DataWriter credential for SqlServerInstanceDatabaseName[string]: Name of Database to useActionAccount[PSCredential]: Credential for Action AccountDASAccount[PSCredential]: Credential for DAS AccountEnsure[string]: Possible Values: (Absent,Present) Use Ensure to configure or unconfigure a setting.InstallLocation[string]: Installation directoryDwSqlServerInstance[string]: Name of DW SQL server (instance)DwDatabaseName[string]: Name of DW databaseDwSqlInstancePort[UInt16]: Port of DW SQL server (instance)
Configure settings for database cleanup.
IsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.PerformanceDataDaysToKeep[Byte]: How long is performance data keptMonitoringJobDaysToKeep[Byte]: How long are monitoring jobs keptPerformanceSignatureDaysToKeep[Byte]: How long are performance signatures keptStateChangeEventDaysToKeep[Byte]: How long are state change events keptMaintenanceModeHistoryDaysToKeep[Byte]: How long will the maintenance mode history be availableAvailabilityHistoryDaysToKeep[Byte]: How long will the availability history be availableAlertDaysToKeep[Byte]: How long should alerts be keptJobStatusDaysToKeep[Byte]: How long should job statuus be keptEventDaysToKeep[Byte]: How long should events be kept
Data Warehouse configuration for a management server instance
ServerName[string] Mandatory: SQL Server/InstanceIsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.DatabaseName[string] Mandatory: DW Database
Configure discovery of an unsealed management pack, either using the ClassName parameter for an object class,
or the GroupOrInstance to specify groups and class instances.
Discovery, ManagementPack, ClassName are searched for in both DisplayName and Name. GroupOrInstance is only searched
for by Name.
ManagementPack[string] Mandatory: DisplayName or Name of management pack to discover.Discovery[string] Mandatory: DisplayName or Name of DiscoveryEnsure[string]: Possible Values: (Absent,Present) Use Ensure to configure or unconfigure a setting.GroupOrInstance[string[]]: List of group/instance namesClassName[string[]]: DisplayName or Name of object class, if GroupOrInstance is not used.Enforce[bool]: Indicates if discovery will be enforced.
Error Reporting configuration
ReportSetting[string] Mandatory: Possible Values: (AutomaticallySend,OptOut,PromptBeforeSending) How should errors be sent?IsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.
Agent hearbeat setting
IsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.MissingHeartbeatThreshold[Int32]: Specifies an integer threshold. A management server ignores this many missing heartbeats before it raises an alert.HeartbeatIntervalSeconds[Int32]: Heartbeat interval.
Configure a maintenance schedule for one or more objects.
MonitoringObjectGuid[string[]] Mandatory: List of object GUIDs to configure maintenance schedule forName[string] Mandatory: Name of maintenance scheduleReasonCode[string] Mandatory: Possible Values: (ApplicationInstallation,ApplicationUnresponsive,ApplicationUnstable,LossOfNetworkConnectivity,PlannedApplicationMaintenance,PlannedHardwareInstallation,PlannedHardwareMaintenance,PlannedOperatingSystemReconfiguration,PlannedOther,SecurityIssue,UnplannedApplicationMaintenance,UnplannedHardwareInstallation,UnplannedHardwareMaintenance,UnplannedOperatingSystemReconfiguration,UnplannedOther) Reason for maintenanceActiveStartTime[DateTime] Mandatory: Start time for maintenanceDuration[UInt32] Mandatory: Duration of maintenanceFreqType[UInt32] Mandatory:FreqRelativeInterval[UInt32]:FreqRecurrenceFactor[UInt32]:Recursive[bool]:FreqInterval[UInt32]:Comments[string]:ActiveEndDate[DateTime]: End time for maintenanceEnsure[string]: Possible Values: (Absent,Present) Use Ensure to configure or unconfigure a setting.
This resource allows you to import management packs either from file or from a string.
Name[string] Mandatory: Name of the management packManagementPackPath[string]: Path to the management pack file to import.ManagementPackContent[string]: Content of the management packEnsure[string]: Possible Values: (Absent,Present) Use Ensure to configure or unconfigure a setting.
Reporting Services configuration.
ReportingServerUrl[string] Mandatory: Report Server URL to use.IsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.
Web Console setting.
IsSingleInstance[string] Mandatory: Possible Values: (yes) Indicates that this resource is used only once in a node configuration.WebConsoleUrl[string]: Web Console URLOnlineProductKnowledgeUrl[string]: Knowledge URL