diff --git a/internal/services/securitycenter/advanced_threat_protection_resource.go b/internal/services/securitycenter/advanced_threat_protection_resource.go index e244afc39dc3..bcd1f0f7c12e 100644 --- a/internal/services/securitycenter/advanced_threat_protection_resource.go +++ b/internal/services/securitycenter/advanced_threat_protection_resource.go @@ -9,6 +9,7 @@ import ( "time" "github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v3.0/security" // nolint: staticcheck + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -112,8 +113,8 @@ func resourceAdvancedThreatProtectionCreateUpdate(d *pluginsdk.ResourceData, met } return resp, "error", fmt.Errorf("Properties was nil") }, - MinTimeout: 1 * time.Minute, - ContinuousTargetOccurence: 3, + MinTimeout: 30 * time.Second, + ContinuousTargetOccurence: 10, Timeout: time.Until(deadline), } @@ -148,7 +149,7 @@ func resourceAdvancedThreatProtectionRead(d *pluginsdk.ResourceData, meta interf d.Set("target_resource_id", id.TargetResourceID) if atpp := resp.AdvancedThreatProtectionProperties; atpp != nil { - d.Set("enabled", resp.IsEnabled) + d.Set("enabled", pointer.From(resp.IsEnabled)) } return nil