Kris Posted April 10, 2024 Posted April 10, 2024 Hi All, I am attempting to setup asset imports from Azure into Hornbill. I've followed the fragmented information / guides I can find but am having problems linking it all together. This is the first time attempting something like this so have more than likely missed something or configured it incorrectly! Steps taken so far. Created a Hornbill App registration In Azure Created a Secret ID Setup a new Automation Deployed the below from www.powershellgallery.com: HornbillAPI HornbillHelpers AzureAD Imported the RunBook HornbillAzureIntuneAssetImport 1.2 (AUTHOR steve.goldthorpe@hornbill.com) Created The Variables required Created the Credentials called "IntuneAutomation" - Please can someone confirm what I should be using for the username and password? Is it the AppID and Secret or my Admin account? Created an API / Keysafe in Hornbill When I test the runbook I receive the error Completed Failure to acquire access token. Response from AcquireTokenAsync was null
Kris Posted April 11, 2024 Author Posted April 11, 2024 Getting slightly further today after re-doing everything. Retrieving devices from: https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$top=100 The remote server returned an error: (403) Forbidden. IMPORT COMPLETE Assets Found:0 Assets Created:0 Assets Updated:0 * Primary Record Updated:0 * Primary Record Update Skipped:0 * Related Record Updated:0 * Related Record Update Skipped:0
Kris Posted April 12, 2024 Author Posted April 12, 2024 Really struggling trying to get this working - Went back to the beginning and not have the below message when testing the Runbook Completed Unable to load required assemblies from AzureAD module to construct an authentication token. Error message: Exception setting "Path": "Cannot find path 'C:\usr\src\PSModules\AzureAD\Microsoft.IdentityModel.Clients.ActiveDirectory.dll' because it does not exist."
Kris Posted April 18, 2024 Author Posted April 18, 2024 Still need help if there is anyone is able to assist? Im using Azure Automation Runbook script VERSION 1.2 by @Steve Goldthorpe Here is my config which results in the current message below... What am I missing? Failure to acquire access token. Response from AcquireTokenAsync was null Registered App config Automation setup (have also tried Runtime language V 7.1 too) Credential Variables HornBill Config Api Key Key Safe
Kris Posted May 2, 2024 Author Posted May 2, 2024 Guessing that no one here is able to help? Currently still getting the below. Preparing modules for first use. GET https://files.hornbill.com/instances/h******es/zoneinfo with 0-byte payload received 579-byte response of content type application/json Failure to acquire access token. Response from AcquireTokenAsync was null
SamS Posted May 3, 2024 Posted May 3, 2024 Hi @Kris, Since Intune asset import can now be done via the regular asset import utility, I would recommend using that instead - as the PowerShell script route gives a headache with dependencies and the further coding that is necessary (i.e. the script is provided as-is and would require some re-coding for anyone to make adequate use of it (i.e. to separate out Asset Types etc)). The regular asset import utility can be found here: https://github.com/hornbill/asset-import/releases/latest The documentation of which is referred to in the README: https://docs.hornbill.com/data-imports-guide/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now