Skip to content

Import-LMRepositoryLogicModule

Terminal window
Import-LMRepositoryLogicModule [-Type] <string> [-LogicModuleNames] <string[]> [<CommonParameters>]

The Import-LMRepositoryLogicModule function imports specified logic modules from the LogicMonitor repository into your portal.

Terminal window
#Import specific datasources
Import-LMRepositoryLogicModule -Type "datasources" -LogicModuleNames "DataSource1", "DataSource2"

An array of logic module names to import.

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Name
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

The type of logic modules to import. Valid values are “datasources”, “propertyrules”, “eventsources”, “topologysources”, “configsources”.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.