SC-100

Study mode — explanations shown

1

Design security solutions for infrastructure

medium

Refer to the exhibit. A company applies this Azure Policy to their subscription. An administrator tries to create a VM with a public IP address. What will happen?

Exhibit

{
  "properties": {
    "displayName": "Deny public IP on NICs",
    "policyType": "Custom",
    "mode": "All",
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Network/networkInterfaces"
          },
          {
            "field": "Microsoft.Network/networkInterfaces/ipConfigurations[*].publicIPAddress.id",
            "exists": "true"
          }
        ]
      },
      "then": {
        "effect": "Deny"
      }
    }
  }
}
0 of 90 answered