Azure / terraform-provider-azapi

Terraform provider for Azure Resource Manager Rest API
https://registry.terraform.io/providers/Azure/azapi/latest
Mozilla Public License 2.0
193 stars 51 forks source link

azapi_resource_action regression in version 2 #683

Closed Klaas- closed 5 days ago

Klaas- commented 5 days ago

Hi, I am using azapi to update tags on the OS disk of a VM: https://github.com/hashicorp/terraform-provider-azurerm/issues/8162#issuecomment-1612611058

This no longer works in version 2 of the provider Error message is: The value must not be a string for the body attribute. From docs I see that in old and in new version it's described the same way:

1.15: body - (Optional) A dynamic attribute that contains the request body. 2.0.1 body (Dynamic) A dynamic attribute that contains the request body.

Please advise on how to properly set the body in 2.0.1

Klaas- commented 5 days ago

hmm nevermind -- https://registry.terraform.io/providers/Azure/azapi/latest/docs/guides/2.0-upgrade-guide#breaking-changes -- but I guess you should put that into the docs for the resources as well :)