avm-ptn-aiml-ai-foundry

Azure/avm-ptn-aiml-ai-foundry/azurerm

Terraform Module HCL AZURERM ✓ Verified

Terraform Azure Verified Pattern Module for Azure AI Foundry Pattern

Install
module "avm-ptn-aiml-ai-foundry" {
source = "Azure/avm-ptn-aiml-ai-foundry/azurerm"
version = "0.10.1"
}
⭐ Source on GitHub 📦 Registry page
README

Azure AI Foundry Pattern Module This Azure Verified Module (AVM) deploys Azure AI Foundry along with essential and optional supporting services to enable scalable AI application development. It provisions core resources such as the AI Foundry account, projects, agent service, RBACs, and resource locks, which are always deployed for baseline functionality. The module also supports supplemental infrastructure, like networking, compute, and monitoring, through dependent resources, and offers flexibility to either deploy or integrate existing services (BYOR) such as Key Vault, Storage Account, Cosmos DB, and AI Search. These BYOR resources can be provided externally or deployed via the module itself. Example deployment configurations range from minimal public setups to enterprise-grade private

Inputs (18)
NameTypeDescriptionDefault
locationstringAzure region where the resource should be deployed. required
resource_group_resource_idstringThe resource group resource id where the module resources will be deployed. required
base_namestringThe name prefix for the AI Foundry resources. required
ai_foundryobject({ name Configuration object for the Azure AI Foundry service to be created for AI workl{}
tagsmap(string)(Optional) Tags to be applied to all resources.null
ai_search_definitionmap(object({ existing_resoConfiguration object for the Azure AI Search service to be created as part of th{}
storage_account_definitionmap(object({ existing_resoConfiguration object for the Azure Storage Account to be created for GenAI servi{}
create_byorboolWhether to create resources such as AI Search, Cosmos DB, Key Vault, and Storagefalse
create_private_endpointsboolWhether to create private endpoints for AI Foundry, Cosmos DB, Key Vault, and AIfalse
enable_telemetryboolThis variable controls whether or not telemetry is enabled for the module. For mtrue
resource_namesobject({ ai_agent_host Custom names for each resource. If not provided, names will be generated using b{}
cosmosdb_definitionmap(object({ existing_resoConfiguration object for the Azure Cosmos DB account to be created for GenAI ser{}
key_vault_definitionmap(object({ existing_resoConfiguration object for the Azure Key Vault to be created for GenAI services. {}
cognitive_services_api_versionstringAPI version used for Microsoft.CognitiveServices account resources. Use `2025-07"2025-10-01-preview"
private_endpoint_subnet_resource_idstring(Optional) The subnet ID for private endpoints.null
ai_projectsmap(object({ name Configuration map for AI Foundry projects to be created. Each project can have i{}
ai_model_deploymentsmap(object({ name Configuration for AI model deployments (including OpenAI). Each deployment inclu{}
diagnostic_settingsmap(object({ name A map of diagnostic settings to create on the AI Foundry account (Cognitive Serv{}
Outputs (22)
ai_foundry_project_internal_id — The internal ID of the AI Foundry project used for container naming.
ai_foundry_project_system_identity_principal_id — The principal ID of the AI Foundry project's system-assigned managed identity.
ai_model_deployment_ids — The resource IDs of all AI model deployments.
key_vault_id — The resource ID of the Key Vault.
key_vault_name — The name of the Key Vault.
resource_group_name — The name of the resource group.
storage_account_id — The resource ID of the storage account.
storage_account_name — The name of the storage account.
ai_agent_account_capability_host_id — The resource ID of the account-level AI agent capability host.
ai_search_id — The resource ID of the AI Search service.
cosmos_db_name — The name of the Cosmos DB account.
project_id_guid — The project ID formatted as GUID for container naming (only available when AI agent service is enabl
ai_agent_service_id — The resource ID of the AI agent capability host.
ai_foundry_encryption_status — The encryption configuration status of the AI Foundry account.
ai_foundry_name — The name of the AI Foundry account.
ai_foundry_project_id — The resource ID of the AI Foundry Project.
ai_foundry_id — The resource ID of the AI Foundry account.
ai_foundry_project_name — The name of the AI Foundry Project.
ai_search_name — The name of the AI Search service.
cosmos_db_id — The resource ID of the Cosmos DB account.
resource_group_id — The resource ID of the resource group.
resource_id — The resource IDs of the AI Foundry resource.
Resources (9)
azapi_resourceazapi_update_resourceazurerm_monitor_diagnostic_settingazurerm_private_endpointazurerm_role_assignmentmodtm_telemetryrandom_stringrandom_uuidtime_sleep
Details
FrameworkTerraform Module
LanguageHCL
Version0.10.1
Cloud AZURERM
★ Stars10
Forks16
Total downloads99.9k
Inputs18
Outputs22
Resources9
Examples8
Submodules1
LicenseMIT
NamespaceAzure
Updated