Skip to content

Commit

Permalink
change layout and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dayesouza committed Dec 10, 2024
1 parent 8165774 commit e4dcbca
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
25 changes: 13 additions & 12 deletions deploy/azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand All @@ -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**:
Expand Down
26 changes: 13 additions & 13 deletions deploy/azure/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand All @@ -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'))]"
}
]
},
Expand All @@ -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]"
}
}
}

0 comments on commit e4dcbca

Please sign in to comment.