You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/how-to/create-resource-terraform.md
+36-16Lines changed: 36 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,23 @@ ai-usage: ai-assisted
15
15
#customer intent: As a Terraform user, I want to see how to configure Azure AI Foundry using Terraform, so I can automate my setup.
16
16
---
17
17
18
-
# Use Terraform to create Azure AI Foundry resource
18
+
# Use Terraform to manage Azure AI Foundry resources
19
19
20
-
In this article, you use Terraform to create an [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs) resource. You learn how to use Terraform to create AI Foundry management configurations including projects, deployments, and connections.
20
+
In this article, you use Terraform to manage an [Azure AI Foundry](https://ai.azure.com/?cid=learnDocs) resource. You learn how to use Terraform to manage AI Foundry management configurations including projects, deployments, and connections.
21
21
22
-
The examples used in article use the [AzAPI](/azure/developer/terraform/overview-azapi-provider) Terraform provider. Similar [AzureRM](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/ai_services) provider support is available via the classic `AzureRM_AIServices` module (using the `aiservices` kind as its value), but is limited in functionality to resource and deployment creation.
22
+
You can use either the Terraform [AzAPI Provider](/azure/developer/terraform/overview-azapi-provider) or [AzureRM Provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cognitive_account) to manage Azure AI Foundry resources. While the AzAPI provider lets you access all Foundry control plane configurations including preview features, the AzureRM variant is limited to core management capabilities:
23
+
24
+
|Action|AzAPI Provider|AzureRM Provider|
25
+
| --- | --- | --- |
26
+
| Create a resource group | ✅ | ✅ |
27
+
| Create an AI Foundry resource | ✅ | ✅ |
28
+
| Configure deployments | ✅ | ✅ |
29
+
| Configure projects | ✅ | - |
30
+
| Configure a connection to knowledge and tools | ✅ | - |
31
+
| Configure a capability host (for advanced tool configurations like [Agent standard setup](../agents/concepts/capability-hosts.md)) | ✅ | - |
@@ -39,10 +41,7 @@ The examples used in article use the [AzAPI](/azure/developer/terraform/overview
39
41
40
42
## Implement a basic AI Foundry configuration using Terraform code
41
43
42
-
> [!NOTE]
43
-
> The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-ai-foundry). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-ai-foundry/TestRecord.md). You may need to update the resource provider versions used in the template to use the latest available versions.
44
-
>
45
-
> See more [articles and sample code showing how to use Terraform to manage Azure resources](/azure/terraform)
44
+
# [AzAPI Provider](#tab/azapi)
46
45
47
46
1. Create a directory in which to test and run the sample Terraform code and make it the current directory.
48
47
@@ -58,6 +57,24 @@ The examples used in article use the [AzAPI](/azure/developer/terraform/overview
0 commit comments