xSCOM 1.3.3.0在Azure VM上运行DSC时引发异常



全部,

我正在尝试自动化基础设施,我使用Azure DevOps CI/CD Pipeline部署VM,并使用DSC使用模块XSCOM 1.3.3.0配置/安装SCOM。根据我的同事的说法,下面的代码在VMWare虚拟机上工作。

问题:对以下错误或以自动方式在Azure计算机上安装SCOM的任何其他方法有什么想法吗?

DSC代码:

xSCOMManagementServerSetup "OMMS"
{
DependsOn         = @('[Package]ODBCDriver13', '[Package]SQLClient11')
Ensure     = "Present"
SourcePath        = $SCM2016Path
SetupCredential   = $AdminCreds
#ProductKey       = $Node.SCM2016Key
ManagementGroupName   = $MgmtGrp
InstallPath       = $SCM2016InstallPath
FirstManagementServer = $false
ActionAccount     = $OpsActionCredential
DASAccount        = $OpsSDKCredential
DataReader        = $OpsDRACredential
DataWriter        = $OpsDWACredential
SqlServerInstance     = $SCM2016DB
DatabaseSize      = $DatabaseSize
DwSqlServerInstance   = $SCM2016DWDB
DWDatabaseSize    = $DWDatabaseSize
# UseMicrosoftUpdate   = 
}
xSCOMWebConsoleServerSetup "OMWC"
{
DependsOn             = '[xSCOMManagementServerSetup]OMMS'
Ensure            = "Present"
SourcePath            = $SCM2016Path
SetupCredential       = $AdminCreds
InstallPath           = $SCM2016InstallPath
ManagementServer      = $nodename
WebSiteName           = "Default Web Site"
WebConsoleAuthorizationMode   = "Mixed"
WebConsoleUseSSL      = $false
}
xSCOMConsoleSetup "OMC"
{
DependsOn      = '[xSCOMWebConsoleServerSetup]OMWC'
Ensure        = "Present"
SourcePath        = $SCM2016Path
InstallPath       = $SCM2016InstallPath
SetupCredential   = $AdminCreds
} 

错误:

Job {94883009-5CFE-11EC-A811-002248041883} :
Message Set-TargetResouce failed
HResult -2146233087
StackTrack    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Microsoft.PowerShell.DesiredStateConfiguration.Internal.ResourceProviderAdapter.ExecuteCommand(PowerShell powerShell, ResourceModuleInfo resInfo, String operationCmd, List`1 acceptedProperties, CimInstance nonResourcePropeties, CimInstance resourceConfiguration, LCMDebugMode debugMode, PSInvocationSettings pSInvocationSettings, UInt32& resultStatusHandle, Collection`1& result, ErrorRecord& errorRecord, PSModuleInfo localRunSpaceModuleInfo)

所有System Center Operations Manager(SCOM(单个管理组部署都将是;一体式";安装,其中所有功能都加载在单个服务器上,或分布式安装。部署System Center Operations Manager将对此进行更多描述。

Install SCOMAgentcmdlet通过使用客户端推送安装部署一个或多个System Center 2019-Operations Manager及更高版本的产品版本代理。下面的代码片段显示了语法。

Install-SCOMAgent
[-ActionAccount <PSCredential>]
[-AgentActionAccount <PSCredential>]
-DNSHostName <String[]>
-PrimaryManagementServer <ManagementServer>
[-NoAPM]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]

有关示例,请查看Install SCOMAgent文档。同时检查设置并使用SCOM配置日志分析。

但据我所知,如果不首先卸载日志分析/Azure监控代理,就无法安装SCOM管理服务器角色。之后,您应该能够使用SCOM代理连接到日志分析工作区来连接服务器,有关详细信息,请查看将Operations Manager连接到Azure Monitor

还要使用PowerShell检查此Automate SCOM 2016安装,以自动在azure虚拟机(Windows Server 2016(上安装SCOM。

最新更新