Skip to content

Commit 0819d1a

Browse files
authored
Merge pull request #87 from microsoft/feat/local-aspire
Allow for local Aspire Dashboard and existing resource group
2 parents f35c5e3 + 673ca0a commit 0819d1a

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

docs/02_setup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ You can run the project in your local VS Code Dev Container using the [Dev Conta
9999
```
100100
101101
1. When prompted provided the following names:
102-
1. Environment name (used as the name of the new resource group to deploy into)
102+
1. Environment name (used as the name of the new or existing resource group to deploy into)
103103
1. Azure Subscription to use
104104
1. Azure location to use
105105

docs/03_observability/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ The bicep infrastructure deploys an Application Insights resource where you can
3030

3131
## Observe Application Behavior
3232

33+
### Local Configuration
34+
35+
You can see telemetry data if you are running the app locally, in a local dev container, or in Azure via `azd up`. It will not work if you're running in Github Codespaces.
36+
37+
If running locally or in a dev container, there are configuration steps to wire up the Aspire Dashboard:
38+
1. Update the `.env` file with this value: `TELEMETRY_SCENARIO=console,aspire_dashboard`
39+
1. Run this command to host the Aspire Dashboard in a local container:
40+
41+
```bash
42+
docker run --rm -it -d -p 18888:18888 -p 4317:18889 -e DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true --name aspire-dashboard mcr.microsoft.com/dotnet/aspire-dashboard:9.0
43+
```
44+
45+
If running locally (not in a dev container), update the `.env` file with this value: `ASPIRE_DASHBOARD_ENDPOINT=http://localhost:4317`
46+
47+
No additional steps are needed if you are running the app that was deployed by `azd up`.
48+
3349
### Conduct a conversation with the customer service agents
3450

3551
Conduct a conversation with the customer service agents following this sequence:

voice_agent/app/backend/.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ TURN_DETECTION_PREFIX_PADDING_MS=300
1818
TURN_DETECTION_SILENCE_DURATION_MS=200
1919
AZURE_REDIS_ENDPOINT=#optional, if you want to use redis for caching which support distributed caching for high
2020
AZURE_REDIS_KEY=#optional, if you want to use redis for caching which support distributed caching for high
21+
ASPIRE_DASHBOARD_ENDPOINT=http://host.docker.internal:4317
22+
TELEMETRY_SCENARIO=console

voice_agent/app/infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ param containerAppsSubnetPrefix string = '10.0.2.0/23'
120120

121121
// Organize resources in a resource group
122122
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
123-
name: 'rg-${environmentName}'
123+
name: environmentName
124124
location: location
125125
tags: tags
126126
}

0 commit comments

Comments
 (0)