Forum Discussion

Roberto Camacho's avatar
Roberto Camacho
Copper Contributor
Jun 25, 2020

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 policy for this ask?

    • hspinto's avatar
      hspinto
      Icon for Microsoft rankMicrosoft

      MarxAndreas 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.

Resources