Repository for the Intune Custom Inventory solution by MSEndpointmgr.com
IMPORTANT! Version 1.2 requires use of version 3.5.0 of the Invoke-CustomInventoryAzureFunction.ps1 to be used in Proactive Remediations This version of the Azure Function will work for any custom log you want to send securely to Log Analytics
Full changelog can be found here: Changelog
- 1.2 - Released 15.10.2022
- 3.5 - Released 15.10.2022
- To perform an update use this deploy button and enter information from your current deployment-
Use the simple proactive remediation that sends data direct to Log Analytics Workspace with secrets in code. Read the blogpost: https://msendpointmgr.com/2021/04/12/enhance-intune-inventory-data-with-proactive-remediations-and-log-analytics/
Use the new and updated proactive remediation that sends data through a Azure Function App to keep secret out of code and secure that only approved and known clients can send data to your log workspace.
- Deploy Azure Function using our template.
- Set API Permissions for MSI to graph with Add-MSIGraphPermissions.ps1
- Deploy the Invoke-CustomInventoryAzureFunction.ps1 Proactive remediation after you added your Azure Function URL to the script. Read the blogpost: https://msendpointmgr.com/2022/01/17/securing-intune-enhanced-inventory-with-azure-function/
$LogPayLoad = New-Object -TypeName PSObject
$LogPayLoad | Add-Member -NotePropertyMembers @{$LogName1 = $Logdata1}
$LogPayLoad | Add-Member -NotePropertyMembers @{$LogName2 = $Logdata2}
# Construct main payload to send to LogCollectorAPI
$MainPayLoad = [PSCustomObject]@{
AzureADTenantID = $AzureADTenantID
AzureADDeviceID = $AzureADDeviceID
LogPayloads = $LogPayLoad
}
...