diff --git a/azurerm/internal/services/securitycenter/security_center_setting_resource_test.go b/azurerm/internal/services/securitycenter/security_center_setting_resource_test.go index d4f2aad90b5cb..2d5b06aa33e40 100644 --- a/azurerm/internal/services/securitycenter/security_center_setting_resource_test.go +++ b/azurerm/internal/services/securitycenter/security_center_setting_resource_test.go @@ -73,7 +73,7 @@ func (SecurityCenterSettingResource) Exists(ctx context.Context, clients *client return nil, fmt.Errorf("reading Security Center Setting (%s): %+v", id.SettingName, err) } - return utils.Bool(resp.ID != nil), nil + return utils.Bool(resp.Value != nil), nil } func (SecurityCenterSettingResource) cfg(settingName string, enabled bool) string {