New-LMDeviceGroup
Syntax
Section titled “Syntax”GroupId
Section titled “GroupId”New-LMDeviceGroup -Name <string> -ParentGroupId <int> [-Description <string>] [-Properties <hashtable>] [-Extra <Object>] [-DefaultCollectorId <int>] [-DefaultAutoBalancedCollectorGroupId <int>] [-DefaultCollectorGroupId <int>] [-DisableAlerting <bool>] [-EnableNetFlow <bool>] [-AppliesTo <string>] [-WhatIf] [-Confirm] [<CommonParameters>]GroupName
Section titled “GroupName”New-LMDeviceGroup -Name <string> -ParentGroupName <string> [-Description <string>] [-Properties <hashtable>] [-Extra <Object>] [-DefaultCollectorId <int>] [-DefaultAutoBalancedCollectorGroupId <int>] [-DefaultCollectorGroupId <int>] [-DisableAlerting <bool>] [-EnableNetFlow <bool>] [-AppliesTo <string>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMDeviceGroup function creates a new LogicMonitor device group with the specified parameters.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”New-LMDeviceGroup -Name "MyDeviceGroup" -Description "This is a test device group" -Properties @{ "Location" = "US"; "Environment" = "Production" } -DisableAlerting $trueThis example creates a new LogicMonitor device group named “MyDeviceGroup” with a description and custom properties. Alerting is disabled for this device group.
EXAMPLE 2
Section titled “EXAMPLE 2”New-LMDeviceGroup -Name "ChildDeviceGroup" -ParentGroupName "ParentDeviceGroup"This example creates a new LogicMonitor device group named “ChildDeviceGroup” with a specified parent device group.
Parameters
Section titled “Parameters”-AppliesTo
Section titled “-AppliesTo”The applies to value for the device group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DefaultAutoBalancedCollectorGroupId
Section titled “-DefaultAutoBalancedCollectorGroupId”Specifies the default auto-balanced collector group ID for the device group. Default is 0.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DefaultCollectorGroupId
Section titled “-DefaultCollectorGroupId”Specifies the default collector group ID for the device group. Default is 0.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DefaultCollectorId
Section titled “-DefaultCollectorId”Specifies the default collector ID for the device group. Default is 0.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”The description of the device group.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DisableAlerting
Section titled “-DisableAlerting”Specifies whether alerting is disabled for the device group. The default value is $false.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EnableNetFlow
Section titled “-EnableNetFlow”Specifies whether NetFlow is enabled for the device group. The default value is $false.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Extra
Section titled “-Extra”Specifies a object of extra properties for the device group. Used for LM Cloud resource groups
Type: System.ObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The name of the device group. This parameter is mandatory.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ParentGroupId
Section titled “-ParentGroupId”The ID of the parent device group. This parameter is mandatory when using the ‘GroupId’ parameter set.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: GroupId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ParentGroupName
Section titled “-ParentGroupName”The name of the parent device group. This parameter is mandatory when using the ‘GroupName’ parameter set.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: GroupName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Properties
Section titled “-Properties”A hashtable of custom properties for the device group.
Type: System.Collections.HashtableDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”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.