Microsoft.IntelligencePacks.AzureAutomation.HybridAgent.Init (Rule)

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategoryCustom
EnabledFalse
Alert GenerateFalse
RemotableFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.EnterpriseManagement.Advisor.HybridAgent System.PrivilegedMonitoringAccount
WA WriteAction System.CommandExecuter Default

Source Code:

<Rule ID="Microsoft.IntelligencePacks.AzureAutomation.HybridAgent.Init" ConfirmDelivery="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" Remotable="false" Enabled="false">
<Category>Custom</Category>
<DataSources>
<!-- The list of dlls that are required for the worker to run -->
<DataSource ID="DS" TypeID="Microsoft.EnterpriseManagement.Advisor.HybridAgent" RunAs="System!System.PrivilegedMonitoringAccount">
<IsAutoRegisterationEnabled>false</IsAutoRegisterationEnabled>
<Certificate>$RunAs[Name="Advisor!Microsoft.SystemCenter.Advisor.RunAsProfile.Certificate"]/Data$</Certificate>
<WorkspaceId>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.HealthService"]/ThirdPartyAuthenticationUri$</WorkspaceId>
<HealthServiceId>$Target/Id$</HealthServiceId>
<ManagementGroupId>$Target/ManagementGroup/Id$</ManagementGroupId>
<AgentServiceUri>https://$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.HealthService"]/ThirdPartyAuthenticationUri$.agentsvc.azure-automation.net/accounts</AgentServiceUri>
<AgentServiceShareddllPath>$FileResource[Name="Res.AgentService.Shared.dll"]/Path$</AgentServiceShareddllPath>
<HybridRegistrationCmdletsdllPath>$FileResource[Name="Res.Hybrid.Registration.Cmdlets.dll"]/Path$</HybridRegistrationCmdletsdllPath>
<OmsRunbookWorkerRegistrationdllPath>$FileResource[Name="Res.OMSRunbookWorkerRegistration.dll"]/Path$</OmsRunbookWorkerRegistrationdllPath>
<HybridRegistrationpsd1Path>$FileResource[Name="Res.HybridRegistration.psd1"]/Path$</HybridRegistrationpsd1Path>
<MicrosoftPowerShellCommandsManagementdllPath>$FileResource[Name="Res.Microsoft.PowerShell.Commands.Management.dll"]/Path$</MicrosoftPowerShellCommandsManagementdllPath>
<NewtonsoftJsondllPath>$FileResource[Name="Res.Newtonsoft.Json.dll"]/Path$</NewtonsoftJsondllPath>
<NewtonsoftJsonxmlPath>$FileResource[Name="Res.Newtonsoft.Json.xml"]/Path$</NewtonsoftJsonxmlPath>
<OrchestratorSharedMicrosoftAutomationetwManifestdllPath>$FileResource[Name="Res.Orchestrator.Shared.MicrosoftAutomation.etwManifest.dll"]/Path$</OrchestratorSharedMicrosoftAutomationetwManifestdllPath>
<OrchestratorSharedMicrosoftAutomationetwManifestmanPath>$FileResource[Name="Res.Orchestrator.Shared.MicrosoftAutomation.etwManifest.man"]/Path$</OrchestratorSharedMicrosoftAutomationetwManifestmanPath>
<OrchestratorSharedMicrosoftSMAetwManifestdllPath>$FileResource[Name="Res.Orchestrator.Shared.MicrosoftSMA.etwManifest.dll"]/Path$</OrchestratorSharedMicrosoftSMAetwManifestdllPath>
<OrchestratorSharedMicrosoftSMAetwManifestmanPath>$FileResource[Name="Res.Orchestrator.Shared.MicrosoftSMA.etwManifest.man"]/Path$</OrchestratorSharedMicrosoftSMAetwManifestmanPath>
<SystemManagementAutomationdllPath>$FileResource[Name="Res.System.Management.Automation.dll"]/Path$</SystemManagementAutomationdllPath>
<OrchestratorActivitiesdllPath>$FileResource[Name="Res.Orchestrator.Activities.dll"]/Path$</OrchestratorActivitiesdllPath>
<OrchestratorGraphRunbookActivitiesdllPath>$FileResource[Name="Res.Orchestrator.GraphRunbook.Activities.dll"]/Path$</OrchestratorGraphRunbookActivitiesdllPath>
<BondAttributesdllPath>$FileResource[Name="Res.Bond.Attributes.dll"]/Path$</BondAttributesdllPath>
<BonddllPath>$FileResource[Name="Res.Bond.dll"]/Path$</BonddllPath>
<EntityFrameworkdllPath>$FileResource[Name="Res.EntityFramework.dll"]/Path$</EntityFrameworkdllPath>
<MicrosoftCloudInstrumentationFrameworkEventsdllPath>$FileResource[Name="Res.Microsoft.Cloud.InstrumentationFramework.Events.dll"]/Path$</MicrosoftCloudInstrumentationFrameworkEventsdllPath>
<MicrosoftDiagnosticsTracingEventSourcedllPath>$FileResource[Name="Res.Microsoft.Diagnostics.Tracing.EventSource.dll"]/Path$</MicrosoftDiagnosticsTracingEventSourcedllPath>
<MicrosoftPracticesTransientFaultHandlingCoredllPath>$FileResource[Name="Res.Microsoft.Practices.TransientFaultHandling.Core.dll"]/Path$</MicrosoftPracticesTransientFaultHandlingCoredllPath>
<OrchestratorArmResourceHydrationShareddllPath>$FileResource[Name="Res.Orchestrator.ArmResourceHydration.Shared.dll"]/Path$</OrchestratorArmResourceHydrationShareddllPath>
<OrchestratorCoredllPath>$FileResource[Name="Res.Orchestrator.Core.dll"]/Path$</OrchestratorCoredllPath>
<OrchestratorGraphRunbookModeldllPath>$FileResource[Name="Res.Orchestrator.GraphRunbook.Model.dll"]/Path$</OrchestratorGraphRunbookModeldllPath>
<OrchestratorGraphRunbookTranslatordllPath>$FileResource[Name="Res.Orchestrator.GraphRunbook.Translator.dll"]/Path$</OrchestratorGraphRunbookTranslatordllPath>
<OrchestratorGraphRunbookRuntimedllPath>$FileResource[Name="Res.Orchestrator.GraphRunbook.Runtime.dll"]/Path$</OrchestratorGraphRunbookRuntimedllPath>
<OrchestratorGraphRunbookCmdletsdllPath>$FileResource[Name="Res.Orchestrator.GraphRunbook.Cmdlets.dll"]/Path$</OrchestratorGraphRunbookCmdletsdllPath>
<OrchestratorGraphRunbookCmdletspsm1Path>$FileResource[Name="Res.Orchestrator.GraphRunbook.Cmdlets.psm1"]/Path$</OrchestratorGraphRunbookCmdletspsm1Path>
<OrchestratorHybridChanneldllPath>$FileResource[Name="Res.Orchestrator.HybridChannel.dll"]/Path$</OrchestratorHybridChanneldllPath>
<OrchestratorRuntimedllPath>$FileResource[Name="Res.Orchestrator.Runtime.dll"]/Path$</OrchestratorRuntimedllPath>
<OrchestratorSandboxexePath>$FileResource[Name="Res.Orchestrator.Sandbox.exe"]/Path$</OrchestratorSandboxexePath>
<OrchestratorShareddllPath>$FileResource[Name="Res.Orchestrator.Shared.dll"]/Path$</OrchestratorShareddllPath>
<OrchestratorStorageSqldllPath>$FileResource[Name="Res.Orchestrator.Storage.Sql.dll"]/Path$</OrchestratorStorageSqldllPath>
<RunbookWorkerHybriddllPath>$FileResource[Name="Res.RunbookWorker.Hybrid.dll"]/Path$</RunbookWorkerHybriddllPath>
<SystemNetHttpFormattingdllPath>$FileResource[Name="Res.System.Net.Http.Formatting.dll"]/Path$</SystemNetHttpFormattingdllPath>
<SystemWebHttpdllPath>$FileResource[Name="Res.System.Web.Http.dll"]/Path$</SystemWebHttpdllPath>
<SystemWebHttpSelfHostdllPath>$FileResource[Name="Res.System.Web.Http.SelfHost.dll"]/Path$</SystemWebHttpSelfHostdllPath>
<MicrosoftPracticesUnitydllPath>$FileResource[Name="Res.Microsoft.Practices.Unity.dll"]/Path$</MicrosoftPracticesUnitydllPath>
<OrchestratorAssetManagementCmdletsdllPath>$FileResource[Name="Res.Orchestrator.AssetManagement.Cmdlets.dll"]/Path$</OrchestratorAssetManagementCmdletsdllPath>
<OrchestratorAssetManagementCmdletspsd1Path>$FileResource[Name="Res.Orchestrator.AssetManagement.Cmdlets.psd1"]/Path$</OrchestratorAssetManagementCmdletspsd1Path>
<OrchestratorAssetManagementShareddllPath>$FileResource[Name="Res.Orchestrator.AssetManagement.Shared.dll"]/Path$</OrchestratorAssetManagementShareddllPath>
<MicrosoftAdvisorKnowledgeCommondllPath>$FileResource[Name="Res.Microsoft.AdvisorKnowledge.Common.dll"]/Path$</MicrosoftAdvisorKnowledgeCommondllPath>
<JobRuntimeDataClientdllPath>$FileResource[Name="Res.JobRuntimeData.Client.dll"]/Path$</JobRuntimeDataClientdllPath>
<OrchestratorWebClientdllPath>$FileResource[Name="Res.Orchestrator.WebClient.dll"]/Path$</OrchestratorWebClientdllPath>
<NewtonsoftJsonNet20dllPath>$FileResource[Name="Res.Newtonsoft.Json.Net20.dll"]/Path$</NewtonsoftJsonNet20dllPath>
<JobRuntimeDataCommondllPath>$FileResource[Name="Res.JobRuntimeData.Common.dll"]/Path$</JobRuntimeDataCommondllPath>
<SandboxManagementV2StoragedllPath>$FileResource[Name="Res.SandboxManagementV2.Storage.dll"]/Path$</SandboxManagementV2StoragedllPath>
<WatcherStorageInterfacesdllPath>$FileResource[Name="Res.Watcher.Storage.Interfaces.dll"]/Path$</WatcherStorageInterfacesdllPath>
<OrchestratorWatcherdllPath>$FileResource[Name="Res.Orchestrator.Watcher.dll"]/Path$</OrchestratorWatcherdllPath>
<OrchestratorWatcherRuntimedllPath>$FileResource[Name="Res.Orchestrator.WatcherRuntime.dll"]/Path$</OrchestratorWatcherRuntimedllPath>
<SystemThreadingTasksDataflowdllPath>$FileResource[Name="Res.System.Threading.Tasks.Dataflow.dll"]/Path$</SystemThreadingTasksDataflowdllPath>
<JobRuntimeDataNotificationsClientdllPath>$FileResource[Name="Res.JobRuntimeData.NotificationsClient.dll"]/Path$</JobRuntimeDataNotificationsClientdllPath>
<MicrosoftAspNetSignalRClientdllPath>$FileResource[Name="Res.Microsoft.AspNet.SignalR.Client.dll"]/Path$</MicrosoftAspNetSignalRClientdllPath>
<ReadHybridRunbookWorkerDetailsps1Path>$FileResource[Name="Res.Read.HybridRunbookWorkerDetails.ps1"]/Path$</ReadHybridRunbookWorkerDetailsps1Path>
<UpdateManagementStorageModelsdllPath>$FileResource[Name="Res.UpdateManagement.Storage.Models.dll"]/Path$</UpdateManagementStorageModelsdllPath>
</DataSource>
</DataSources>
<WriteActions>
<!-- Since we do not write any information to ops insight. This is just a no -op. The rule is written as a
trigger so that the module can be Started in the MMA process.-->
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName/>
<WorkingDirectory/>
<CommandLine>exit /0</CommandLine>
<TimeoutSeconds>120</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</WriteActions>
</Rule>