Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM mcr.microsoft.com/devcontainers/python:3.11-bullseye

# Route package managers through Microsoft proxy feeds so builds work on the
# Microsoft-managed network where the public npm/PyPI URLs are blocked.
ENV NPM_CONFIG_REGISTRY=https://pkgs.dev.azure.com/ms-feed-12/1es-public/_packaging/npm-public/npm/registry/
ENV PIP_INDEX_URL=https://packagefeedproxy.microsoft.io/pypi/simple/

# Remove Yarn repository to avoid GPG key expiration issue
# Yarn v1 is deprecated, and most projects use npm/pnpm/yarn v2+ via corepack now
RUN rm -f /etc/apt/sources.list.d/yarn.list
4 changes: 4 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
]
}
},
"containerEnv": {
"NPM_CONFIG_REGISTRY": "https://pkgs.dev.azure.com/ms-feed-12/1es-public/_packaging/npm-public/npm/registry/",
"PIP_INDEX_URL": "https://packagefeedproxy.microsoft.io/pypi/simple/"
},
"forwardPorts": [3000, 3100],
"remoteUser": "vscode",
"hostRequirements": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-post-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
pip3 --version

# Upgrade pip
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/

- name: Enable Public Network Access (avm-waf only)
if: inputs.DEPLOYMENT_FLAVOR == 'avm-waf'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
pip install -r chat-app/backend/requirements.txt --no-cache-dir
pip install -r scenario-app/backend/requirements.txt --no-cache-dir

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-automation-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
pip install -r tests/e2e-test/requirements.txt

- name: Ensure browsers are installed
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:

- name: Install Backend Dependencies
run: |
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
python -m pip install -r chat-app/backend/requirements.txt
python -m pip install -r scenario-app/backend/requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion chat-app/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

COPY chat-app/backend/requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
RUN pip install --no-cache-dir -r requirements.txt

COPY chat-app/backend/ .
Expand Down
2 changes: 1 addition & 1 deletion chat-app/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ chat-app/backend/

```bash
# Install test dependencies
pip install pytest pytest-asyncio
pip install -r requirements-dev.txt

# Run tests
pytest
Expand Down
4 changes: 4 additions & 0 deletions chat-app/backend/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/

pytest
pytest-asyncio
2 changes: 2 additions & 0 deletions chat-app/backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/

cachetools==7.0.5
python-dotenv==1.2.2
python-multipart==0.0.32
Expand Down
1 change: 1 addition & 0 deletions chat-app/frontend/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://pkgs.dev.azure.com/ms-feed-12/1es-public/_packaging/npm-public/npm/registry/
4 changes: 2 additions & 2 deletions chat-app/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM mcr.microsoft.com/azurelinux/base/nodejs:20 AS builder
# Set working directory
WORKDIR /app

# Copy package files
COPY package*.json ./
# Copy package files and npm registry config (Microsoft proxy feed)
COPY package*.json .npmrc ./

# Install dependencies with legacy peer deps for React 19 compatibility
RUN npm ci --legacy-peer-deps
Expand Down
3,064 changes: 1,653 additions & 1,411 deletions chat-app/frontend/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion documents/LocalDevelopmentSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ You should see `(.venv)` in your prompt.

```bash
# Chat backend
pip install --upgrade pip
pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
pip install -r chat-app/backend/requirements.txt

# Scenario backend (only if you plan to run it)
Expand Down
3 changes: 1 addition & 2 deletions infra/avm/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ module windowsVmDataCollectionRules './modules/monitoring/data-collection-rule.b
}
}

var virtualMachineAvailabilityZone = 1

var virtualMachineAvailabilityZone = -1
Comment thread
PadhiAjit-Microsoft marked this conversation as resolved.
module proximityPlacementGroup './modules/compute/proximity-placement-group.bicep' = if (enablePrivateNetworking) {
name: take('module.proximity-placement-group.${solutionName}', 64)
params: {
Expand Down
6 changes: 3 additions & 3 deletions infra/avm/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.46.1.21595",
"templateHash": "11564598993201729613"
"templateHash": "16817155437094360629"
}
},
"parameters": {
Expand Down Expand Up @@ -369,7 +369,7 @@
],
"effectiveAppServicePlanSku": "[if(or(parameters('enableScalability'), parameters('enableRedundancy')), 'P1v3', parameters('appServicePlanSku'))]",
"resourceTags": "[union(variables('existingTags'), parameters('tags'), createObject('TemplateName', 'Customer Chat bot', 'CreatedBy', variables('createdBy'), 'DeploymentName', deployment().name, 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF')))]",
"virtualMachineAvailabilityZone": 1,
"virtualMachineAvailabilityZone": -1,
"helloWorldDefaultImageName": "DOCKER|mcr.microsoft.com/azuredocs/containerapps-helloworld:latest",
"chatApiAppName": "[format('api-chat-{0}', variables('solutionSuffix'))]",
"chatWebAppName": "[format('app-chat-{0}', variables('solutionSuffix'))]",
Expand Down Expand Up @@ -28342,8 +28342,8 @@
},
"dependsOn": [
"ai_foundry_project",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').openAI)]",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').aiServices)]",
"virtualNetwork"
]
Expand Down
8 changes: 4 additions & 4 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.46.1.21595",
"templateHash": "6462978155776172807"
"templateHash": "15706420920984431109"
}
},
"parameters": {
Expand Down Expand Up @@ -5048,7 +5048,7 @@
"_generator": {
"name": "bicep",
"version": "0.46.1.21595",
"templateHash": "18185621956314540221"
"templateHash": "15076250984768619028"
}
},
"parameters": {
Expand Down Expand Up @@ -5411,7 +5411,7 @@
],
"effectiveAppServicePlanSku": "[if(or(parameters('enableScalability'), parameters('enableRedundancy')), 'P1v3', parameters('appServicePlanSku'))]",
"resourceTags": "[union(variables('existingTags'), parameters('tags'), createObject('TemplateName', 'Customer Chat bot', 'CreatedBy', variables('createdBy'), 'DeploymentName', deployment().name, 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF')))]",
"virtualMachineAvailabilityZone": 1,
"virtualMachineAvailabilityZone": -1,
"helloWorldDefaultImageName": "DOCKER|mcr.microsoft.com/azuredocs/containerapps-helloworld:latest",
"chatApiAppName": "[format('api-chat-{0}', variables('solutionSuffix'))]",
"chatWebAppName": "[format('app-chat-{0}', variables('solutionSuffix'))]",
Expand Down Expand Up @@ -33384,9 +33384,9 @@
},
"dependsOn": [
"ai_foundry_project",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').openAI)]",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').aiServices)]",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
"[format('privateDnsZoneDeployments[{0}]', variables('dnsZoneIndex').openAI)]",
"virtualNetwork"
]
},
Expand Down
2 changes: 2 additions & 0 deletions infra/scripts/post-provision/agent_scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/

agent-framework-azure-ai==1.0.0rc6
agent-framework-core==1.0.0rc6
azure-ai-projects>=2.3.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ $requirementFile = "infra/scripts/post-provision/agent_scripts/requirements.txt"

# Download and install Python requirements
Write-Host "Installing Python requirements..."
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
python -m pip install --quiet -r "$requirementFile"

# For WAF deployments, temporarily enable public network access on Azure AI Foundry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ fi
requirementFile="infra/scripts/post-provision/agent_scripts/requirements.txt"

# Download and install Python requirements
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
python -m pip install --quiet -r "$requirementFile"

# Enable public network access for required services
Expand Down
2 changes: 2 additions & 0 deletions infra/scripts/post-provision/data_scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/

openai==2.33.0
azure-identity==1.25.3
azure-search-documents==11.7.0b2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ $requirementFile = "infra/scripts/post-provision/data_scripts/requirements.txt"

# Download and install Python requirements
Write-Host "Installing Python requirements..."
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
python -m pip install --quiet -r "$requirementFile"

# For WAF deployments, temporarily enable public network access on Azure AI Foundry (needed for embeddings)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ fi
requirementFile="infra/scripts/post-provision/data_scripts/requirements.txt"

# Download and install Python requirements
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
python -m pip install --quiet -r "$requirementFile"

# Enable public network access for required services
Expand Down
1 change: 1 addition & 0 deletions infra/vscode_web/endpoint-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/
azure-ai-projects>=2.3.0
azure-identity==1.25.3
ansible-core~=2.20.3
1 change: 1 addition & 0 deletions infra/vscode_web/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/
azure-ai-projects>=2.3.0
azure-identity==1.25.3
ansible-core~=2.20.3
2 changes: 1 addition & 1 deletion scenario-app/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
Expand Down
2 changes: 2 additions & 0 deletions scenario-app/backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/

# Base packages for E-commerce API
cachetools==7.0.0
python-dotenv==1.2.1
Expand Down
1 change: 1 addition & 0 deletions scenario-app/frontend/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://pkgs.dev.azure.com/ms-feed-12/1es-public/_packaging/npm-public/npm/registry/
4 changes: 2 additions & 2 deletions scenario-app/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mcr.microsoft.com/azurelinux/base/nodejs:20 AS widget-builder
WORKDIR /src/chat-app/frontend
COPY chat-app/frontend/package*.json ./
COPY chat-app/frontend/package*.json chat-app/frontend/.npmrc ./
RUN npm ci --legacy-peer-deps
COPY chat-app/frontend/ ./
RUN npm run build
Expand All @@ -9,7 +9,7 @@ FROM mcr.microsoft.com/azurelinux/base/nodejs:20 AS app-builder
WORKDIR /src/scenario-app/frontend
ARG VITE_SCENARIO=ecommerce
ENV VITE_SCENARIO=$VITE_SCENARIO
COPY scenario-app/frontend/package*.json ./
COPY scenario-app/frontend/package*.json scenario-app/frontend/.npmrc ./
RUN npm ci --legacy-peer-deps
COPY scenario-app/frontend/ ./
RUN npm run build
Expand Down
Loading
Loading