Skip to content

Commit

Permalink
azurerm_advanced_threat_protection - extend wait period after update
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyeqf committed Nov 5, 2024
1 parent 8a6ea72 commit d094155
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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),
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d094155

Please sign in to comment.