0 votes

Before authentication with azure our custom command like:

$m365Credentials = $Context.GetOffice365Credential() Connect-MSGraph -Credential $m365Credentials Get-IntuneManagedDevice | Where-Object {($.emailAddress -match "%mail%") -and ($.operatingSystem -eq "Android")}

works well, now without credential how should i modify the script to make it work?

by (270 points)
0

Hello Simone,

What exactly do you mean by without credential? Could you, please, describe the desired behaviour in all the possible details with live examples?

0

After the authentication with azure, if I try to run the script, I received this error:

image.png

1 Answer

0 votes
by (226k points)

Hello Simone,

Thank you for clarifying. This behaviour is by design when your tenant is registered using credentials of an Azure AD app. For examples on how to establish connections in your scripts, have a look at the following SDK article: https://adaxes.com/sdk/CloudServicesScriptContextClass.

Related questions

0 votes
1 answer

Our Adaxes Microsoft 365 Tenant was created before we copmpleted the "app registration" in Azure. Which means that in the instructions for "Register Adaxes as an app in ... M365 tenant, would that affect any of our custom commands that we have created?

asked Feb 17 by Tfarmer (140 points)
0 votes
1 answer

Hi We have Adaxes available through Azure app proxy as we have external support for some of our companies and these people don't have VPN available to them. The ... change the Web Interface Address to the Azure link? Will this break anything? Thanks Matt

asked Jan 20 by chappers77 (1.2k points)
0 votes
1 answer

we've migrated over to Application ID authentication...can this be updated to utilize this instead?

asked Oct 21, 2021 by jlaquatra (20 points)
0 votes
1 answer

In the Azure Portal, we have a Microsoft 365 G3 License group. I'd like to automate a task (or create a macro) to put users into that group from Adaxes instead of having to ... is possible? Our current version of Adaxes is 2020.1 Version 3.13.17918.0 (64 bit)

asked Jul 12, 2021 by Tfarmer (140 points)
0 votes
1 answer

We are still using version 2017.2, because otherwise we can no longer authorize with smart cards. Is it still possible to connect Adaxes with Azur?

asked Oct 12, 2020 by Johann Ihnen (170 points)
2,780 questions
2,513 answers
6,578 comments
27,295 users