Please follow the steps below to configure the Prompt flow endpoint in App service configuration.
-
Launch the AI Foundry and select
projectunder Jump into a project in Azure AI Foundry, If not found click on View all projects from the top menu. -
Click on the project with name
ai_project_{your deployment prefix}.
-
Click on
PromptFlowbutton from left menu underBuild and customize. -
Click on
Createbutton. Then click onUploadbutton fromUpload From Localoption from the last row. -
Click on
Zip Fileradio button. Then click onBrowseto select the fileDraftFlow.zipfrom 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
DraftFlowand Select Flow type asChat Flowand click onUploadbutton. -
Click on
Start compute sessionand click onStart compute sessionfrom the drop-down list. It can take few minutes for the runtime to start. -
Click on
Deploybutton 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 onCreatein the next screen. -
It will take few minutes for the flow to be validated and deployed. Click on
Models + endpointsfrom left menu. You might only see the Default_AzureOpenAI deployments in the page until the deployment is completed. Please wait and click onRefreshafter few minutes. -
Click on the deployed endpoint with name
ai-project-bycra-jzxzb-1.
-
Click on
Consumefrom the top menu. Copy below details to use later in step 3.6.
-
Launch the Azure Portal Azure Portal.
-
Enter
Resource Groupsin 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 Variablesfrom 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
Applybutton at the bottom of the screen. Then click onConfirmin the pop-up. -
Click on
Overviewfrom the left menu. Then click onRestartbutton in the top menu. Then click onYesin the pop-up message.
- Click on
Authenticationfrom left menu.
- Click on
+ Add Providerto see a list of identity providers.
- Click on
+ Add Providerto see a list of identity providers.
- Select the first option
Microsoft Entra Idfrom the drop-down list. IfCreate new app registrationis disabled, go to Step 4a
- Accept the default values and click on
Addbutton to go back to the previous page with the identify provider added.
- Click on
Homeand 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 theURLand 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 directoryfrom the Add an Identity Provider page and provide the newly registered App Name.

























