Please follow the steps below to set up the AI Studio Hub, Project, PromptFlow and Deploy as endpoint. Clone or download this repository before you start following the steps below.
-
Launch the AI Studio and select Build from the top menu.
-
Click on
New AI Project
. -
Enter a new AI Hub Resource Name. And then select Azure Subscription, Resource Group, Location from drop-down menus. You should choose the same resource group you created from ARM deployment in previous step.
IMPORTANT: Do not create new resources in this step and link to the ones created during one-click deployment. This applies to Resource group, Azure OpenAI and Azure AI Search fields.
-
Select Azure OpenAI resource from drop-down menu.
-
Select Azure AI Search resource from drop-down menu.
-
Click on
Next
button. -
Review the details and click on
Create an AI Project
button.
Learn more about AI Studio Projects
-
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>/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.