Skip to content

Commit 134906a

Browse files
authored
Copilot Chat deployment: Add sk probe endpoint to deployment output (#1340)
### Motivation and Context After [deploying Copilot Chat to Azure](https://learn.microsoft.com/en-us/semantic-kernel/deploy/deploy-to-azure), the default behavior of users is to access the [`endpoint` url](https://github.com/microsoft/semantic-kernel/blob/main/samples/apps/copilot-chat-app/webapi/DeploymentTemplates/sk-new.bicep#LL60C1-L60C1) from the Deployment Output. However, this URL results in 404 (since the user has to append `/probe`) to the URI. It would be great to have that `probe` URI as part of the Deployment output, in case users miss the [instruction ](https://learn.microsoft.com/en-us/semantic-kernel/deploy/deploy-to-azure#verifying-the-deployment) ![image](https://github.com/microsoft/semantic-kernel/assets/18152044/dcab3052-9c1c-4330-b032-dd709987fe41) ### Description Add `skProbe` as an output to Deployment outputs. cc - @glahaye
1 parent 326d317 commit 134906a

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

samples/apps/copilot-chat-app/webapi/DeploymentTemplates/sk-existing-azureopenai.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ module semanticKernel 'main.bicep' = {
6767

6868

6969
output endpoint string = semanticKernel.outputs.deployedUrl
70+
output skProbe string = 'https://${semanticKernel.outputs.deployedUrl}/healthz'

samples/apps/copilot-chat-app/webapi/DeploymentTemplates/sk-existing-azureopenai.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.17.1.54307",
8-
"templateHash": "11779741438695372787"
8+
"templateHash": "10259269086957442877"
99
}
1010
},
1111
"parameters": {
@@ -163,7 +163,7 @@
163163
"_generator": {
164164
"name": "bicep",
165165
"version": "0.17.1.54307",
166-
"templateHash": "11121756795286782434"
166+
"templateHash": "1371310943287245701"
167167
}
168168
},
169169
"parameters": {
@@ -971,6 +971,10 @@
971971
"endpoint": {
972972
"type": "string",
973973
"value": "[reference(resourceId('Microsoft.Resources/deployments', 'SemanticKernel'), '2022-09-01').outputs.deployedUrl.value]"
974+
},
975+
"skProbe": {
976+
"type": "string",
977+
"value": "[format('https://{0}/healthz', reference(resourceId('Microsoft.Resources/deployments', 'SemanticKernel'), '2022-09-01').outputs.deployedUrl.value)]"
974978
}
975979
}
976980
}

samples/apps/copilot-chat-app/webapi/DeploymentTemplates/sk-existing-openai.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ module semanticKernel 'main.bicep' = {
6464

6565

6666
output endpoint string = semanticKernel.outputs.deployedUrl
67+
output skProbe string = 'https://${semanticKernel.outputs.deployedUrl}/healthz'

samples/apps/copilot-chat-app/webapi/DeploymentTemplates/sk-existing-openai.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.17.1.54307",
8-
"templateHash": "697508036669684325"
8+
"templateHash": "2528649938086350051"
99
}
1010
},
1111
"parameters": {
@@ -158,7 +158,7 @@
158158
"_generator": {
159159
"name": "bicep",
160160
"version": "0.17.1.54307",
161-
"templateHash": "11121756795286782434"
161+
"templateHash": "1371310943287245701"
162162
}
163163
},
164164
"parameters": {
@@ -966,6 +966,10 @@
966966
"endpoint": {
967967
"type": "string",
968968
"value": "[reference(resourceId('Microsoft.Resources/deployments', 'SemanticKernel'), '2022-09-01').outputs.deployedUrl.value]"
969+
},
970+
"skProbe": {
971+
"type": "string",
972+
"value": "[format('https://{0}/healthz', reference(resourceId('Microsoft.Resources/deployments', 'SemanticKernel'), '2022-09-01').outputs.deployedUrl.value)]"
969973
}
970974
}
971975
}

samples/apps/copilot-chat-app/webapi/DeploymentTemplates/sk-new.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ module semanticKernel 'main.bicep' = {
5858

5959

6060
output endpoint string = semanticKernel.outputs.deployedUrl
61+
output skProbe string = 'https://${semanticKernel.outputs.deployedUrl}/healthz'

samples/apps/copilot-chat-app/webapi/DeploymentTemplates/sk-new.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.17.1.54307",
8-
"templateHash": "3338430546815090156"
8+
"templateHash": "16861206555260857378"
99
}
1010
},
1111
"parameters": {
@@ -145,7 +145,7 @@
145145
"_generator": {
146146
"name": "bicep",
147147
"version": "0.17.1.54307",
148-
"templateHash": "11121756795286782434"
148+
"templateHash": "1371310943287245701"
149149
}
150150
},
151151
"parameters": {
@@ -953,6 +953,10 @@
953953
"endpoint": {
954954
"type": "string",
955955
"value": "[reference(resourceId('Microsoft.Resources/deployments', 'SemanticKernel'), '2022-09-01').outputs.deployedUrl.value]"
956+
},
957+
"skProbe": {
958+
"type": "string",
959+
"value": "[format('https://{0}/healthz', reference(resourceId('Microsoft.Resources/deployments', 'SemanticKernel'), '2022-09-01').outputs.deployedUrl.value)]"
956960
}
957961
}
958962
}

0 commit comments

Comments
 (0)