Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
5d561e9
feat: Enable AVM WAF implementation to align with updated AVM standar…
Pavan-Microsoft Sep 15, 2025
1d0b33d
feat: Replaced AVM modules with local modules to reduce the main.json…
Prajwal-Microsoft Sep 16, 2025
7c96b33
fix: Integrate UMI Across Infra, Secure PostgreSQL Connections, and U…
Pavan-Microsoft Sep 16, 2025
d36cf84
Merge branch 'waf-avm' of https://github.com/Azure-Samples/chat-with-…
Prajwal-Microsoft Sep 16, 2025
1c88d7e
fix: Created minified the version of workbk json to reduce size f mai…
Prajwal-Microsoft Sep 17, 2025
bc3ec26
fix: Updates to networking, identity, and default settings in Cogniti…
Pavan-Microsoft Sep 17, 2025
f2559c3
fix: Removed private end points for Web, Admin & Function app
Prajwal-Microsoft Sep 17, 2025
b5c58af
fix: Refine Azure Cognitive Services Infra: Role Assignments and Stor…
Pavan-Microsoft Sep 17, 2025
ed5e62c
fix: Watnings fixed and added comments
Prajwal-Microsoft Sep 17, 2025
ea7e2bb
Merge branch 'waf-avm' of https://github.com/Azure-Samples/chat-with-…
Prajwal-Microsoft Sep 17, 2025
a3cdbcb
fix: deployment script issue for postgres in private network
Prajwal-Microsoft Sep 18, 2025
ee8edc4
fix: local debugging with integrated vectorization (#1903)
Pavan-Microsoft Sep 18, 2025
17ae566
fix: Refactored code and fix for deployment script
Prajwal-Microsoft Sep 18, 2025
4abd024
Merge branch 'waf-avm' of https://github.com/Azure-Samples/chat-with-…
Prajwal-Microsoft Sep 18, 2025
3247cf3
feat: Module refactroring for Database & identity
Prajwal-Microsoft Sep 18, 2025
8936f83
Fix: Fixed Postgres issue and commented bastion hist to decrease depl…
Prajwal-Microsoft Sep 18, 2025
2e1be1a
fix: Integrated vectorization for WAF
Prajwal-Microsoft Sep 18, 2025
02c8e7e
fix: Refactor OpenAI Networking for Integrated Vectorization Compatib…
Pavan-Microsoft Sep 19, 2025
aba8dea
fix: Refactored modules, descriptions for param & outputs
Prajwal-Microsoft Sep 19, 2025
84243fb
fix: Integrated Vectorization issue
Prajwal-Microsoft Sep 20, 2025
cde1750
fix: main.jsnon for integrated verctorization issue
Prajwal-Microsoft Sep 20, 2025
6ba6cc6
fix: Removed unwanted flag
Prajwal-Microsoft Sep 20, 2025
ca2fab9
fix: Updated default database type
Prajwal-Microsoft Sep 20, 2025
060df23
refactor: Removed old code & optimization to reduce deployment time
Prajwal-Microsoft Sep 20, 2025
30cd186
fix: File upload issue due to event grid
Prajwal-Microsoft Sep 21, 2025
70a0801
fix: Updated the delay time for postgresql
Prajwal-Microsoft Sep 21, 2025
f0b57c4
fix: Added Method to download the blob file via API
Prajwal-Microsoft Sep 21, 2025
aa5bd5c
fix: removed \n
Prajwal-Microsoft Sep 22, 2025
cb2e607
fix: Improve Deployment Docs, Single-Tenant Teams Extension, and Inge…
Pavan-Microsoft Sep 22, 2025
b2c6799
fix: Added Stop sequence for Open AI
Prajwal-Microsoft Sep 23, 2025
df5b326
Merge branch 'waf-avm' of https://github.com/Azure-Samples/chat-with-…
Prajwal-Microsoft Sep 23, 2025
e5141e5
refactor: Code refactoring
Prajwal-Microsoft Sep 23, 2025
5889528
fix: Revert the azure.yaml file
Prajwal-Microsoft Sep 23, 2025
c7556d6
fix: CI pipeline & docker file issue fix
Prajwal-Microsoft Sep 24, 2025
587df69
Merge remote-tracking branch 'origin/dev' into waf-avm
Prajwal-Microsoft Sep 24, 2025
172b582
fix: Fixed YAML issue
Prajwal-Microsoft Sep 24, 2025
fa98715
fix: YAML issue fix
Prajwal-Microsoft Sep 24, 2025
bcc7fce
fix: Installed azd and set env variables
Prajwal-Microsoft Sep 24, 2025
c9f8dd8
fix: YAML issue
Prajwal-Microsoft Sep 24, 2025
15eaac1
fix: YAML issue
Prajwal-Microsoft Sep 24, 2025
e23404d
fix: YAML file issue
Prajwal-Microsoft Sep 24, 2025
c5ce2a0
fix: Updated make & YAML file
Prajwal-Microsoft Sep 24, 2025
cff2b66
fix: Updated YAML file
Prajwal-Microsoft Sep 24, 2025
dc8f938
fix: Fix make file for deploy pipeline
Prajwal-Microsoft Sep 24, 2025
6ab9d4f
fix: Seperator issue in MAKE file
Prajwal-Microsoft Sep 24, 2025
b8ed9ea
fix: Added comments to check the issue
Prajwal-Microsoft Sep 24, 2025
3a01a25
fix: Set correct env values
Prajwal-Microsoft Sep 24, 2025
4ea0a06
fix: Updated env variables for make file
Prajwal-Microsoft Sep 24, 2025
bc570b1
fix: Comment removed
Prajwal-Microsoft Sep 24, 2025
3968473
fix: Added proper spaces
Prajwal-Microsoft Sep 24, 2025
4cbeedb
fix: Added Test runs
Prajwal-Microsoft Sep 24, 2025
9571f65
fix: principal id type issue
Prajwal-Microsoft Sep 24, 2025
cc9659a
fix: Modified the base url to validate the Pipeline
Prajwal-Microsoft Sep 24, 2025
d411ebc
fix: Revert the branch name
Prajwal-Microsoft Sep 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/python:3.11
FROM mcr.microsoft.com/devcontainers/python:3.11-bookworm

# install git
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand Down
50 changes: 49 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install AZD
run: |
set -e
echo "Fetching deployment output..."
# Install azd (Azure Developer CLI) - required by process_sample_data.sh
curl -fsSL https://aka.ms/install-azd.sh | bash

- name: Run Quota Check
id: quota-check
run: |
Expand Down Expand Up @@ -79,6 +86,45 @@ jobs:
echo "Selected Region: $VALID_REGION"
echo "AZURE_LOCATION=$VALID_REGION" >> $GITHUB_ENV

- name: Generate Resource Group Name
id: generate_rg_name
run: |
echo "Generating a unique resource group name..."
ACCL_NAME="ca" # Account name as specified
SHORT_UUID=$(uuidgen | cut -d'-' -f1)
UNIQUE_RG_NAME="arg-${ACCL_NAME}-${SHORT_UUID}"
echo "RESOURCE_GROUP_NAME=${UNIQUE_RG_NAME}" >> $GITHUB_ENV
echo "Generated RESOURCE_GROUP_NAME: ${UNIQUE_RG_NAME}"

- name: Check and Create Resource Group
id: check_create_rg
run: |
echo "RESOURCE_GROUP: ${{ env.RESOURCE_GROUP_NAME }}"
set -e
echo "Checking if resource group exists..."
rg_exists=$(az group exists --name ${{ env.RESOURCE_GROUP_NAME }})
if [ "$rg_exists" = "false" ]; then
echo "Resource group does not exist. Creating..."
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location ${{ env.AZURE_LOCATION }} --tags SecurityControl=Ignore || { echo "Error creating resource group"; exit 1; }
else
echo "Resource group already exists."
fi
# Set output for other jobs
echo "RESOURCE_GROUP_NAME=${{ env.RESOURCE_GROUP_NAME }}" >> $GITHUB_OUTPUT


- name: Generate Unique Solution Prefix
id: generate_solution_prefix
run: |
set -e
COMMON_PART="pslc"
TIMESTAMP=$(date +%s)
UPDATED_TIMESTAMP=$(echo $TIMESTAMP | tail -c 3)
UNIQUE_SOLUTION_SUFFIX="${COMMON_PART}${UPDATED_TIMESTAMP}"
echo "SOLUTION_SUFFIX=${UNIQUE_SOLUTION_SUFFIX}" >> $GITHUB_ENV
echo "SOLUTION_SUFFIX=${UNIQUE_SOLUTION_SUFFIX}" >> $GITHUB_OUTPUT
echo "Generated SOLUTION_SUFFIX: ${UNIQUE_SOLUTION_SUFFIX}"

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -103,8 +149,9 @@ jobs:
- name: Pre-build image and deploy
uses: devcontainers/[email protected]
env:
AZURE_ENV_NAME: ${{ github.run_id }}
AZURE_ENV_NAME: ${{ env.SOLUTION_SUFFIX }}
AZURE_LOCATION: ${{ env.AZURE_LOCATION }}
AZURE_RESOURCE_GROUP: ${{ env.RESOURCE_GROUP_NAME }}
with:
push: never
imageName: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator
Expand Down Expand Up @@ -141,6 +188,7 @@ jobs:
AZURE_SUBSCRIPTION_ID
AZURE_ENV_NAME
AZURE_LOCATION
AZURE_RESOURCE_GROUP
AUTH_ENABLED=false
AZURE_USE_AUTHENTICATION=false
AZURE_ENABLE_AUTH=false
Expand Down
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,17 @@ azd-login: ## 🔑 Login to Azure with azd and a SPN
# Fixed Makefile section for deploy target
deploy: azd-login ## Deploy everything to Azure
@echo -e "\e[34m$@\e[0m" || true
@azd env new ${AZURE_ENV_NAME}
@echo "AZURE_ENV_NAME: '${AZURE_ENV_NAME}'"
@echo "AZURE_LOCATION: '${AZURE_LOCATION}'"
@echo "AZURE_RESOURCE_GROUP: '${AZURE_RESOURCE_GROUP}'"

# Validate required variables
@if [ -z "${AZURE_ENV_NAME}" ]; then echo "❌ AZURE_ENV_NAME not set"; exit 1; fi
@if [ -z "${AZURE_LOCATION}" ]; then echo "❌ AZURE_LOCATION not set"; exit 1; fi
@if [ -z "${AZURE_RESOURCE_GROUP}" ]; then echo "❌ AZURE_RESOURCE_GROUP not set"; exit 1; fi

@azd env new ${AZURE_ENV_NAME} --location ${AZURE_LOCATION}
@azd env set AZURE_RESOURCE_GROUP ${AZURE_RESOURCE_GROUP}

# Provision and deploy
@azd provision --no-prompt
Expand Down
10 changes: 0 additions & 10 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ module keyvault './modules/key-vault/vault/vault.bicep' = {
? [
{
principalId: principalId
principalType: 'User'
roleDefinitionIdOrName: 'Key Vault Secrets User'
}
]
Expand Down Expand Up @@ -874,12 +873,10 @@ module openai 'modules/core/ai/cognitiveservices.bicep' = {
{
roleDefinitionIdOrName: 'a97b65f3-24c7-4388-baec-2e87135dc908' //Cognitive Services User
principalId: principalId
principalType: 'User'
}
{
roleDefinitionIdOrName: '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd' // Cognitive Services Contributor
principalId: principalId
principalType: 'User'
}
]
: []
Expand Down Expand Up @@ -921,7 +918,6 @@ module computerVision 'modules/core/ai/cognitiveservices.bicep' = if (useAdvance
{
roleDefinitionIdOrName: 'a97b65f3-24c7-4388-baec-2e87135dc908' //Cognitive Services User
principalId: principalId
principalType: 'User'
}
]
: []
Expand Down Expand Up @@ -966,7 +962,6 @@ module speechService 'modules/core/ai/cognitiveservices.bicep' = {
{
roleDefinitionIdOrName: 'a97b65f3-24c7-4388-baec-2e87135dc908' //Cognitive Services User
principalId: principalId
principalType: 'User'
}
]
: []
Expand Down Expand Up @@ -1048,17 +1043,14 @@ module search 'br/public:avm/res/search/search-service:0.11.1' = if (databaseTyp
{
roleDefinitionIdOrName: '8ebe5a00-799e-43f5-93ac-243d3dce84a7' // Search Index Data Contributor
principalId: principalId
principalType: 'User'
}
{
roleDefinitionIdOrName: '7ca78c08-252a-4471-8644-bb5ff32d4ba0' // Search Service Contributor
principalId: principalId
principalType: 'User'
}
{
roleDefinitionIdOrName: '1407120a-92aa-4202-b7e9-c0e197c71c8f' // Search Index Data Reader
principalId: principalId
principalType: 'User'
}
]
: []
Expand Down Expand Up @@ -1441,7 +1433,6 @@ module formrecognizer 'modules/core/ai/cognitiveservices.bicep' = {
{
roleDefinitionIdOrName: 'a97b65f3-24c7-4388-baec-2e87135dc908' //Cognitive Services User
principalId: principalId
principalType: 'User'
}
]
: []
Expand Down Expand Up @@ -1482,7 +1473,6 @@ module contentsafety 'modules/core/ai/cognitiveservices.bicep' = {
{
roleDefinitionIdOrName: 'a97b65f3-24c7-4388-baec-2e87135dc908' //Cognitive Services User
principalId: principalId
principalType: 'User'
}
]
: []
Expand Down
Loading