Skip to content

Commit

Permalink
azd integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vhvb1989 committed Nov 26, 2023
1 parent 99123b1 commit 7994a3f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ __pycache__/
# Azurite artifacts
__blobstorage__
__queuestorage__
__azurite_db*__.json
__azurite_db*__.json

.azure
17 changes: 17 additions & 0 deletions azure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json

name: azure-gpt-rag
metadata:
template: azure-gpt-rag-orchestrator
services:
orchestrator:
project: .
language: python
host: function
# infrastructure is pulled from the main azure-gpt-rag repo with a hook.
# If you previously provisioned infrastructure, use the same azd-env name, subscription and location to deploy data ingest to that infrastructure.
hooks:
preprovision:
posix:
run: scripts/preprovision.sh
interactive: true
3 changes: 3 additions & 0 deletions infra/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The infrastructure for this project is defined in: https://github.com/Azure/GPT-RAG

After deploying the infrastructure, you can use `azd env refresh` and `azd deploy` to deploy the data ingestion.
13 changes: 13 additions & 0 deletions scripts/preprovision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

BLUE='\033[0;34m'
NC='\033[0m' # No Color

echo ""
echo "------------- NOTE -------------"
echo "azd provision and azd up are ${YELLOW}not allowed${NC} for this project."
echo "Infrastructure is defined in https://github.com/Azure/GPT-RAG."
echo "After deploying infrastructure, run ${BLUE}azd env refresh${NC} with the same environment name, subscription and location."
echo "Then run ${BLUE}azd deploy${NC}"

exit 1

0 comments on commit 7994a3f

Please sign in to comment.