Skip to content

Commit 805f64a

Browse files
committed
Make dev container support az command and make console to display Deployment service ai and frontend
1 parent faa0782 commit 805f64a

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
44
"forwardPorts": [50505],
55
"features": {
6+
"ghcr.io/devcontainers/features/azure-cli:1.2.6": {},
67
"ghcr.io/azure/azure-dev/azd:latest": {}
78
},
89
"customizations": {

azure.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ metadata:
77
88

99
services:
10-
api:
10+
"api and frontend":
1111
project: ./src
1212
language: py
1313
host: containerapp
1414
docker:
15+
image: api-and-frontend
1516
remoteBuild: true
1617

1718
hooks:

infra/api.bicep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ var env = [
6969
}
7070
]
7171

72+
var module_name = replace(serviceName, ' ', '-')
73+
7274
module app 'core/host/container-app-upsert.bicep' = {
73-
name: '${serviceName}-container-app-module'
75+
name: '${module_name}-container-app-module'
7476
params: {
7577
name: name
7678
location: location

infra/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ module api 'api.bicep' = {
280280
name: 'ca-api-${resourceToken}'
281281
location: location
282282
tags: tags
283+
serviceName: 'api and frontend'
283284
identityName: '${abbrs.managedIdentityUserAssignedIdentities}api-${resourceToken}'
284285
containerAppsEnvironmentName: containerApps.outputs.environmentName
285286
containerRegistryName: containerApps.outputs.registryName

0 commit comments

Comments
 (0)