Skip to content

Commit 42ce5d3

Browse files
committed
fix: add resourceName at service level for AKS cluster reference
Each service now references AKS_CLUSTER_NAME at the service level, which allows azd to determine the AKS cluster for deployment. Fixes error: 'could not determine AKS cluster'
1 parent 4c93592 commit 42ce5d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

azure.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,23 @@ services:
1010
language: python
1111
host: aks
1212
project: ./python-app
13+
resourceName: AKS_CLUSTER_NAME
1314
k8s:
1415
deploymentPath: ./manifests/python-app.yaml
1516

1617
js-app:
1718
language: js
1819
host: aks
1920
project: ./js-app
21+
resourceName: AKS_CLUSTER_NAME
2022
k8s:
2123
deploymentPath: ./manifests/js-app.yaml
2224

2325
java-app:
2426
language: java
2527
host: aks
2628
project: ./java-app
29+
resourceName: AKS_CLUSTER_NAME
2730
k8s:
2831
deploymentPath: ./manifests/java-app.yaml
2932

0 commit comments

Comments
 (0)