mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 04:32:32 +00:00
updated container bicep
This commit is contained in:
+11
-2
@@ -4,7 +4,8 @@
|
||||
// az deployment group create \
|
||||
// --resource-group <rg-name> \
|
||||
// --template-file infra/mcp-server.bicep \
|
||||
// --parameters apiUrl=https://autopilotmonitor-api.azurewebsites.net
|
||||
// --parameters apiUrl=https://autopilotmonitor-api.azurewebsites.net \
|
||||
// entraClientSecret=<secret-value>
|
||||
|
||||
@description('Azure region for all resources')
|
||||
param location string = resourceGroup().location
|
||||
@@ -27,6 +28,10 @@ param apiUrl string = 'https://autopilotmonitor-api.azurewebsites.net'
|
||||
@description('Container image tag')
|
||||
param imageTag string = 'latest'
|
||||
|
||||
@secure()
|
||||
@description('Entra ID client secret for OAuth token exchange')
|
||||
param entraClientSecret string = ''
|
||||
|
||||
// --- Azure Container Registry ---
|
||||
|
||||
resource acr 'Microsoft.ContainerRegistry/registries@2023-07-01' = {
|
||||
@@ -95,6 +100,10 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
|
||||
name: 'acr-password'
|
||||
value: acr.listCredentials().passwords[0].value
|
||||
}
|
||||
{
|
||||
name: 'entra-client-secret'
|
||||
value: entraClientSecret
|
||||
}
|
||||
]
|
||||
activeRevisionsMode: 'Single'
|
||||
}
|
||||
@@ -110,7 +119,7 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
|
||||
env: [
|
||||
{ name: 'AUTOPILOT_API_URL', value: apiUrl }
|
||||
{ name: 'PORT', value: '8080' }
|
||||
{ name: 'SEARCH_BACKEND', value: 'vector' }
|
||||
{ name: 'AUTOPILOT_ENTRA_CLIENT_SECRET', secretRef: 'entra-client-secret' }
|
||||
]
|
||||
probes: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user