Skip to content

Commit 583f10c

Browse files
committed
7.4 release
1 parent f1c8e43 commit 583f10c

File tree

2 files changed

+64
-49
lines changed

2 files changed

+64
-49
lines changed

README.md

Lines changed: 14 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -73,56 +73,21 @@ Connect-LMAccount -UseCachedCredential
7373

7474
# Change List
7575

76-
## 7.3.1
77-
### Introducing Automation Cmdlets:
78-
79-
This version of the Logic.Monitor module brings the first of many "automation" cmdlets that utilize the core API cmdlets to perform scripted actions within a LogicMonitor portal. These initial cmdlets have been asked for by the community and we are happy to be able to include them directly in the core Logic.Monitor powershell module. As always, please provide feedback and feature requests for automation/cmdlets you would like to see added in the future.
80-
81-
- **Invoke-LMDeviceDedupe**: Identifies and removes duplicate devices based on sysname or IP address matching. Helps clean up portals with duplicate device entries.
82-
```powershell
83-
# List duplicates in a specific device group
84-
Invoke-LMDeviceDedupe -ListDuplicates -DeviceGroupId 8
85-
86-
# Remove duplicates from entire portal
87-
Invoke-LMDeviceDedupe -RemoveDuplicates
88-
```
89-
90-
- **Import-LMDevicesFromCSV**: Bulk imports devices from CSV file with support for custom properties and automatic device group creation.
91-
```powershell
92-
# Import devices from CSV file
93-
Import-LMDevicesFromCSV -FilePath "C:\Devices.csv" -CollectorId 1234
94-
95-
# Generate example CSV template
96-
Import-LMDevicesFromCSV -GenerateExampleCSV
97-
```
98-
99-
- **Import-LMDeviceGroupsFromCSV**: Bulk imports device groups from CSV file with support for properties and AppliesTo logic.
100-
```powershell
101-
# Import device groups from CSV
102-
Import-LMDeviceGroupsFromCSV -FilePath "C:\Groups.csv" -PassThru
103-
104-
# Generate example CSV template
105-
Import-LMDeviceGroupsFromCSV -GenerateExampleCSV
106-
```
107-
108-
- **Find-LMDashboardWidgets**: Searches all dashboard widgets for references to specific datasources. Useful for impact analysis before datasource changes.
109-
```powershell
110-
# Find widgets using specific datasources
111-
Find-LMDashboardWidgets -DatasourceNames @("SNMP_NETWORK_INTERFACES","VMWARE_VCENTER_VM_PERFORMANCE")
112-
```
113-
114-
- **Copy-LMDevicePropertyToGroup**: Copies custom properties from a device to device groups. Excludes sensitive credential properties.
115-
```powershell
116-
# Copy properties from device to groups
117-
Copy-LMDevicePropertyToGroup -SourceDeviceId 123 -TargetGroupId 456,457 -PropertyNames "location","department"
118-
```
119-
120-
- **Copy-LMDevicePropertyToDevice**: Copies custom properties between devices. Excludes sensitive credential properties.
121-
```powershell
122-
# Copy properties between devices
123-
Copy-LMDevicePropertyToDevice -SourceDeviceId 123 -TargetDeviceId 456,457 -PropertyNames "location","department"
124-
```
76+
## 7.4
77+
### New Cmdlets:
78+
- **Export-LMDashboard**: Exports dashboard information from LogicMonitor to a JSON file. This is the same file you would get from performing an export from your LM portal. (requested via @AUrhino)
12579

80+
```powershell
81+
#Export a dashboard to a JSON file
82+
Export-LMDashboard -Id 123 -FilePath "C:\temp"
83+
```
84+
85+
### Minor Changes:
86+
- All payload formating is now done through a centralized *Format-LMData* function. A bug was reported where trying to refresh properties to clear a resources custom property list would resulting in the empty customProperties payload getting stripped during formating. (reported via @aggie87).
87+
- An issue was discovered where rate limits could be hit without rate limit backoff being applied. As a result of this change we have over hauled the error handling in this version to ensure all cmdlets properly respect any *-ErrorAction* perferences you have specified.
88+
- While we do not anticipate any issues with these changes, they do touch pretty much every cmdlet in this module, please report any issues you encounter when using this version.
89+
- Increased integration testing coverage to +130 tests accross many of the different cmdlets in the suite.
90+
- This version of the module cleans up a lot of the tech debt aquired over the years and aims to make the module easier to maintain and for the community to contribute to moving forward.
12691

12792
### Major Changes in v7:
12893
- **API Headers**: Updated all API request headers to use a custom User-Agent (Logic.Monitor-PowerShell-Module/Version) for usage reporting on versions deployed.

RELEASENOTES.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,54 @@
11
# Previous module release notes
2+
## 7.3.1
3+
### Introducing Automation Cmdlets:
4+
5+
This version of the Logic.Monitor module brings the first of many "automation" cmdlets that utilize the core API cmdlets to perform scripted actions within a LogicMonitor portal. These initial cmdlets have been asked for by the community and we are happy to be able to include them directly in the core Logic.Monitor powershell module. As always, please provide feedback and feature requests for automation/cmdlets you would like to see added in the future.
6+
7+
- **Invoke-LMDeviceDedupe**: Identifies and removes duplicate devices based on sysname or IP address matching. Helps clean up portals with duplicate device entries.
8+
```powershell
9+
# List duplicates in a specific device group
10+
Invoke-LMDeviceDedupe -ListDuplicates -DeviceGroupId 8
11+
12+
# Remove duplicates from entire portal
13+
Invoke-LMDeviceDedupe -RemoveDuplicates
14+
```
15+
16+
- **Import-LMDevicesFromCSV**: Bulk imports devices from CSV file with support for custom properties and automatic device group creation.
17+
```powershell
18+
# Import devices from CSV file
19+
Import-LMDevicesFromCSV -FilePath "C:\Devices.csv" -CollectorId 1234
20+
21+
# Generate example CSV template
22+
Import-LMDevicesFromCSV -GenerateExampleCSV
23+
```
24+
25+
- **Import-LMDeviceGroupsFromCSV**: Bulk imports device groups from CSV file with support for properties and AppliesTo logic.
26+
```powershell
27+
# Import device groups from CSV
28+
Import-LMDeviceGroupsFromCSV -FilePath "C:\Groups.csv" -PassThru
29+
30+
# Generate example CSV template
31+
Import-LMDeviceGroupsFromCSV -GenerateExampleCSV
32+
```
33+
34+
- **Find-LMDashboardWidgets**: Searches all dashboard widgets for references to specific datasources. Useful for impact analysis before datasource changes.
35+
```powershell
36+
# Find widgets using specific datasources
37+
Find-LMDashboardWidgets -DatasourceNames @("SNMP_NETWORK_INTERFACES","VMWARE_VCENTER_VM_PERFORMANCE")
38+
```
39+
40+
- **Copy-LMDevicePropertyToGroup**: Copies custom properties from a device to device groups. Excludes sensitive credential properties.
41+
```powershell
42+
# Copy properties from device to groups
43+
Copy-LMDevicePropertyToGroup -SourceDeviceId 123 -TargetGroupId 456,457 -PropertyNames "location","department"
44+
```
45+
46+
- **Copy-LMDevicePropertyToDevice**: Copies custom properties between devices. Excludes sensitive credential properties.
47+
```powershell
48+
# Copy properties between devices
49+
Copy-LMDevicePropertyToDevice -SourceDeviceId 123 -TargetDeviceId 456,457 -PropertyNames "location","department"
50+
```
51+
252
## 7.3.0
353
### New Cmdlets:
454
- **Get-LMDiagnosticSource**: Retrieves LogicMonitor Diagnostic Sources by ID, Name, DisplayName, or filter. Supports pagination and returns objects of type `LogicMonitor.DiagnosticSource`.

0 commit comments

Comments
 (0)