From e4dcbca6c7fd64b9764a3676f471dca7b4f678da Mon Sep 17 00:00:00 2001 From: Dayenne Souza Date: Tue, 10 Dec 2024 18:58:00 -0300 Subject: [PATCH] change layout and readme --- deploy/azure/README.md | 25 +++++++++++++------------ deploy/azure/createUiDefinition.json | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/deploy/azure/README.md b/deploy/azure/README.md index 743f08f..fb38b86 100644 --- a/deploy/azure/README.md +++ b/deploy/azure/README.md @@ -4,9 +4,9 @@ This guide will help you deploy your application using Azure Marketplace, even i ### Prerequisites Before you start, make sure you have the following: -1. **Azure Subscription**: An active Azure subscription. -1. **OpenAI or Azure OpenAI instance**: This will provide the AI capabilities required by the application. If you don't have one, you can find [instructions here](../../OPENAI.md) -2. **Azure Account**: At minimum `Contributor` role assignment to deploy the resources in your Azure subscription. +1. **Azure Account**: At minimum `Contributor` role assignment to deploy the resources in your Azure subscription. +2. **Azure Subscription**: An active Azure subscription. +3. **OpenAI or Azure OpenAI instance**: This will provide the AI capabilities required by the application. If you don't have one, you can find [instructions here](../../OPENAI.md) ### Steps to Deploy the App @@ -19,9 +19,9 @@ It is recommended that you use Entra ID for authentication. - Click on `+ New registration`. - **Give it an identifiable name** - **Supported account types**: - - Accounts in this organizational directory only (Microsoft only - Single tenant) + - Accounts in this organizational directory only ([Your Organization] only - Single tenant) - **Redirect URI**: - - Select `Web` as platform and in the URL insert the following URL, being `[webAppName]` the name you'll give to the app on the next steps: + - Select `Web` as platform and in the URL insert the following URL, with `[webAppName]` being the name you'll give to the app on the next steps: - `https://[webAppName].azurewebsites.net/.auth/login/aad/callback` - Click on `Register` - Copy the value of `Application (client) ID` to be used when creating the app in the next steps. @@ -46,18 +46,19 @@ See details on pricing [here](https://azure.microsoft.com/en-us/pricing/details/ - **Subscription**: Choose your Azure subscription. - **Resource Group**: Select an existing group or create a new one. - **Region**: Choose the region where you want to deploy the app (the closer to y ou, the better). - - **Web App Name**: Enter a unique name for your web app. + - **Web app name**: Enter a unique name for your web app. - This will create the URl you'll access: `webappname`.azurewebsites.net - - **Service Principal Type**: - - To create a new authentication app, leave as `Create New` - - Click change Selection to change its name or leave it as the default. - - **AI Settings**: + - **Disable authentication**: + - Having authentication enabled is **strongly** recommended. But if for any case you want to test the app making sure that no private data will be used and you're ok with the website being open to the internet to access, check this option. + - **App registration client ID**: + - In here you'll insert the `Application (client) ID` value you created earlier. + - **AI settings**: - This will configure how the app will access an AI instance. - - **AI Type**: + - **AI type**: - OpenAI or Azure OpenAI - **Use Managed Identity**: - - Check this if type is Azure OpenAI and you don't have a key, but the user accessing the app have permission to it. + - Check this if type is Azure OpenAI and you don't have a key, but the user accessing the app has a role assigment in the Azure OpenAI resource. - **Endpoint**: - If Azure OpenAI, insert the endpoint for it. - **Key**: diff --git a/deploy/azure/createUiDefinition.json b/deploy/azure/createUiDefinition.json index 07a21c8..77b24e4 100644 --- a/deploy/azure/createUiDefinition.json +++ b/deploy/azure/createUiDefinition.json @@ -7,7 +7,7 @@ { "name": "webAppName", "type": "Microsoft.Common.TextBox", - "label": "Web App Name", + "label": "Web app name", "defaultValue": "", "toolTip": "The App name, to be acessed", "constraints": { @@ -20,12 +20,12 @@ { "name": "disableAuth", "type": "Microsoft.Common.CheckBox", - "label": "Disable Authentication" + "label": "Disable authentication" }, { "name": "authClientId", "type": "Microsoft.Common.TextBox", - "label": "App Registration client ID", + "label": "App registration client ID", "defaultValue": "", "toolTip": "The app registration client id. (check github repository readme on how to)", "constraints": { @@ -55,14 +55,14 @@ }, "steps": [ { - "name": "AI Settings", + "name": "AISettings", "type": "Microsoft.Common.Section", - "label": "AI Settings", + "label": "AI settings", "elements": [ { "name": "aiType", "type": "Microsoft.Common.OptionsGroup", - "label": "AI Type", + "label": "AI type", "defaultValue": "OpenAI", "toolTip": "", "constraints": { @@ -84,21 +84,21 @@ "name": "aiManagedIdentity", "type": "Microsoft.Common.CheckBox", "label": "Use Managed Identity", - "visible": "[equals(steps('AI Settings').aiType, 'azure')]" + "visible": "[equals(steps('AISettings').aiType, 'azure')]" }, { "name": "aiEndpoint", "type": "Microsoft.Common.TextBox", "label": "Endpoint", "defaultValue": "", - "visible": "[equals(steps('AI Settings').aiType, 'azure')]" + "visible": "[equals(steps('AISettings').aiType, 'azure')]" }, { "name": "openaiApiKey", "type": "Microsoft.Common.TextBox", "label": "Key", "defaultValue": "", - "visible": "[or(equals(steps('AI Settings').aiManagedIdentity, false), equals(steps('AI Settings').aiType, 'openai'))]" + "visible": "[or(equals(steps('AISettings').aiManagedIdentity, false), equals(steps('AISettings').aiType, 'openai'))]" } ] }, @@ -123,10 +123,10 @@ "tags": "[steps('tags').tagsObj]", "clientId": "[basics('authClientId')]", "disableAuth": "[basics('disableAuth')]", - "aiType": "[steps('AI Settings').aiType]", - "aiManagedIdentity": "[steps('AI Settings').aiManagedIdentity]", - "openaiApiKey": "[steps('AI Settings').openaiApiKey]", - "aiEndpoint": "[steps('AI Settings').aiEndpoint]" + "aiType": "[steps('AISettings').aiType]", + "aiManagedIdentity": "[steps('AISettings').aiManagedIdentity]", + "openaiApiKey": "[steps('AISettings').openaiApiKey]", + "aiEndpoint": "[steps('AISettings').aiEndpoint]" } } } \ No newline at end of file