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 (430 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 (294k 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
0 answers

Hi I'm trying to configure Azure SSO to work through an app proxy. The settings seem to be correct and the SSO is working properly when a user in on premise, but when ... which can be resolved, or would it be something for a future release? Many thanks Matt

asked Sep 25, 2023 by chappers77 (2.0k points)
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, 2022 by Tfarmer (160 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, 2022 by chappers77 (2.0k points)
0 votes
1 answer

I would like to know how to connect to Azure AD using Adaxes. I've already followed the instructions to connect to AAD using an application ID for Adaxes, but how can I ... place as the script is executed, much like what you see in a normal Powershell command?

asked Sep 2, 2022 by andreashalkias (50 points)
0 votes
1 answer

Hi When reading the REST API documentation it does not mention working directly against Azure AD and Exchange Online. Will this be added? Thanks /Peter Sonander

asked Jan 26, 2023 by Sonander (40 points)
3,589 questions
3,278 answers
8,303 comments
548,107 users