Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smedegaard opened this issue Mar 21, 2024 · 1 comment
Open

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

smedegaard opened this issue Mar 21, 2024 · 1 comment
Labels

Comments

@smedegaard
Copy link

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" {
@ms-henglu
Copy link
Collaborator

Hello @smedegaard ,

Thank you for taking time to report this issue and apologize for late response.

I guess you're using the Microsoft.Web/connections resource. From its document, it doesn't support specifying an identity: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/connections?pivots=deployment-language-terraform

Would you please share the document of the feature you want to use? I could help you make an azapi example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants