Home

Conditional Access Hybrid Azure AD Joined

%3CLINGO-SUB%20id%3D%22lingo-sub-1072024%22%20slang%3D%22en-US%22%3EConditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1072024%22%20slang%3D%22en-US%22%3E%3CP%3EAt%20multiple%20at%20our%20customers%20we%20configured%20a%20policy%20that%20matches%20all%20cloud%20applications%20only%20can%20be%20accessed%20when%20they're%20using%20an%20Hybrid%20Azure%20AD%20Joined%20device.%20All%20their%20devices%20are%20synchronized%20from%20their%20on-premise%20AD%20towards%20Azure%20AD%20and%20they%20become%20Hybrid%20Azure%20AD%20joined.%3C%2FP%3E%3CP%3EThe%20conditional%20access%20policies%20have%20worked%20for%20a%20few%20months%20but%20suddenly%20they%20receive%20a%20pop-up%20that%20their%20device%20is%20a%20non-corporate%20device.%3C%2FP%3E%3CP%3EThis%20can%20often%20be%20resolved%20to%20exclude%20them%20from%20the%20conditional%20access%20policy%20and%20re-add%20them%20towards%20the%20policy.%3C%2FP%3E%3CP%3EWe%20still%20didn't%20found%20a%20root%20cause%20why%20this%20happens%20so%20often%3F%3C%2FP%3E%3CP%3EWhat%20are%20the%20checks%20that%20are%20performed%20if%20a%20device%20is%20Hybrid%20Azure%20AD%20joined%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1072024%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEMS%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1072165%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1072165%22%20slang%3D%22en-US%22%3EWith%20what%20apps%20are%20you%20having%20this%20issue%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1072179%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1072179%22%20slang%3D%22en-US%22%3EExclaimer%20Cloud%20and%20some%20others%20with%20Outlook%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1072387%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1072387%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20things%20I%20would%20check.%3C%2FP%3E%3CP%3E1.)%20Check%20the%20user's%20Sign-ins%20log%3C%2FP%3E%3CP%3E%26nbsp%3B-%20to%20confirm%20where%20the%20issue%20is%20at.%3C%2FP%3E%3CP%3E2.)%20On%20the%20PC%20run%20this%20command%3A%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20DSREGCMD%20%2Fstatus%3C%2FP%3E%3CP%3E%26nbsp%3B-%20That%20will%20tell%20you%20about%20the%20state%20of%20the%20PC.%3C%2FP%3E%3CP%3E3.)%20Check%20for%20multiple%20entries%20in%20AAD.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%20Get-AzureADDevice%20-SearchString%20%3CPC%20name%3D%22%22%3E%20%7C%20Format-List%20DisplayName%2C%20DeviceTrustType%2C%20DevicePhysicalIds%2C%20DeviceId%3C%2FPC%3E%3C%2FP%3E%3CP%3E%26nbsp%3B-%20The%20one%20that%20has%20%22ServerAd%22%20for%20the%20DeviceTrustType%20is%20the%20object%20for%20the%20Hybrid%20Join.%3C%2FP%3E%3CP%3E%26nbsp%3B-%20There%20can%20be%20others%2C%20like%20AzureAD%2C%20which%20are%20the%20PC%20being%20joined%20more%20than%20once.%3C%2FP%3E%3CP%3E%26nbsp%3B-%20If%20the%20Hybrid%20join%20has%20completed%20the%20DevicePhysicalIds%20will%20be%20populated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20where%20I%20would%20start%20looking.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1073453%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1073453%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F182436%22%20target%3D%22_blank%22%3E%40Steve%20Mahoney%3C%2FA%3E%26nbsp%3BThis%20is%20for%20multiple%20users.%3C%2FP%3E%3CP%3EAlready%20performed%20the%20steps%20you've%20mentioned%20but%20all%20results%20seems%20good.%20I%20have%20no%20clue%20why%20it's%20blocked%20the%20status%20of%20the%20PC%20says%20that%20it's%20Hybrid%20Azure%20AD%20joined.%20The%20PC's%20are%20all%20Hybrid%20Azure%20AD%20Joined%20in%20Azure%20AD.%3C%2FP%3E%3CP%3EThe%20funny%20part%20is%20that%20when%20I%20review%20the%20sign-in%20logs%20of%20Exclaimer%20cloud%2C%20we%20see%20sometimes%20conditional%20access%20policy%20failures%20because%20device%20is%20not%20Hybrid%20Azure%20AD%20joined.%20But%20we've%20currently%20excluded%20the%20Exclaimer%20Cloud%20application%20from%20the%20policy's.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1073464%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1073464%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F205438%22%20target%3D%22_blank%22%3E%40Jordy%20Blommaert%3C%2FA%3E%26nbsp%3BMaybe%20not%20a%20case%20for%20you%20but%20I%20see%20strange%20behaviors%20if%20the%20computer%20for%20some%20reason%20is%20both%20Azure%20AD%20registered%20and%20Hybrid%20Azure%20AD%20Join.%20This%20was%20a%20problem%20before%20a%20certain%20version%20of%20Windows%2010%20(I%20think%20version%201809).%20I've%20also%20seen%20problems%20if%20the%20computer%20was%20recently%20domain%20joined%20(I%20guess%20it%20needs%20time%20to%20sync%20etc).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20either%20case%2C%20Microsoft%20seems%20to%20be%20doing%20a%20lot%20of%20changes%20on%20Windows%2010%20to%20make%20Hybrid%20Azure%20AD%20Join%20more%20reliable%20and%20functional%20so%20maybe%20you%20can%20see%20there%20are%20certain%20versions%20which%20have%20this%20problem%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1073467%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1073467%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F19218%22%20target%3D%22_blank%22%3E%40Jonas%20Back%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20tip.%20I%20will%20review%20this%20with%20our%20customer.%3C%2FP%3E%3CP%3EThere%20are%20indeed%20some%20devices%20that%20are%20Hybrid%20Azure%20AD%20Joined%20and%20Registered.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1074952%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1074952%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F205438%22%20target%3D%22_blank%22%3E%40Jordy%20Blommaert%3C%2FA%3E%26nbsp%3BOK%2C%20the%20only%20really%20good%20way%20to%20get%20out%20of%20that%20mess%20(when%20the%20same%20device%20is%20both%20Azure%20AD%20Registered%20and%20Hybrid%20Azure%20AD%20Join)%20is%20to%20update%20Windows%2010%20to%20at%20least%201809.%20It%20should%20then%20sort%20it%20out%20by%20itself%20and%20delete%20the%20Azure%20AD%20Registered%20device%20(just%20give%20it%20a%20little%20bit%20time%20and%20reboots).%20Just%20deleting%20the%20Azure%20AD%20Registered%20device%20in%20Azure%20AD%20is%20not%20a%20good%20solution%20since%20they%20device%20will%20still%20think%20it's%20Azure%20AD%20Registered.%20It's%20not%20easy%20to%20fix%20from%20the%20client%20side%20either%20since%20Azure%20AD%20Registered%20is%20on%20per-user%20basis.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1075879%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1075879%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F19218%22%20target%3D%22_blank%22%3E%40Jonas%20Back%3C%2FA%3E%26nbsp%3BWe%20reviewed%20the%20version%20of%20the%20PC's%20they%20are%20all%20running%20Windows%2010%20Pro%20Version%201903%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1075895%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Hybrid%20Azure%20AD%20Joined%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1075895%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F205438%22%20target%3D%22_blank%22%3E%40Jordy%20Blommaert%3C%2FA%3E%26nbsp%3BThen%20it%20should%20automatically%20removed%20the%20duplicated%20Azure%20AD%20Registered%20device.%20If%20you%20go%20to%20portal.azure.com%20%26gt%3B%20Azure%20Active%20Directory%20%26gt%3B%20Devices%20you%20can%20search%20for%20the%20name%20and%20see%20when%20it%20last%20had%20activity.%20Maybe%20the%20Azure%20AD%20Registered%20device%20haven't%20had%20any%20activity%20for%20a%20long%20time%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

At multiple at our customers we configured a policy that matches all cloud applications only can be accessed when they're using an Hybrid Azure AD Joined device. All their devices are synchronized from their on-premise AD towards Azure AD and they become Hybrid Azure AD joined.

The conditional access policies have worked for a few months but suddenly they receive a pop-up that their device is a non-corporate device.

This can often be resolved to exclude them from the conditional access policy and re-add them towards the policy.

We still didn't found a root cause why this happens so often?

What are the checks that are performed if a device is Hybrid Azure AD joined?

9 Replies
Highlighted
With what apps are you having this issue?
Highlighted
Exclaimer Cloud and some others with Outlook
Highlighted

The things I would check.

1.) Check the user's Sign-ins log

 - to confirm where the issue is at.

2.) On the PC run this command:
   DSREGCMD /status

 - That will tell you about the state of the PC.

3.) Check for multiple entries in AAD.

   Get-AzureADDevice -SearchString <PC name> | Format-List DisplayName, DeviceTrustType, DevicePhysicalIds, DeviceId

 - The one that has "ServerAd" for the DeviceTrustType is the object for the Hybrid Join.

 - There can be others, like AzureAD, which are the PC being joined more than once.

 - If the Hybrid join has completed the DevicePhysicalIds will be populated.

 

That's where I would start looking.

 

Highlighted

@Steve Mahoney This is for multiple users.

Already performed the steps you've mentioned but all results seems good. I have no clue why it's blocked the status of the PC says that it's Hybrid Azure AD joined. The PC's are all Hybrid Azure AD Joined in Azure AD.

The funny part is that when I review the sign-in logs of Exclaimer cloud, we see sometimes conditional access policy failures because device is not Hybrid Azure AD joined. But we've currently excluded the Exclaimer Cloud application from the policy's.

Highlighted

@Jordy Blommaert Maybe not a case for you but I see strange behaviors if the computer for some reason is both Azure AD registered and Hybrid Azure AD Join. This was a problem before a certain version of Windows 10 (I think version 1809). I've also seen problems if the computer was recently domain joined (I guess it needs time to sync etc).

 

In either case, Microsoft seems to be doing a lot of changes on Windows 10 to make Hybrid Azure AD Join more reliable and functional so maybe you can see there are certain versions which have this problem?

Highlighted

@Jonas Back Thanks for the tip. I will review this with our customer.

There are indeed some devices that are Hybrid Azure AD Joined and Registered.

Highlighted

@Jordy Blommaert OK, the only really good way to get out of that mess (when the same device is both Azure AD Registered and Hybrid Azure AD Join) is to update Windows 10 to at least 1809. It should then sort it out by itself and delete the Azure AD Registered device (just give it a little bit time and reboots). Just deleting the Azure AD Registered device in Azure AD is not a good solution since they device will still think it's Azure AD Registered. It's not easy to fix from the client side either since Azure AD Registered is on per-user basis.

Highlighted

@Jonas Back We reviewed the version of the PC's they are all running Windows 10 Pro Version 1903

Highlighted

@Jordy Blommaert Then it should automatically removed the duplicated Azure AD Registered device. If you go to portal.azure.com > Azure Active Directory > Devices you can search for the name and see when it last had activity. Maybe the Azure AD Registered device haven't had any activity for a long time?

 

 

Related Conversations
PDF generation in Azure App Service
Ryan Stone in Azure on
0 Replies
Importing Data in Access
Gil_F1214 in Access on
1 Replies
Microsoft Teams - Video Chat
Liam1984 in Access on
4 Replies
Notify when App Service isn't available
meStupid in Azure on
1 Replies
NYC, NJ or PA Developer Opportunity
chpalmer in Azure on
0 Replies