Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added new custom resource SecurityContacts #7897

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Rama-Ayyagari
Copy link

added new custom resource SecurityContacts

policies:
    - name: mck-azure-security-ensure-send-email-notification-for-high-severity-alerts-is-enabled
    resource: azure.security-contacts
    filters:
        - name: default
        - properties.alertNotifications.state: "On"

Sample response of security conatacts

{
  "value": [
    {
      "id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/securityContact/default",
      "name": "default",
      "type": "Microsoft.Security/securityContact",
      "properties": {
        "notificationsByRole": {
          "state": "On",
          "roles": [
            "Owner",
            "Admin"
          ]
        },
        "emails": "john@contoso.com;Jane@contoso.com",
        "phone": "(214)275-4038",
        "alertNotifications": {
          "state": "On",
          "minimalSeverity": "Low"
        }
      }
    }
  ]
}

@thisisshi
Copy link
Member

Hi @Rama-Ayyagari looks like this is hitting some lint issues, could you resolve? thanks!

@thisisshi
Copy link
Member

Also missing a test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants