Open Apokalypt opened 1 week ago
Based on my tries, it seems that the problem comes from Azure API but maybe it's due to an invalid body sent from Terraform
Hi @Apokalypt thanks for opening this issue. In order to find the root cause, a Terraform configuration (containing dependent resources and variable values) and detailed steps would be of great help in quickly reproducing/troubleshooting the issue. Could you please provide the complete Terraform configuration and detailed repro steps to help reproduce this issue? Thanks in advanced.
Seems to be related to https://github.com/hashicorp/terraform-provider-azurerm/issues/26386
Seems to be related to #26386
Yeah, apparently it has been fix by Azure... I will make a few try later to make sure everything is ok
Hi @Apokalypt thanks for opening this issue. In order to find the root cause, a Terraform configuration (containing dependent resources and variable values) and detailed steps would be of great help in quickly reproducing/troubleshooting the issue. Could you please provide the complete Terraform configuration and detailed repro steps to help reproduce this issue? Thanks in advanced.
This is the exact file configuration and steps I've done đŸ˜… So, I'm not sure to understand what's missing. However, I will take some time to verify it to make sure that everything is ok because maybe some values are set automatically due to our Azure environment
Is there an existing issue for this?
Community Note
Terraform Version
1.8.5
AzureRM Provider Version
3.109.0
Affected Resource(s)/Data Source(s)
azurerm_api_management
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Actual Behaviour
unexpected status 400 (400 Bad Request) with error: ValidationError: Invalid payload format. Contract should have 'properties' specified.
Steps to Reproduce
terraform plan
terraform apply
-> Sometimes the full creation (service creation + API deletion) works correctly so you may have to repeat these steps 2 or 3 times... If that's the case don't forget to remove APIM service before
Important Factoids
No response
References
No response