Terraform v1.0.2
on windows_amd64
- provider registry.terraform.io/hashicorp/azuread v1.6.0
- provider registry.terraform.io/hashicorp/azurerm v2.67.0
- provider registry.terraform.io/hashicorp/random v3.1.0
Resource: azurerm_api_management_api_operation
url_template = “GetCommercialParcelById/{id}”
The {id} is failing because of the curly braces. I have tried to escape them with no luck.
This is the error i am receiving:
Error: creating/updating API Operation apimanagement.APIOperationClient#CreateOrUpdate: Failure responding to request: StatusCode=400 – Original Error: autorest/azure: Service returned an error. Status=400 Code=“ValidationError” Message=“One or more fields contain incorrect values:” Details=[{“code”:“ValidationError”,“message”:“All template parameters used in the UriTemplate must be defined in the Operation, and vice-versa.”,“target”:“templateParameters”}]
Any help with resolving this would be greatly appreicated.