Blog Logo
TAGS

Deploy and run a Azure OpenAI/ChatGPT app on AKS with Terraform

This sample shows how to deploy an Azure Kubernetes Service(AKS) cluster and Azure OpenAI Service using Terraform modules with the Azure Provider Terraform Provider and how to deploy a Python chatbot that authenticates against Azure OpenAI using Azure AD workload identity and calls the Chat Completion API of a ChatGPT model. You can find the code of the chatbot and Bicep modules to deploy the environment in this GitHub repository. For a Bicep version of the article and step-by-step instructions, visit the blog post.