Skip to content

Connect-LMAccount

Terminal window
Connect-LMAccount -AccessId <String> -AccessKey <String> -AccountName <String> [-DisableConsoleLogging]
[-AutoUpdateModuleVersion] [-SkipVersionCheck] [-GovCloud] [-SkipCredValidation]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Terminal window
Connect-LMAccount -BearerToken <String> -AccountName <String> [-DisableConsoleLogging]
[-AutoUpdateModuleVersion] [-SkipVersionCheck] [-GovCloud] [-SkipCredValidation]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Terminal window
Connect-LMAccount -AccountName <String> [-SessionSync] [-DisableConsoleLogging] [-AutoUpdateModuleVersion]
[-SkipVersionCheck] [-GovCloud] [-SkipCredValidation] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Terminal window
Connect-LMAccount [-UseCachedCredential] [-CachedAccountName <String>] [-DisableConsoleLogging]
[-AutoUpdateModuleVersion] [-SkipVersionCheck] [-GovCloud] [-SkipCredValidation]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

Connect to a specified LM portal which will allow you run the other LM commands associated with the Logic.Monitor PS module. Used in conjunction with Disconnect-LMAccount to close a session previously connected via Connect-LMAccount

Terminal window
#Connecting to an Account using an Access ID and Access Key
Connect-LMAccount -AccessId xxxxxx -AccessKey xxxxxx -AccountName subdomain
Terminal window
#Connecting to an Account using a Bearer Token
Connect-LMAccount -BearerToken xxxxxx -AccountName subdomain
Terminal window
#Connecting to an Account using a Cached Credential
Connect-LMAccount -UseCachedCredential -CachedAccountName "CachedAccountName"

Access ID from your API credential acquired from the LM Portal

Type: String
Parameter Sets: LMv1
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Access Key from your API credential acquired from the LM Portal

Type: String
Parameter Sets: LMv1
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Bearer token from your API credential acquired from the LM Portal. For use in place of LMv1 token

Type: String
Parameter Sets: Bearer
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The subdomain for your LM portal, the name before “.logicmonitor.com” (subdomain.logicmonitor.com)

Type: String
Parameter Sets: LMv1, Bearer, SessionSync
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

This will list all cached account for you to pick from. This parameter is optional

Type: SwitchParameter
Parameter Sets: Cached
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Name of cached account you wish to connect to. This parameter is optional and can be used in place of UseCachedCredential

Type: String
Parameter Sets: Cached
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Use session sync capability instead of api key

Type: SwitchParameter
Parameter Sets: SessionSync
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

Disables on info messages from displaying for any subsequent commands are run. Useful when building scripted logicmodules and you want to suppress unwanted output. Console logging is enabled by default.

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

Automatically update the Logic.Monitor module to the latest version if available

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

Skip checking for newer versions of the Logic.Monitor module

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

Connect using the LM GovCloud portal

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

Skip validation of credentials, useful when connecting to a portal that is not yet configured with the Logic.Monitor module

Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
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.”

None. This command does not return any output.

Section titled “None. This command does not return any output.”

You must run this command before you will be able to execute other commands included with the Logic.Monitor module.