From 9b46855af9c3d334a8b0828f55388e02ae32e46a Mon Sep 17 00:00:00 2001 From: heblasco Date: Fri, 1 Dec 2023 11:16:15 +0100 Subject: [PATCH] code snippets added --- docs/content/en/docs/Deployment/_index.md | 33 ++++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/docs/content/en/docs/Deployment/_index.md b/docs/content/en/docs/Deployment/_index.md index fd8e1d2..0b0047b 100644 --- a/docs/content/en/docs/Deployment/_index.md +++ b/docs/content/en/docs/Deployment/_index.md @@ -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. \ No newline at end of file