Skip to content

Commit 20106fc

Browse files
committed
fix: burger mcp deployment and add genaiscript model
1 parent 1589758 commit 20106fc

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

infra/main.bicep

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ module agentApiFunction 'br/public:avm/res/web/site:0.16.1' = {
233233
deployment: {
234234
storage: {
235235
type: 'blobContainer'
236-
value: '${storage.outputs.primaryBlobEndpoint}${burgerMcpResourceName}'
236+
value: '${storage.outputs.primaryBlobEndpoint}${agentApiResourceName}'
237237
authentication: {
238238
type: 'SystemAssignedIdentity'
239239
}
@@ -413,10 +413,10 @@ module storage 'br/public:avm/res/storage/storage-account:0.25.1' = {
413413
name: burgerApiResourceName
414414
}
415415
{
416-
name: burgerMcpResourceName
416+
name: agentApiResourceName
417417
}
418418
{
419-
name: agentApiResourceName
419+
name: burgerMcpResourceName
420420
}
421421
{
422422
name: blobContainerName
@@ -586,7 +586,7 @@ module storageRoleBurgerApi 'br/public:avm/ptn/authorization/resource-role-assig
586586
}
587587
}
588588

589-
module storageRoleRegistrationApi 'br/public:avm/ptn/authorization/resource-role-assignment:0.1.2' = {
589+
module storageRoleAgentApi 'br/public:avm/ptn/authorization/resource-role-assignment:0.1.2' = {
590590
scope: resourceGroup
591591
name: 'storage-role-agent-api'
592592
params: {
@@ -597,6 +597,17 @@ module storageRoleRegistrationApi 'br/public:avm/ptn/authorization/resource-role
597597
}
598598
}
599599

600+
module storageRoleBurgerMcp 'br/public:avm/ptn/authorization/resource-role-assignment:0.1.2' = {
601+
scope: resourceGroup
602+
name: 'storage-role-burger-mcp'
603+
params: {
604+
principalId: burgerMcpFunction.outputs.?systemAssignedMIPrincipalId!
605+
roleName: 'Storage Blob Data Contributor'
606+
roleDefinitionId: 'b7e6dc6d-f1e8-4753-8033-0f276bb0955b'
607+
resourceId: storage.outputs.resourceId
608+
}
609+
}
610+
600611
// ---------------------------------------------------------------------------
601612
// Outputs
602613

@@ -619,3 +630,5 @@ output AZURE_OPENAI_API_ENDPOINT string = openAiUrl
619630
output AZURE_OPENAI_API_INSTANCE_NAME string = openAi.outputs.name
620631
output AZURE_OPENAI_API_DEPLOYMENT_NAME string = chatModelName
621632
output AZURE_OPENAI_API_VERSION string = openAiApiVersion
633+
634+
output GENAISCRIPT_DEFAULT_MODEL string = 'azure:${chatModelName}'

0 commit comments

Comments
 (0)