Details of the scenario you tried and the problem that is occurring
when deploying this policy it accurately evaluates the resources which do not have flow logs, upon deployment this fails with the error, resourceNotFound.
Verbose logs showing the problem
Suggested solution to the issue
Noticed that the API version used for the Microsoft.Resources/deployments was 2019 and "Microsoft.Network/networkWatchers/flowLogs" was 2019. Both API were updated to 2022-09-01 and 203-04-01 respectively. Policy worked
If policy is Guest Configuration - details about target node
Details of the scenario you tried and the problem that is occurring
when deploying this policy it accurately evaluates the resources which do not have flow logs, upon deployment this fails with the error, resourceNotFound.
Verbose logs showing the problem
Suggested solution to the issue
Noticed that the API version used for the Microsoft.Resources/deployments was 2019 and "Microsoft.Network/networkWatchers/flowLogs" was 2019. Both API were updated to 2022-09-01 and 203-04-01 respectively. Policy worked
If policy is Guest Configuration - details about target node