Skip to content

Commit 3b4c783

Browse files
authored
Merge pull request #58 from Azure-Samples/howie/fix-bicep
Fixed template validation for bicept
2 parents 791f3a0 + c147085 commit 3b4c783

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
]
1717
}
1818
},
19-
"postCreateCommand": "python3 -m pip install -r requirements-dev.txt && python3 -m pip install -e src",
19+
"postCreateCommand": "python3 -m pip install -e src",
2020
"remoteUser": "vscode",
2121
"hostRequirements": {
2222
"memory": "8gb"

.github/workflows/azure-dev.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Deploy to Azure
2+
13
# Run when commits are pushed to main
24
on:
35
workflow_dispatch:

infra/core/search/search-services.bicep

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ resource search 'Microsoft.Search/searchServices@2021-04-01-preview' = {
4747
// The free tier does not support managed identity
4848
identity: searchIdentityProvider
4949
properties: {
50-
authOptions: authOptions
5150
disableLocalAuth: disableLocalAuth
5251
disabledDataExfiltrationOptions: disabledDataExfiltrationOptions
5352
encryptionWithCmk: encryptionWithCmk

infra/main.bicep

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ module logAnalytics 'core/monitor/loganalytics.bicep' = if (!empty(aiExistingPro
222222
}
223223
}
224224

225-
var hostName = empty(aiExistingProjectConnectionString) ? split(ai.outputs.discoveryUrl, '/')[2] : ''
225+
var hostName = empty(aiExistingProjectConnectionString) && !empty(ai.outputs.discoveryUrl) && contains(ai.outputs.discoveryUrl, '/') ? split(ai.outputs.discoveryUrl, '/')[2] : ''
226226
var projectConnectionString = empty(hostName)
227227
? aiExistingProjectConnectionString
228228
: '${hostName};${subscription().subscriptionId};${rg.name};${projectName}'
@@ -240,7 +240,7 @@ module monitoringMetricsContribuitorRoleAzureAIDeveloperRG 'core/security/appins
240240
}
241241
}
242242

243-
resource existingProjectRG 'Microsoft.Resources/resourceGroups@2021-04-01' existing = if (!empty(aiExistingProjectConnectionString)) {
243+
resource existingProjectRG 'Microsoft.Resources/resourceGroups@2021-04-01' existing = if (!empty(aiExistingProjectConnectionString) && contains(aiExistingProjectConnectionString, ';')) {
244244
name: split(aiExistingProjectConnectionString, ';')[2]
245245
}
246246

src/pyproject.toml

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[project]
2-
name = "quartapp"
2+
name = "api"
33
version = "1.0.0"
44
description = "Create a simple chat app using Quart and Azure AI Agents"
55
dependencies = [
6-
"quart",
7-
"werkzeug",
8-
"gunicorn",
9-
"uvicorn[standard]",
10-
"openai",
11-
"azure-identity",
12-
"aiohttp",
13-
"python-dotenv",
14-
"pyyaml",
15-
"azure-ai-projects"
6+
"fastapi==0.111.0",
7+
"gunicorn==22.0.0",
8+
"uvicorn[standard]==0.29.0",
9+
"opentelemetry-sdk",
10+
"azure-identity==1.19.0",
11+
"aiohttp==3.11.1",
12+
"azure-ai-projects",
13+
"azure-core-tracing-opentelemetry",
14+
"azure-monitor-opentelemetry",
15+
"azure-search-documents"
1616
]
1717

1818
[build-system]

0 commit comments

Comments
 (0)