Kris Posted April 10 Share Posted April 10 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 Link to comment Share on other sites More sharing options...
Kris Posted April 11 Author Share Posted April 11 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 Link to comment Share on other sites More sharing options...
Kris Posted April 12 Author Share Posted April 12 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." Link to comment Share on other sites More sharing options...
Kris Posted April 18 Author Share Posted April 18 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 Link to comment Share on other sites More sharing options...
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