Skip to content

Commit

Permalink
Merge pull request #14 from UiT-ITA/azureIAC
Browse files Browse the repository at this point in the history
Include code for deployment of demo infrastructure
  • Loading branch information
tveito authored Dec 19, 2024
2 parents b972dad + 71467dc commit d4c99ed
Show file tree
Hide file tree
Showing 3 changed files with 13,007 additions and 0 deletions.
26 changes: 26 additions & 0 deletions demo/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Demo deployment of Azure infrastrucure for ChatUiT

This template make it easy for you to deploy an environment to run ChatUiT in your own Azure tennant. It creates an Azure Cosmos DB account and Azure Web App, then automatically deploys the ChatUiT web app hosted on GitHub and injects the Cosmos DB endpoint and auth key into the Web App's Application Settings allowing it to connect automatically upon first run.

This sample is useful for a demo deployment of ChatUiT and have the web app automatically connect to Cosmos DB in a single operation without having to manually add connection information to Application Settings in the portal.

## Prerequisites

1. An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio)
2. Open AI endpoint with enabled models. [Create and deploy an Azure OpenAI Service resource](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=web-portal)
3. Entra ID app registration to use for login. [Register an application with the Microsoft identity platform](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app?tabs=certificate)

## Deployment

Below are the parameters which can be user configured in the parameters file including:

| Parameter | Description |
|-------------------|--------------------------------------------|
| `azureAdClientId` | The Client ID of the App registration |
| `endpoints` | The URL for the OpenAI endpoint |
| `models` | List of the models available |
| `deployment1` | Key for the deployment to use |

[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FUiT-ITA%2FChatUiT2%2Fmaster%2Fdemo%2Fazuredeploy.json)

[![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FUiT-ITA%2FChatUiT2%2Fmaster%2Fdemo%2Fazuredeploy.json)
Loading

0 comments on commit d4c99ed

Please sign in to comment.