Skip to content

Commit

Permalink
code snippets added
Browse files Browse the repository at this point in the history
  • Loading branch information
heblasco committed Dec 1, 2023
1 parent 820a6b7 commit 9b46855
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions docs/content/en/docs/Deployment/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,42 @@ description: AI Hub — Steps to deploy the complete solution.
weight: 1
---

# Create a new resource group
### Create a new resource group
```bash
az group create --name aihub-rg --location westeurope

# Create a new storage account
```
### Create a new storage account
```bash
az storage account create --name aihubstorage --resource-group aihub-rg --location westeurope --sku Standard_LRS
```

# Create a new app service plan
### Create a new app service plan
```bash
az appservice plan create --name aihub-appservice --resource-group aihub-rg --sku S1
```

# Create a new web app using dot net 8
### Create a new web app using dot net 8
```bash
az webapp create --name aihub-webapp --resource-group aihub-rg --plan aihub-appservice --runtime "DOTNET|8.0"
```

# Create an Azure multi service cognitive service account
### Create an Azure multi service cognitive service account
```bash
az cognitiveservices account create --name aihub-cognitiveservice --resource-group aihub-rg --kind CognitiveServices --sku S0 --location westeurope --yes
```

# Create an Azure OpenAI resuorce
### Create an Azure OpenAI resuorce
```bash
az openai create --name aihub-openai --resource-group aihub-rg --location westeurope
```

# Create a Content Safety Cognitive Service
### Create a Content Safety Cognitive Service
```bash
az cognitiveservices account create --name aihub-contentsafety --resource-group aihub-rg --kind ContentSafety --sku F0 --location westeurope
```

# Deploy chat using GEN-AI VBD material
### Deploy chat using GEN-AI VBD material
[Activate GenAI with Azure](https://azure.github.io/activate-genai/).

# Configure the web app
### Configure the web app
As a last step, we need to configure the web app to use the storage account and the cognitive service account we created earlier. To do this, we need to rename appsettings.json.template file to appsettings.json and replace the placeholders with the values we got from the previous steps.

0 comments on commit 9b46855

Please sign in to comment.