Skip to content

Repository for the Intune Custom Inventory solution by MSEndpointmgr.com

License

Notifications You must be signed in to change notification settings

moonnoonn/IntuneEnhancedInventory

 
 

Repository files navigation

IntuneEnhancedInventory

Repository for the Intune Custom Inventory solution by MSEndpointmgr.com

IMPORTANT! Version 1.1 requires use of version 3.0.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

Option 1

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/

Option 2

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.

  1. Deploy Azure Function using our template.
    Deploy to Azure
  2. Set API Permissions for MSI to graph with Add-MSIGraphPermissions.ps1
  3. 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/

Example code for adding a custom log

$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
}
...

About

Repository for the Intune Custom Inventory solution by MSEndpointmgr.com

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PowerShell 90.8%
  • Bicep 9.2%