azapi_data_plane_resource to support AI Foundry AI Agents dataplane operations
Currently it is possible to deploy the AI Foundry resource and a project, but it is not possible to deploy an agent via Terraform: https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/main.tf
The data plane API is defined here https://learn.microsoft.com/en-us/rest/api/aifoundry/aiagents/update-agent/update-agent?view=rest-aifoundry-aiagents-v1&tabs=HTTP.
It would be awesome to be able to update the complete agent deployment through Terraform without additional scripting.
Hey @jugi92 thanks for this issue.
The inherent nature of data plane resources like this one is that we can only support them if they are compatible with autogenerative support. Control plane resources in these sorts of scenarios would be automatically supported through azapi_resource_action. But since this is data plane it would require manual maintenance and modifications which defeats the purpose of the provider. However, it would definitely be a good idea to see if support for this could come through the azurerm provider somehow.