Hello @Farzana Mustafa ,
Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you are facing issues with WAF policy automatically switching from Prevention to Detection mode.
I informed this should not be the ideal case and suggested to check the activity logs.
You informed us you were able to see the changes in Activity Log and the changes were indeed happening.
However, it turns out to be one-off issue and the issue is no longer reproducible.
Thank you for leveraging Microsoft Q&A platform.
We value your continued contribution.
Cheers,
Kapil.
----------------------------------------------------------------------------------------------------------------
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.