genaiops-azureaisdk-template

Azure Infrastructure Setup

Prerequisites

Infrastructure Overview

The infrastructure setup creates a public environment in Azure with the following components:

Terraform Files Structure

variables.tf

Defines all input variables used across the Terraform configuration. Add more variables to make the infra configuration more flexible:

terraform.tf

Contains the Terraform configuration and provider settings:

ai_foundry.tf

Manages Azure AI Foundry Hub resources:

function_app.tf

Defines the Function App and its dependencies:

locals.tf

Contains local variables used for:

outputs.tf

Defines the outputs exposed after infrastructure deployment:

dev.tfvars

Environment-specific variable values for development environment:

Deployment Steps

1. Authentication

# Login to Azure
az login

# Verify your subscription
az account show

2. Initialize Terraform

# Navigate to the infrastructure directory
cd infra

# Initialize Terraform
terraform init

This step downloads required providers and initializes the backend.

3. Plan the Deployment

# Create execution plan
terraform plan

Review the plan output carefully for:

4. Apply the Changes

# Apply the plan
terraform apply

5. Verify Deployment

After deployment completes:

  1. Check the Azure portal for the new resource group
  2. Verify all resources are created successfully
  3. Ensure there are no deployment errors in the activity log
  4. Test resource connectivity and permissions

Customization

To customize the infrastructure for your needs:

Note: Public Environment
This setup creates a public environment. For private environment setup (including private endpoints and network isolation), additional configuration will be needed. Links to private environment setup documentation will be added in future updates.

Next Steps