last sync: 2021-Nov-26 17:15:01 UTC

Azure Policy definition

[Deprecated]: A security contact phone number should be provided for your subscription

Name [Deprecated]: A security contact phone number should be provided for your subscription
Azure Portal
Id b4d66858-c922-44e3-9566-5cdb7a7be744
Version 1.0.0-deprecated
details on versioning
Category Security Center
Microsoft docs
Description Enter a phone number to receive notifications when Azure Security Center detects compromised resources - This policy is deprecated because phone numbers are no longer used in any scenario by Azure Security Center
Mode All
Type BuiltIn
Preview FALSE
Deprecated True
Effect Default: Disabled
Allowed: (AuditIfNotExists, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-01-22 09:14:53 change Version remains equal, new suffix: deprecated (1.0.0 > 1.0.0-deprecated)
Used in Initiatives none
JSON Changes

JSON
{
  "displayName": "[Deprecated]: A security contact phone number should be provided for your subscription",
  "policyType": "BuiltIn",
  "mode": "All",
  "description": "Enter a phone number to receive notifications when Azure Security Center detects compromised resources - This policy is deprecated because phone numbers are no longer used in any scenario by Azure Security Center",
  "metadata": {
    "version": "1.0.0-deprecated",
    "category": "Security Center",
    "deprecated": true
  },
  "parameters": {
    "effect": {
      "type": "String",
      "metadata": {
        "displayName": "Effect",
        "description": "Enable or disable the execution of the policy"
      },
      "allowedValues": [
        "AuditIfNotExists",
        "Disabled"
      ],
      "defaultValue": "Disabled"
    }
  },
  "policyRule": {
    "if": {
      "field": "type",
      "equals": "Microsoft.Resources/subscriptions"
    },
    "then": {
      "effect": "[parameters('effect')]",
      "details": {
        "type": "Microsoft.Security/securityContacts",
        "existenceCondition": {
          "field": "Microsoft.Security/securityContacts/phone",
          "notEquals": ""
        }
      }
    }
  }
}