Jump to content

Recommended Posts

Posted

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

 

Posted

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
Posted

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."

 

Posted

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

image.thumb.png.f760e4915aee5f63d026129527e5ed48.png

 

image.png.175bb81482863c4a50ed5843a4b7af04.png

image.png.db5f9be29175ab158f970ff9bade895c.png

image.png.c473e705d0a5e8557ef12e3a6b5694d9.png

Automation setup (have also tried Runtime language V 7.1 too)

image.thumb.png.933916d706b85d43b71021fc28551f7d.png

Credential

image.thumb.png.c6fa4480c7313747a88042c91bb8913c.png

Variables

image.thumb.png.062098809fbc8232d06aa1df109e74f0.png

image.png.4f1bc589e5db6628506bb9a5bb613c35.png

HornBill Config

Api Key

image.png.43058eb60d40384dbe05e83e29099632.png

Key Safe

image.thumb.png.cf522932e1b5a816aa7d8b5654d07324.png

  • 2 weeks later...
Posted

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
Posted

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/

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...