Please follow the steps below to configure the Prompt flow endpoint in App service configuration.
-
Launch the AI Studio and select
Build
from the top menu. -
Click on the project with name
ai_project_{your deployment prefix}
.
-
Click on
PromptFlow
button from left menu underTools
. -
Click on
Create
button. Then click onUpload
button fromUpload From Local
option from the last row. -
Click on
Zip File
radio button. Then click onBrowse
to select the fileDraftFlow.zip
from the cloned/downloaded GitHub repository folder. The file will be located at<Your Download Folder Path>/ResearchAssistant/Deployment/scripts/ai_hub_scripts/flows/
. -
Once the DraftFlow.zip file is uploaded, change folder name to
DraftFlow
and Select Flow type asChat Flow
and click onUpload
button. -
Click on
Select runtime
and chick onStart
from the drop-down list. It can take few minutes for the runtime to start. -
Click on
Deploy
button once it is enabled. Enter a unique name for Endpoint Name field.IMPORTANT: This name has to be unique across all endpoints in your Azure subscription.
You can leave the Deployment name, Virtual machine type, and Instace count as populated and click on
Review + Create
. Optionally you can choose a different VM type/size and increase/decrease the Instance count as needed. Then review details and click onCreate
in the next screen. -
It will take few minutes for the flow to be validated and deployed. Click on
Deployments
from left menu. You might only see the Default_AzureOpenAI deployments in the page until the deployment is completed. Please wait and click onRefresh
after few minutes. -
Click on
Consume
from the top menu. Copy below details to use later in step 3.6.
-
Launch the Azure Portal Azure Portal.
-
Enter
Resource Groups
in the top search bar. -
Locate your Resource Group you selected/created during one-click deployment and click on it.
-
Locate the App Service in the Resource Group and click on it.
-
Click on
Environment Variables
from left menu underSettings
. -
Modify the below variables with values collected in step 2.9 above.
- AI_STUDIO_DRAFT_FLOW_ENDPOINT
- AI_STUDIO_DRAFT_FLOW_API_KEY
- AI_STUDIO_DRAFT_FLOW_DEPLOYMENT_NAME
-
Click on
Apply
button at the bottom of the screen. Then click onConfirm
in the pop-up. -
Click on
Overview
from the left menu. Then click onRestart
button in the top menu. Then click onYes
in the pop-up message.
- Click on
Authentication
from left menu.
- Click on
+ Add Provider
to see a list of identity providers.
- Click on
+ Add Provider
to see a list of identity providers.
- Select the first option
Microsoft Entra Id
from the drop-down list. IfCreate new app registration
is disabled, go to Step 4a
- Accept the default values and click on
Add
button to go back to the previous page with the identify provider added.
- Click on
Home
and selectMicrosoft Entra ID
.
- Click on
App registrations
.
- Click on
+ New registration
.
- Provide the
Name
, select supported account types asAccounts in this organizational directory only(Contoso only - Single tenant)
, select platform asWeb
, enter/select theURL
and register.
- After application is created sucessfully, then click on
Add a Redirect URL
.
- Click on
+ Add a platform
.
- Click on
Web
.
- Enter the
web app URL
(Provide the app service name in place of XXXX) and Save. Then go back to Step 4 and follow from Point 4 choosePick an existing app registration in this directory
from the Add an Identity Provider page and provide the newly registered App Name.