-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure blueprint module for security center
- Loading branch information
1 parent
cedd153
commit 703e706
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**/.terraform | ||
**/*.tfstate | ||
.DS_Store | ||
**/terraform.tfstate.d | ||
**/terraform.tfstate.backup | ||
**/.terraform.tfstate.lock.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
resource "azurerm_security_center_contact" "contact" { | ||
email = "${var.contact_email}" | ||
phone = "${var.contact_phone}" | ||
|
||
alert_notifications = true | ||
alerts_to_admins = true | ||
} | ||
|
||
resource "azurerm_security_center_subscription_pricing" "sc" { | ||
tier = "Standard" | ||
} | ||
|
||
resource "azurerm_security_center_workspace" "sc" { | ||
scope = "${var.scope_id}" | ||
workspace_id = "${var.workspace_id}" | ||
|
||
depends_on = ["azurerm_security_center_subscription_pricing.sc"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
variable "contact_email" { | ||
description = "(Required) Email address of the distribution list" | ||
} | ||
|
||
variable "contact_phone" { | ||
description = "(Required) Phone number of the security team" | ||
} | ||
|
||
variable "scope_id" { | ||
description = "(Required) The scope at which the Role Assignment applies too, such as /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333, /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup, or /subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM." | ||
} | ||
|
||
variable "workspace_id" { | ||
description = "(Required) Azure Monitor workspace ID" | ||
} |