From 0e859f9e641214bf39e7059a51b71a1ae1e201f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bindewald=2C=20Andr=C3=A9=20=28UIT=29?= Date: Mon, 7 Aug 2023 14:49:20 +0200 Subject: [PATCH 1/2] feat(azurerm_security_center_subscription_pricing): Support for enabling Defender for API pricing --- .../security_center_subscription_pricing_resource.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/securitycenter/security_center_subscription_pricing_resource.go b/internal/services/securitycenter/security_center_subscription_pricing_resource.go index aa748d4bb568..30ed505eece9 100644 --- a/internal/services/securitycenter/security_center_subscription_pricing_resource.go +++ b/internal/services/securitycenter/security_center_subscription_pricing_resource.go @@ -59,6 +59,7 @@ func resourceSecurityCenterSubscriptionPricing() *pluginsdk.Resource { Optional: true, Default: "VirtualMachines", ValidateFunc: validation.StringInSlice([]string{ + "Api", "AppServices", "ContainerRegistry", "KeyVaults", From 12aa15f396d7356d2b67421f544324b912b6dc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bindewald=2C=20Andr=C3=A9=20=28UIT=29?= Date: Mon, 7 Aug 2023 14:50:48 +0200 Subject: [PATCH 2/2] docs --- .../docs/r/security_center_subscription_pricing.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/security_center_subscription_pricing.html.markdown b/website/docs/r/security_center_subscription_pricing.html.markdown index 2aef59c5bc8d..39c924afd36b 100644 --- a/website/docs/r/security_center_subscription_pricing.html.markdown +++ b/website/docs/r/security_center_subscription_pricing.html.markdown @@ -26,7 +26,7 @@ resource "azurerm_security_center_subscription_pricing" "example" { 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 `AppServices`, `ContainerRegistry`, `KeyVaults`, `KubernetesService`, `SqlServers`, `SqlServerVirtualMachines`, `StorageAccounts`, `VirtualMachines`, `Arm`, `Dns`, `OpenSourceRelationalDatabases`, `Containers`, `CosmosDbs` and `CloudPosture`. Defaults to `VirtualMachines` +* `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. ~> **NOTE:** Changing the pricing tier to `Standard` affects all resources of the given type in the subscription and could be quite costly.