@Shahid Haider Welcome to Microsoft Q & A Community Forum. At the current moment, there is no such generator. The Policy team is working on various developments to improve the custom policy authoring. We value your feedback and invite you to submit your request to our UserVoice: https://feedback.azure.com/d365community/forum/675ae472-f324-ec11-b6e6-000d3a4f0da0 . Product Team uses UserVoice to manage our backlog and future investments.