Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
dev: Step to download logs from the past day
Clémence Lesné1d70af2021eb
diff --git a/Makefile b/Makefileindex af931ed..a4f36f1 100644--- a/Makefile+++ b/Makefile@@ -20,6 +20,7 @@ bot_phone_number ?= $(shell cat config.yaml | yq '.communication_service.phone_napp_url ?= $(shell az deployment sub show --name $(name) | yq '.properties.outputs["appUrl"].value')blob_storage_public_name ?= $(shell az deployment sub show --name $(name) | yq '.properties.outputs["blobStoragePublicName"].value')communication_id ?= $(shell az deployment sub show --name $(name) | yq '.properties.outputs["communicationId"].value')+log_analytics_workspace_customer_id ?= $(shell az deployment sub show --name $(name) | yq '.properties.outputs["logAnalyticsWorkspaceName"].value')version:@bash ./cicd/version/version.sh -g . -c@@ -148,6 +149,13 @@ logs:--resource-group $(name) \--tail 100+logs-history:+ az monitor log-analytics query \+ --analytics-query "ContainerAppConsoleLogs_CL | project TimeGenerated, Log_s | sort by TimeGenerated desc" \+ --output jsonc \+ --timespan P1D \+ --workspace $(log_analytics_workspace_customer_id)+eventgrid-register:@echo "⚙️ Deleting previous event grid subscription..."az eventgrid event-subscription delete --name $(name) || truediff --git a/bicep/app.bicep b/bicep/app.bicepindex fdd0951..aa7c314 100644--- a/bicep/app.bicep+++ b/bicep/app.bicep@@ -93,6 +93,7 @@ var config = {output appUrl string = appUrloutput blobStoragePublicName string = storageAccount.nameoutput communicationId string = communication.id+output logAnalyticsWorkspaceCustomerId string = logAnalyticsWorkspace.properties.customerIdresource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {name: prefixdiff --git a/bicep/main.bicep b/bicep/main.bicepindex b5d9dc3..91512d1 100644--- a/bicep/main.bicep+++ b/bicep/main.bicep@@ -21,6 +21,7 @@ targetScope = 'subscription'output appUrl string = app.outputs.appUrloutput blobStoragePublicName string = app.outputs.blobStoragePublicNameoutput communicationId string = app.outputs.communicationId+output logAnalyticsWorkspaceCustomerId string = app.outputs.logAnalyticsWorkspaceCustomerIdvar tags = {application: 'claim-ai'