New-LMLogPartition
Syntax
Section titled “Syntax”New-LMLogPartition [-Name] <String> [-Description] <String> [-Retention] <Int32> [-Status] <String> [-Tenant] <String> [[-Sku] <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMLogPartition function creates a new LogicMonitor Log Partition.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”#Create a new log partitionNew-LMLogPartition -Name "customerA" -Description "Customer A Log Partition" -Retention 30 -Status "active" -Tenant "customerA"Parameters
Section titled “Parameters”The name of the new log partition.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”The description of the new log partition.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Retention
Section titled “-Retention”The retention in days of the new log partition.
Type: Int32Parameter Sets: (All)Aliases:
Required: TruePosition: 3Default value: 0Accept pipeline input: FalseAccept wildcard characters: False-Status
Section titled “-Status”The status of the new log partition. Possible values are “active” or “inactive”.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 4Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Tenant
Section titled “-Tenant”The tenant of the new log partition.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 5Default value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseThe sku of the new log partition. If not specified, the sku from the default log partition will be used. Its recommended to not specify this parameter and let the function determine the sku.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 6Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-WhatIf
Section titled “-WhatIf”Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameterParameter Sets: (All)Aliases: wi
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: SwitchParameterParameter Sets: (All)Aliases: cf
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Section titled “Inputs”None. You cannot pipe objects to this command.
Section titled “None. You cannot pipe objects to this command.”Outputs
Section titled “Outputs”Returns LogicMonitor.LogPartition object.
Section titled “Returns LogicMonitor.LogPartition object.”You must run Connect-LMAccount before running this command.