Manages the Pricing Tier for Azure Security Center in the current subscription.
resource "azurerm_security_center_subscription_pricing" "example" {
tier = "Standard"
resource_type = "VirtualMachines"
}
resource "azurerm_security_center_subscription_pricing" "example1" {
tier = "Standard"
resource_type = "CloudPosture"
extension {
name = "ContainerRegistriesVulnerabilityAssessments"
}
extension {
name = "AgentlessVmScanning"
additional_extension_properties = {
ExclusionTags = "[]"
}
}
extension {
name = "AgentlessDiscoveryForKubernetes"
}
extension {
name = "SensitiveDataDiscovery"
}
}
The following arguments are supported:
tier
- (Required) The pricing tier to use. Possible values are Free
and Standard
.resource_type
- (Optional) The resource type this setting affects. Possible values are Api
, AppServices
, ContainerRegistry
, KeyVaults
, KubernetesService
, SqlServers
, SqlServerVirtualMachines
, StorageAccounts
, VirtualMachines
, Arm
, Dns
, OpenSourceRelationalDatabases
, Containers
, CosmosDbs
and CloudPosture
. Defaults to VirtualMachines
subplan
- (Optional) Resource type pricing subplan. Contact your MSFT representative for possible values.extension
- (Optional) One or more extension
blocks as defined below.A extension
block supports the following:
name
- (Required) The name of extension.
additional_extension_properties
- (Optional) Key/Value pairs that are required for some extensions.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The subscription pricing ID.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 60 minutes) Used when creating the Security Center Subscription Pricing.update
- (Defaults to 60 minutes) Used when updating the Security Center Subscription Pricing.read
- (Defaults to 5 minutes) Used when retrieving the Security Center Subscription Pricing.delete
- (Defaults to 60 minutes) Used when deleting the Security Center Subscription Pricing.The pricing tier can be imported using the resource id
, e.g.
terraform import azurerm_security_center_subscription_pricing.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/pricings/<resource_type>