@wlodzimierz.borkowski@dnvgl.com , thank you for your question.
You can check out this blog article which has step-by-step guidelines for AKS custom policy feature.
----
Hope this helps.
Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.