New-LMLogPartition
Syntax
New-LMLogPartition [-Name] <String> [-Description] <String> [-Retention] <Int32> [-Status] <String> [-Tenant] <String> [[-Sku] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
The New-LMLogPartition function creates a new LogicMonitor Log Partition.
Examples
Example 1
#Create a new log partitionNew-LMLogPartition -Name "customerA" -Description "Customer A Log Partition" -Retention 30 -Status "active" -Tenant "customerA"
Parameters
-Name
The name of the new log partition.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-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
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
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
The tenant of the new log partition.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 5Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False
-Sku
The 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
-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False
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
None. You cannot pipe objects to this command.
Outputs
Returns LogicMonitor.LogPartition object.
Notes
You must run Connect-LMAccount before running this command.