Forum Discussion
krupakar
Feb 17, 2022Copper Contributor
Can't create custom azure policy for AKS which require access to state data
Currently i was unable to create custom azure policy for AKS which require access to state data.For example to create a policy for uniqueingresshostnames in AKS cluster ,it is impossible to know if a...
BrooksV
May 07, 2022Copper Contributor
The first thing to check is does the resource have a property that contains the value you want to access from a policy rule?
- If so, then search https://www.azadvertizer.net/azpolicyaliasesadvertizer_all.html for a Policy Alias that represents that resource property.
- If the Policy Alias exists, then you can construct a policy rule to examine and determine compliance.
- If the Policy Alias does not exist, then you need to open a support ticket with Microsoft Azure Support and request the Policy Alias to be added.