Skip to content

Commit

Permalink
Updating How To Connect Dependencies doc (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytimocin authored Oct 16, 2023
1 parent e4236a6 commit ccddcd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Connections from a container to a resource result in environment variables for c
Radius Connections are more than just environment variables and configuration. You can also access the "application graph" and understand the connections within your application with the following command:

```bash
rad app connections
rad app connections -a demo
```

You should see the following output, detailing the connections between the `demo` container and the `db` Redis cache, along with information about the underlying Kubernetes resources running the app:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ import radius as rad
@description('The app ID of your Radius application. Set automatically by the rad CLI.')
param application string

resource container 'Applications.Core/containers@2023-10-01-preview' = {
resource demo 'Applications.Core/containers@2023-10-01-preview' = {
name: 'demo'
properties: {
application: application
container: {
image: 'radius.azurecr.io/samples/demo:latest'
ports: {
web: {
containerPort: 3000
}
}
}
}
}

0 comments on commit ccddcd6

Please sign in to comment.