Forum Discussion
Roberto Camacho
Jun 25, 2020Copper Contributor
Anybody know how to create a custom policy to deny public network access to PaaS services
I know there is an audit components to PaaS resources to deny public network but is there a way to deny instead of audit the denial of public network? Or does anybody know how to create a custom pol...
MarxAndreas
Nov 05, 2020Copper Contributor
Hi.
Does anybody know, if this is possible?
Best regards
Andreas
hspinto
Microsoft
Nov 05, 2020MarxAndreas and Roberto Camacho
it isn't possible to have a global Policy for public network access to PaaS resources, because each PaaS resource provider has its own (ARM) way of declaring public network access hardening. That's why you have built-in policy definitions to restrict network access for each PaaS resource type.
Regarding the "deny" instead of "audit" question, some policies do have an "effect" parameter you can change at assignment time. I am not sure, however, if this applies to some PaaS network restriction policies. In case you have policies with an hard-coded "audit" effect, you would have to duplicate the built-in definition and create your own custom definition from it.