diff --git a/README.md b/README.md index c5091916..c2857c1e 100644 --- a/README.md +++ b/README.md @@ -77,12 +77,20 @@ The easiest way to get started is GitHub Codespaces, since it will setup all the [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/Azure-Samples/agent-openai-python-prompty) 2. Open a terminal window. -3. Sign in to your Azure account: +3. Sign in to your Azure account. You'll need to login to both the Azure Developer CLI and Azure CLI: + + i. First with Azure Developer CLI ```shell azd auth login ``` + ii. Then sign in with Azure CLI + + ```shell + az login --use-device-code + ``` + 4. Provision the resources and deploy the code: ```shell diff --git a/infra/hooks/postprovision.sh b/infra/hooks/postprovision.sh index d9ad7533..c489eccb 100755 --- a/infra/hooks/postprovision.sh +++ b/infra/hooks/postprovision.sh @@ -18,16 +18,7 @@ acr_build () { } TAG=$(date +%Y%m%d-%H%M%S) -echo "az login in for api..." -az login --use-device-code acr_build creativeagentapi:${TAG} ${API_SERVICE_ACA_NAME} ./src/api/ 80 -# AZ LOGIN CHECK -EXPIRED_TOKEN=$(az ad signed-in-user show --query 'id' -o tsv 2>/dev/null || true) -# Check if the user is not logged in and if not login again -if [[ -z "$EXPIRED_TOKEN" ]]; then - echo "az login in for web..." - az login --use-device-code -fi acr_build creativeagentweb:${TAG} ${WEB_SERVICE_ACA_NAME} ./src/web/ 80 # Retrieve service names, resource group name, and other values from environment variables diff --git a/src/api/requirements.txt b/src/api/requirements.txt index 392273fe..648f2eb5 100644 --- a/src/api/requirements.txt +++ b/src/api/requirements.txt @@ -1,7 +1,10 @@ fastapi fastapi[standard] +openai requests prompty +promptflow +promptflow-evals pandas azure-monitor-opentelemetry-exporter opentelemetry-instrumentation-fastapi