@Ashu Kumar Apologies for the delay in responding to your query. unfortunately, we don't have an automation for this ask.
The reason is that with this kind of automation, you would basically automatically create a resource exemption for (all?) unhealthy resources just to get Secure Score up to 100%, instead of remediating those recommendations. That’s not what we would like customers to do, instead the exemption feature is meant to be a solution for customers that accept the risk for some resources, or in case they have a different solution/process in place that will remediate the recommendation’s intend. If the latter is the case in the request below, you can simply disable the particular recommendation in Defender for Cloud’s assignment.
There are two blogs that have been published when the feature was initially released which cover automation capabilities within this scope:
Let me know if you have any further questions, feel free to post back.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.