Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fix(ci): fix 2 TemplateAnalyzer ERROR findings in Azure Bicep (AZR-000361/363)
KaifAhmad1a8043418a1ce
diff --git a/deploy/azure/README.md b/deploy/azure/README.mdindex d9c3c6da..d0fbf4c7 100644--- a/deploy/azure/README.md+++ b/deploy/azure/README.md@@ -7,7 +7,18 @@ cd deploy/azureazd auth loginazd init --environment semantica-keazd env set AZURE_LOCATION eastus++# The template defaults to an internal (private) Container Apps environment.+# Provide the resource ID of an existing subnet (delegated to Microsoft.App/environments):+azd env set AZURE_INFRASTRUCTURE_SUBNET_ID /subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Network/virtualNetworks/<vnet>/subnets/<subnet>++# For a quick public dev/test deployment without a VNet, override the default:+# azd env set AZURE_INFRASTRUCTURE_SUBNET_ID "" and set vnetInternal=false in main.parameters.json+azd up```-The Bicep template provisions a Container Apps managed environment, HTTP ingress, scale-to-zero, max 10 replicas, and a `/api/health` liveness probe.+The Bicep template provisions:++- A Container Apps managed environment with an internal load balancer (private VNet, no public IP) and a system-assigned managed identity on the Container App (AZR-000363 / AZR-000361 compliant).+- HTTP ingress, scale-to-zero, max 10 replicas, and a `/api/health` liveness probe.diff --git a/deploy/azure/main.bicep b/deploy/azure/main.bicepindex 2e550cd8..2d52f2e0 100644--- a/deploy/azure/main.bicep+++ b/deploy/azure/main.bicep@@ -8,6 +8,12 @@ param allowedOrigins string = '*'param falkordbHost string = 'falkordb'param falkordbPort string = '6379'+@description('Deploy the managed environment with an internal load balancer (no public IP). Recommended for production. Set false only for quick dev/test deployments.')+param vnetInternal bool = true++@description('Resource ID of an existing subnet for the Container Apps environment. Required when vnetInternal is true. E.g. /subscriptions/.../subnets/aca-subnet')+param infrastructureSubnetId string = ''+var appName = '${environmentName}-explorer'var logAnalyticsName = '${environmentName}-logs'var managedEnvironmentName = '${environmentName}-env'@@ -27,6 +33,10 @@ resource managedEnvironment 'Microsoft.App/managedEnvironments@2024-03-01' = {name: managedEnvironmentNamelocation: locationproperties: {+ vnetConfiguration: vnetInternal ? {+ internal: true+ infrastructureSubnetId: infrastructureSubnetId+ } : nullappLogsConfiguration: {destination: 'log-analytics'logAnalyticsConfiguration: {@@ -40,6 +50,9 @@ resource managedEnvironment 'Microsoft.App/managedEnvironments@2024-03-01' = {resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {name: appNamelocation: location+ identity: {+ type: 'SystemAssigned'+ }tags: {'azd-service-name': 'explorer'}diff --git a/deploy/azure/main.parameters.json b/deploy/azure/main.parameters.jsonindex 4526ae60..09f51b6a 100644--- a/deploy/azure/main.parameters.json+++ b/deploy/azure/main.parameters.json@@ -19,6 +19,12 @@},"falkordbPort": {"value": "6379"+ },+ "vnetInternal": {+ "value": true+ },+ "infrastructureSubnetId": {+ "value": "${AZURE_INFRASTRUCTURE_SUBNET_ID}"}}}