Create Inventory App Registration¶
The inventory collection scripts for Windows and macOS use a dedicated App Registration to authenticate and write data to Log Analytics via the Azure Monitor Logs Ingestion API.
Warning
This is a separate app registration from the one used by Power BI. Do not reuse your existing BI for Intune app registration for the inventory scripts.
Two App Registrations
BI for Intune uses two separate App Registrations:
- Power BI App Registration — The app registration created during the BI for Intune installation. This is used by Power BI to read data from the Log Analytics workspace.
- Inventory App Registration — Created in this guide. This is used by the Windows and macOS inventory scripts to write data to Log Analytics via the Logs Ingestion API.
Prerequisites:
- The user performing these steps requires Application Administrator or Global Administrator rights in Microsoft Entra ID.
Step 1: Register the Application¶
- In the Azure Portal, navigate to Microsoft Entra ID > App registrations > New registration.
- Enter a Name for the application (e.g.,
PowerStacks-EnhancedInventory). - Specify who can use the application as Accounts in this organizational directory only.
- Select Register.
- From the App Registration overview, record the following values for later use:
- Application (Client) ID
- Directory (Tenant) ID
- Navigate to Certificates & secrets > New client secret.
- Enter a description and select an expiration period.
- Select Add and record the Value (not the Secret ID). This value can only be displayed once.
Step 2: Get the Enterprise Application Object ID¶
- In the Azure Portal, navigate to Microsoft Entra ID > Enterprise applications.
- Search for the app you registered in Step 1 (e.g.,
PowerStacks-EnhancedInventory). - Select the application and record the Object ID from the Overview page.
Important
The Object ID shown on the Enterprise Applications page is different from the one shown on the App Registrations page. You need the Enterprise Application Object ID (the service principal Object ID), not the App Registration Object ID.
Values to Record¶
You should now have the following values ready:
| Value | Where to Find It | Used In |
|---|---|---|
| Tenant ID | App Registration overview | Windows / macOS inventory scripts |
| Client ID | App Registration overview | Windows / macOS inventory scripts |
| Client Secret | Certificates & secrets | Windows / macOS inventory scripts |
| Enterprise App Object ID | Enterprise applications overview | Deploy Custom Inventory Resources ARM template deployment |
Next Step¶
Proceed to Deploy Custom Inventory Resources to deploy the Azure resources.