Skip to content

Add google_vertex_ai_agent_anomaly_detection_scope resource (beta)#18270

Open
jiany18-qd wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
jiany18-qd:aad-scope-resource
Open

Add google_vertex_ai_agent_anomaly_detection_scope resource (beta)#18270
jiany18-qd wants to merge 3 commits into
GoogleCloudPlatform:mainfrom
jiany18-qd:aad-scope-resource

Conversation

@jiany18-qd

@jiany18-qd jiany18-qd commented Jul 13, 2026

Copy link
Copy Markdown

Adds a new beta Terraform resource for Vertex AI Agent Anomaly Detection (AAD) scope (google_vertex_ai_agent_anomaly_detection_scope).

An AAD scope defines the Cloud Logging and Observability buckets that AAD monitors for anomalous agent behavior in a given location. Creating a scope provisions a dedicated tenant project for detection.

  • Create/Delete are async (LRO)
  • All configurable fields are immutable (no public Update method)
  • Read via standard GET
  • Only one scope per location

This is part of the AAD GA launch compliance (b/527074080). The v1 proto surface was promoted in cl/946753365; this resource targets google-beta (v1beta1) first, to be promoted to google (v1) at GA.

`google_vertex_ai_agent_anomaly_detection_scope`

Adds a new beta resource for the Vertex AI Agent Anomaly Detection (AAD)
scope, which defines the Cloud Logging and Observability buckets that AAD
monitors for anomalous agent behavior in a location. The resource supports
create/read/delete with LRO (async) create and delete; all configurable
fields are immutable since the API has no public update method.
@github-actions github-actions Bot requested a review from shuyama1 July 13, 2026 22:34
@github-actions

Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@shuyama1, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician

modular-magician commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit eb61b7e:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 1 file changed, 178 insertions(+)
google-beta provider View Diff 5 files changed, 1129 insertions(+)
terraform-google-conversion View Diff 1 file changed, 145 insertions(+)

Missing service labels

The following new resources do not have corresponding service labels:

  • google_vertex_ai_agent_anomaly_detection_scope

If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels.
An override-missing-service-label label can be added to allow merging.

Test report

Analytics

Total Tests Passed Skipped Affected
104 98 5 1
Affected Service Packages
  • vertexai

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccVertexAIAgentAnomalyDetectionScope_vertexAiAgentAnomalyDetectionScopeBasicExample

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
❌ Error · Log - TestAccVertexAIAgentAnomalyDetectionScope_vertexAiAgentAnomalyDetectionScopeBasicExample

Caution

Issues requiring attention before PR completion

🔴 Initial Recording Failed: Some tests failed during the recording step. See the table above for details.

Please address these issues to complete your PR. If you believe these detections are incorrect or unrelated to your change, please raise the concern with your reviewer.

View the recording VCR build log or the debug logs folder for detailed results.

@jiany18-qd, @shuyama1 VCR tests complete for eb61b7e!

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants