Skip to content

Import-LMRepositoryLogicModule

Terminal window
Import-LMRepositoryLogicModule [-Type] <String> [-LogicModuleNames] <String[]>
[-ProgressAction <ActionPreference>] [<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"

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

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

An array of logic module names to import.

Type: String[]
Parameter Sets: (All)
Aliases: Name
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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

None. You cannot pipe objects to this command.

Section titled “None. You cannot pipe objects to this command.”

Returns a success message with the names of imported modules.

Section titled “Returns a success message with the names of imported modules.”

You must run Connect-LMAccount before running this command.