SOLVED

Conditional Access Policy will not save "Validating Policy"

%3CLINGO-SUB%20id%3D%22lingo-sub-2217034%22%20slang%3D%22en-US%22%3EConditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217034%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20conditional%20access%20policy%20to%20enable%20MFA.%20It's%20all%20set%20and%20good.%20I%20have%20it%20shown%20here.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22conditional-access.png%22%20style%3D%22width%3A%20586px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F264819i7CB80E71D7EBB27A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22conditional-access.png%22%20alt%3D%22conditional-access.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20later%20wanted%20to%20go%20into%20%22Session%22%20and%20enable%20%22Sign-In%20Frequency%22%20and%20set%20it%20to%20the%20recommended%2090%20days.%20After%20I%20hit%20save%20I%20get%20%22Validating%20Session%22%20at%20the%20bottom.%20But%20it%20never%20actually%20saves%20at%20all.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tried%20re-creating%20the%20policy%20from%20scratch%20including%20this%20setting%20and%20it%20will%20not%20save.%20I%20don't%20know%20why.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2217034%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217151%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217151%22%20slang%3D%22en-US%22%3EHello%2C%20the%20Azure%20AD%20default%20configuration%20for%20user%20sign-in%20frequency%20is%2090%20days%2C%20which%20should%20explain%20what%20you're%20experiencing%20(can%20not%20save%20something%20that%20is%20already%20set).%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217186%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217186%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40ChristianBergstrom%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20when%20using%20MFA%2C%20how%20do%20I%20get%20it%20to%20add%20the%20prompt%20%22Remember%20this%20device%20for%20X%20days%22%20option%3F%20Because%20under%20%22Remember%20multi-factor%20authentication%20on%20trusted%20device%22%20setting%20it%20tells%20me%20to%20use%20Conditional%20Access%3A%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CBR%20%2F%3ENOTE%3A%20For%20the%20optimal%20user%20experience%2C%20we%20recommend%20using%20Conditional%20Access%20sign-in%20frequency%20to%20extend%20session%20lifetimes%20on%20trusted%20devices%2C%20locations%2C%20or%20low-risk%20sessions%20as%20an%20alternative%20to%20%E2%80%98Remember%20MFA%20on%20a%20trusted%20device%E2%80%99%20settings.%20If%20using%20'Remember%20MFA%20on%20a%20trusted%20device%2C'%20be%20sure%20to%20extend%20the%20duration%20to%2090%20or%20more%20days.%20Learn%20more%20about%20reauthentication%20prompts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20I%20should%20enable%20it%20in%20trusted%20device%3F%20Or%20require%20MFA%20with%20each%20login%20when%20outside%20my%20network%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217203%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217203%22%20slang%3D%22en-US%22%3EBTW%2C%20I%20just%20tried%20setting%20it%20to%2045%20days%20and%20it%20still%20won't%20save.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217395%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217395%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20well%20the%2090%20days%20was%20something%20that%20just%20popped%20to%20mind%20so%20had%20to%20put%20it%20out%20there.%20As%20why%20it%20is%20not%20saving%20your%20settings%20I%20think%20it's%20better%20if%20I%20just%20link%20this%20for%20guidance.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdirteam.com%2Fsander%2F2020%2F06%2F17%2Ftodo-move-from-the-allow-users-to-remember-multi-factor-authentication-on-devices-they-trust-option-to-conditional-access%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdirteam.com%2Fsander%2F2020%2F06%2F17%2Ftodo-move-from-the-allow-users-to-remember-multi-factor-authentication-on-devices-they-trust-option-to-conditional-access%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20for%20reference%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fauthentication%2Fhowto-mfa-mfasettings%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fauthentication%2Fhowto-mfa-mfasettings%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconditional-access%2Fhowto-conditional-access-session-lifetime%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EConfigure%20authentication%20session%20management%20-%20Azure%20Active%20Directory%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217655%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217655%22%20slang%3D%22en-US%22%3EI%20read%20the%20two%20reference%20links%20before.%20From%20what%20your%20dirteam.com%20link%20suggests%2C%20they%20are%20advocating%20that%20the%20remember%20device%20is%20not%20to%20be%20used.%20But%20also%20suggests%20you%20can%20enable%20the%20session%20sign-in%20frequency%20along%20with%20MFA%20(mostly%20from%20the%20comments)%20but%20that%20isn't%20working%20for%20me.%20it%20won't%20enable%20it.%20But%20it%20sounds%20like%20unless%20i%20want%20to%20reduce%20it%20from%2090%20days%2C%20I%20don't%20need%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2218522%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2218522%22%20slang%3D%22en-US%22%3EHello%20again%2C%20sounds%20right%20to%20me%20as%20well%20as%20it%E2%80%99s%20basically%20about%20adjusting%20the%20default%20rolling%20window%20(90).%20But%20I%20would%20open%20up%20a%20support%20ticket%20with%20Microsoft%20anyway%20to%20get%20an%20answer%20as%20to%20why%20you%20cannot%20save%20your%20policy%20with%20a%20custom%20number.%20Perhaps%20something%20to%20do%20with%20the%20recent%20incident.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2219998%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2219998%22%20slang%3D%22en-US%22%3E%3CP%3EI%20too%20am%20experiencing%20the%20same%20hung%20'validating%20policy'%20in%20conditional%20access.%20Mine%20is%20not%20a%20policy%20already%20active%2C%20a%20brand%20new%20policy%20with%20no%20bearing%20or%20effect%20on%20any%20other%20features%20or%20policies%20already%20being%20manipulated%20by%20conditional%20access.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2220274%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2220274%22%20slang%3D%22en-US%22%3E%3CP%3EMe%20too.%20I%20can't%20create%20a%20new%20CA%20policy%20(or%20edit%20an%20existing%20one)%20where%20I%20change%20the%20%22sign-in%20frequency%22%20option%20to%20On.%20I%20can%20edit%20a%20CA%20policy%20that%20has%20%22sign%20in%20frequency%22%20turned%20on%20but%20I%20can't%20change%20the%20values%20for%20that%20frequency.%20This%20is%20all%20irrespective%20of%20what%20value%20I%20use%20(e.g.%2090%20days%2C%201%20hour%2C%20etc.).%3CBR%20%2F%3E%3CBR%20%2F%3EIt's%20been%20like%20this%20for%20a%20couple%20of%20days%20or%20more.%20I've%20opened%20a%20case%20with%20Microsoft.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2220292%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2220292%22%20slang%3D%22en-US%22%3EHi%2C%20thanks%20for%20adding%20to%20the%20conversation.%20Could%20be%20what%20I%20said%20in%20a%20reply%20above%2C%20that%20it's%20an%20effect%20of%20the%20recent%20Azure%20outage%20(multiple%20M365%20services).%20Please%20update%20with%20a%20response%20from%20the%20official%20support.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2221090%22%20slang%3D%22en-US%22%3ERe%3A%20Conditional%20Access%20Policy%20will%20not%20save%20%22Validating%20Policy%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2221090%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20my%20discussion%20with%20the%20microsoft%20rep%2C%20he%20had%20me%20do%20some%20sort%20of%20log%20and%20send%20it%20to%20him.%20I%20did%20so%20and%20they%20will%20get%20back%20to%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

I have a conditional access policy to enable MFA. It's all set and good. I have it shown here.conditional-access.png

 

I later wanted to go into "Session" and enable "Sign-In Frequency" and set it to the recommended 90 days. After I hit save I get "Validating Session" at the bottom. But it never actually saves at all.

I tried re-creating the policy from scratch including this setting and it will not save. I don't know why.

23 Replies
Hello, the Azure AD default configuration for user sign-in frequency is 90 days, which should explain what you're experiencing (can not save something that is already set).

@ChristianBergstrom 

 

So, when using MFA, how do I get it to add the prompt "Remember this device for X days" option? Because under "Remember multi-factor authentication on trusted device" setting it tells me to use Conditional Access:


NOTE: For the optimal user experience, we recommend using Conditional Access sign-in frequency to extend session lifetimes on trusted devices, locations, or low-risk sessions as an alternative to ‘Remember MFA on a trusted device’ settings. If using 'Remember MFA on a trusted device,' be sure to extend the duration to 90 or more days. Learn more about reauthentication prompts.

 

So, I should enable it in trusted device? Or require MFA with each login when outside my network?

BTW, I just tried setting it to 45 days and it still won't save.

Hi, well the 90 days was something that just popped to mind so had to put it out there. As why it is not saving your settings I think it's better if I just link this for guidance.

https://dirteam.com/sander/2020/06/17/todo-move-from-the-allow-users-to-remember-multi-factor-authen...

And for reference
https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-mfasettings

 

Configure authentication session management - Azure Active Directory | Microsoft Docs

I read the two reference links before. From what your dirteam.com link suggests, they are advocating that the remember device is not to be used. But also suggests you can enable the session sign-in frequency along with MFA (mostly from the comments) but that isn't working for me. it won't enable it. But it sounds like unless i want to reduce it from 90 days, I don't need it.
Hello again, sounds right to me as well as it’s basically about adjusting the default rolling window (90). But I would open up a support ticket with Microsoft anyway to get an answer as to why you cannot save your policy with a custom number. Perhaps something to do with the recent incident.

I too am experiencing the same hung 'validating policy' in conditional access. Mine is not a policy already active, a brand new policy with no bearing or effect on any other features or policies already being manipulated by conditional access. 

Me too. I can't create a new CA policy (or edit an existing one) where I change the "sign-in frequency" option to On. I can edit a CA policy that has "sign in frequency" turned on but I can't change the values for that frequency. This is all irrespective of what value I use (e.g. 90 days, 1 hour, etc.).

It's been like this for a couple of days or more. I've opened a case with Microsoft.

Hi, thanks for adding to the conversation. Could be what I said in a reply above, that it's an effect of the recent Azure outage (multiple M365 services). Please update with a response from the official support.

In my discussion with the microsoft rep, he had me do some sort of log and send it to him. I did so and they will get back to me.

That's great. Thanks for the update.

@ChristianBergstrom  @Tomnibus_MedOne have you heard anything back? This seems to be a recent bug. We're about to open a sev1 ticket on this. 

FYI, it's fallout from the Azure AD outage on Monday March, 15.
Ah, as I said above then. Thanks.

Hi @itomni@snout @ChrisShawLHC and possibly @Brownin88,

 

While this is broken on the Azure side of things, there is a workaround with Graph.

 

1) Create the policy in Azure AD without setting Sign-In Frequency.

2) Head over to Graph and sign in with your Global Administrator account https://developer.microsoft.com/en-us/graph/graph-explorer

3) Run the following query: GET https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies

(you may need to Consent to a few things under Modify Permissions)

4) Find the Policy you just created in the Response Preview and copy the ID

ID.png

5) Change the request to PATCH and add the ID to the end of the previous request:

PATCH https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies/<id> and Edit your Request body to the following:

{
    "sessionControls": {
        "signInFrequency": {
            "value": 90,
            "type": "days",
            "isEnabled": true
        }
    }
}

 

patch.png

6) Run the query (you may have to consent to a couple of things again)

7) Done! You will get a 204 No Content success message and the policy has now been updated

I have not yet. I submitted several things he asked for and they are reviewing it. I hope to hear something this afternoon.
This looks great! For me, with my open ticket. I don't want to change anything lest they conclude the problem doesn't exist anymore. But I hope this helps someone else.
Thanks for this. It's faster than getting all the PowerShell modules installed and doing it that way.
Well, I don't know if Microsoft Fixed things on its own or not. The MS tech was having me try all these things and it kept failing. He then had me run IDFix to fix problems with amy local AD. "To make sure there are no duplicates preventing me from saving the CA policy." I wondered why that would be an issue.

I ran Idfix and didn't have any duplicates but I had a couple other issues that I fixed mostly display name problems. I did not run an AD Sync at all. I just went in and tried to edit and save and it did. So, I think MS fixed it on the back end without me doing anything.