Open will-iam-gm opened 1 day ago
Hi @will-iam-gm ,
Thank you for taking time to report this issue.
The azapi_update_resource
is used to update an existing resource, from the logs, it seems the target resource doesn't exist.
@ms-henglu that is interesting so your saying we have been using this resource incorrectly? We definitely been using this to add virtualendpoints to Postgres Flexible servers for several months..
I think we assumed the resource getting updated was the Postgres server itself, which does exist
Hello yesterday we experienced several of our workflows failing on running
azapi_update_resource
We are using this resource to create a virtual endpoint for Postgres Flexible Servers, we started using this several months back since at the time Azurerm did not support virtual endpoints.
Here is the error
Debug turned on
We are using Terraform 1.6.6 and AzAPI provider 1.12.1
Also we are using Api Version "2023-06-01-preview", I tried swapping this for Api Version "2023-12-01-preview" and no difference.
Reference : https://learn.microsoft.com/en-us/azure/templates/microsoft.dbforpostgresql/flexibleservers/virtualendpoints?pivots=deployment-language-terraform