Resource manager api error

Hey,

We do a terraform project, where we enable several apis in gcp (like bigqueri, cloud run, scheduler, vertex ai, resource manager etc.). We have a trouble. When we run for the first time our script in azure pipeline we pass it successfully. But after we do the absolutely same things we have an error where is written that the resource manager api has not been enabled, but meanwhile it is enabled in .tfstate file and also enabled in gcp.

If we delete .tfstate files in gcp bucket, terraform apply works correctly as in first time.

We also tried to do all steps in an another gcp project, where we got positive results, everything works correctly.

You can find the error below.

Error when reading or editing Project Service <project_id>/cloudresourcemanager.googleapis.com: googleapi: Error 403: Cloud Resource Manager API has not been used in project before or it is disabled. Enable it by visiting then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.