Microsoft Sentinel
Developer and API

Terraform API Setup

In brief

The article now explains how to create custom IAM roles, service accounts, workload identity resources, and Pub/Sub resources with Terraform, plus clearer validation and Azure Government references.

What Defender admins need to know

Administrators have more complete guidance for configuring and verifying GCP ingestion, including authentication without long-lived keys.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

  1. Enable the Microsoft Sentinel health feature for data connectors.

Troubleshooting

Use the following guidance to resolve common issues when setting up the GCP Pub/Sub connectors.

  1. "Error 409: Requested entity already exists" When when running terraformTerraform scripts: Terraform state is the file Terraform uses to track the resources it manages. If the resources already exist in GCP, import those existing GCP resourcesthem into Terraform state so Terraform managestracks them instead of trying to recreate them. For example, with error message: "Error creating WorkloadIdentityPool: googleapi: Error 409: Requested entity already exists", import the existing workload identity pool into Terraform state so Terraform can manage it declaratively. Find the pool ID and project ID, then run:use the following command to import the existing workload identity pool into your local Terraform state:
terraform import google_iam_workload_identity_pool.<POOL_RESOURCE_NAME> projects/<PROJECT_ID>/locations/global/workloadIdentityPools/<POOL_ID>