Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: "sync-local-config" shortcut with ACA

Clémence Lesnéd9ed2850f517
diff --git a/Makefile b/Makefile
index dafbfa1..e95b5a1 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ prompt_content_filter ?= true
# Bicep outputs
app_url ?= $(shell az deployment sub show --name $(name_sanitized) | yq '.properties.outputs["appUrl"].value')
blob_storage_public_name ?= $(shell az deployment sub show --name $(name_sanitized) | yq '.properties.outputs["blobStoragePublicName"].value')
+container_app_name ?= $(shell az deployment sub show --name $(name_sanitized) | yq '.properties.outputs["containerAppName"].value')
version:
@bash ./cicd/version/version.sh -g . -c
@@ -200,4 +201,12 @@ watch-call:
sync-local-config:
@echo "📥 Copying remote CONFIG_JSON to local config..."
- az functionapp config appsettings list --name $(function_app_name) --resource-group $(name_sanitized) --query "[?name=='CONFIG_JSON'].value" --output tsv | yq --prettyPrint --output-format yaml > config.yaml
+ az containerapp revision list \
+ --name $(container_app_name) \
+ --output tsv \
+ --query "[0].properties.template.containers[0].env[?name=='CONFIG_JSON'].value" \
+ --resource-group $(name_sanitized) \
+ | yq \
+ --output-format yaml \
+ --prettyPrint \
+ > config.yaml
diff --git a/bicep/app.bicep b/bicep/app.bicep
index b284ad6..d274146 100644
--- a/bicep/app.bicep
+++ b/bicep/app.bicep
@@ -117,6 +117,7 @@ var config = {
output appUrl string = appUrl
output blobStoragePublicName string = storageAccount.name
+output containerAppName string = containerApp.name
output logAnalyticsCustomerId string = logAnalytics.properties.customerId
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
diff --git a/bicep/main.bicep b/bicep/main.bicep
index 2b686b8..b1aec3e 100644
--- a/bicep/main.bicep
+++ b/bicep/main.bicep
@@ -24,6 +24,7 @@ targetScope = 'subscription'
output appUrl string = app.outputs.appUrl
output blobStoragePublicName string = app.outputs.blobStoragePublicName
+output containerAppName string = app.outputs.containerAppName
output logAnalyticsCustomerId string = app.outputs.logAnalyticsCustomerId
var tags = {