terraform-provider-azapi icon indicating copy to clipboard operation
terraform-provider-azapi copied to clipboard

error: `identity` is not expected here. Do you mean `id`?

Open smedegaard opened this issue 11 months ago • 1 comments

I'm trying to create a azapi_resource passing in the id of a azurerm_user_assigned_identity exactly as described in the docs of azapi_resource.

When running terraform plan I get the message that the identity block in azapi_resource is not expected.

I'm using version 1.12.1 of azapi.

│ Error: embedded schema validation failed: the `body` is invalid:
│ `identity` is not expected here. Do you mean `id`?
│  You can try to update `azapi` provider to the latest version or disable the validation using the feature flag `schema_validation_enabled = false` within the resource block
│
│   with azapi_resource.connection,
│   on main.tf line 130, in resource "azapi_resource" "connection":
│  130: resource "azapi_resource" "connection" {

smedegaard avatar Mar 21 '24 12:03 smedegaard