@@ -40,6 +40,7 @@ var deployingUserPrincipalId = deployerInfo.objectId
4040 azd : {
4141 type : 'location'
4242 usageName : [
43+ 'OpenAI.GlobalStandard.gpt4.1, 150'
4344 'OpenAI.GlobalStandard.o4-mini, 50'
4445 'OpenAI.GlobalStandard.gpt4.1-mini, 50'
4546 ]
@@ -55,6 +56,13 @@ param gptModelName string = 'gpt-4.1-mini'
5556@description ('Optional. Version of the GPT model to deploy. Defaults to 2025-04-14.' )
5657param gptModelVersion string = '2025-04-14'
5758
59+ @minLength (1 )
60+ @description ('Optional. Name of the GPT model to deploy:' )
61+ param gpt4_1ModelName string = 'gpt-4.1'
62+
63+ @description ('Optional. Version of the GPT model to deploy. Defaults to 2025-04-14.' )
64+ param gpt4_1ModelVersion string = '2025-04-14'
65+
5866@minLength (1 )
5967@description ('Optional. Name of the GPT Reasoning model to deploy:' )
6068param gptReasoningModelName string = 'o4-mini'
@@ -65,6 +73,14 @@ param gptReasoningModelVersion string = '2025-04-16'
6573@description ('Optional. Version of the Azure OpenAI service to deploy. Defaults to 2025-01-01-preview.' )
6674param azureopenaiVersion string = '2024-12-01-preview'
6775
76+ @minLength (1 )
77+ @allowed ([
78+ 'Standard'
79+ 'GlobalStandard'
80+ ])
81+ @description ('Optional. GPT model deployment type. Defaults to GlobalStandard.' )
82+ param gpt4_1ModelDeploymentType string = 'GlobalStandard'
83+
6884@minLength (1 )
6985@allowed ([
7086 'Standard'
@@ -81,10 +97,13 @@ param gptModelDeploymentType string = 'GlobalStandard'
8197@description ('Optional. GPT model deployment type. Defaults to GlobalStandard.' )
8298param gptReasoningModelDeploymentType string = 'GlobalStandard'
8399
84- @description ('Optional. AI model deployment token capacity. Defaults to 250 for optimal performance.' )
100+ @description ('Optional. AI model deployment token capacity. Defaults to 50 for optimal performance.' )
85101param gptModelCapacity int = 50
86102
87103@description ('Optional. AI model deployment token capacity. Defaults to 150 for optimal performance.' )
104+ param gpt4_1ModelCapacity int = 150
105+
106+ @description ('Optional. AI model deployment token capacity. Defaults to 50 for optimal performance.' )
88107param gptReasoningModelCapacity int = 50
89108
90109@description ('Optional. The tags to apply to all deployed Azure resources.' )
@@ -116,7 +135,7 @@ param virtualMachineAdminPassword string = newGuid()
116135param backendContainerRegistryHostname string = 'macaev3tst1acr.azurecr.io'
117136
118137@description ('Optional. The Container Image Name to deploy on the backend.' )
119- param backendContainerImageName string = 'macaebackend '
138+ param backendContainerImageName string = 'macae-backend '
120139
121140@description ('Optional. The Container Image Tag to deploy on the backend.' )
122141param backendContainerImageTag string = 'v3tst1'
@@ -125,7 +144,7 @@ param backendContainerImageTag string = 'v3tst1'
125144param frontendContainerRegistryHostname string = 'macaev3tst1acr.azurecr.io'
126145
127146@description ('Optional. The Container Image Name to deploy on the frontend.' )
128- param frontendContainerImageName string = 'macaefrontend '
147+ param frontendContainerImageName string = 'macae-frontend '
129148
130149@description ('Optional. The Container Image Tag to deploy on the frontend.' )
131150param frontendContainerImageTag string = 'v3tst1'
@@ -1050,6 +1069,16 @@ var aiFoundryAiServicesModelDeployment = {
10501069 }
10511070 raiPolicyName : 'Microsoft.Default'
10521071}
1072+ var aiFoundryAiServices4_1ModelDeployment = {
1073+ format : 'OpenAI'
1074+ name : gpt4_1ModelName
1075+ version : gpt4_1ModelVersion
1076+ sku : {
1077+ name : gpt4_1ModelDeploymentType
1078+ capacity : gpt4_1ModelCapacity
1079+ }
1080+ raiPolicyName : 'Microsoft.Default'
1081+ }
10531082var aiFoundryAiServicesReasoningModelDeployment = {
10541083 format : 'OpenAI'
10551084 name : gptReasoningModelName
@@ -1086,6 +1115,19 @@ module existingAiFoundryAiServicesDeployments 'modules/ai-services-deployments.b
10861115 capacity : aiFoundryAiServicesModelDeployment .sku .capacity
10871116 }
10881117 }
1118+ {
1119+ name : aiFoundryAiServices4_1ModelDeployment .name
1120+ model : {
1121+ format : aiFoundryAiServices4_1ModelDeployment .format
1122+ name : aiFoundryAiServices4_1ModelDeployment .name
1123+ version : aiFoundryAiServices4_1ModelDeployment .version
1124+ }
1125+ raiPolicyName : aiFoundryAiServices4_1ModelDeployment .raiPolicyName
1126+ sku : {
1127+ name : aiFoundryAiServices4_1ModelDeployment .sku .name
1128+ capacity : aiFoundryAiServices4_1ModelDeployment .sku .capacity
1129+ }
1130+ }
10891131 {
10901132 name : aiFoundryAiServicesReasoningModelDeployment .name
10911133 model : {
@@ -1148,6 +1190,19 @@ module aiFoundryAiServices 'br:mcr.microsoft.com/bicep/avm/res/cognitive-service
11481190 capacity : aiFoundryAiServicesModelDeployment .sku .capacity
11491191 }
11501192 }
1193+ {
1194+ name : aiFoundryAiServices4_1ModelDeployment .name
1195+ model : {
1196+ format : aiFoundryAiServices4_1ModelDeployment .format
1197+ name : aiFoundryAiServices4_1ModelDeployment .name
1198+ version : aiFoundryAiServices4_1ModelDeployment .version
1199+ }
1200+ raiPolicyName : aiFoundryAiServices4_1ModelDeployment .raiPolicyName
1201+ sku : {
1202+ name : aiFoundryAiServices4_1ModelDeployment .sku .name
1203+ capacity : aiFoundryAiServices4_1ModelDeployment .sku .capacity
1204+ }
1205+ }
11511206 {
11521207 name : aiFoundryAiServicesReasoningModelDeployment .name
11531208 model : {
@@ -1416,6 +1471,13 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = {
14161471 'https://${webSiteResourceName }.azurewebsites.net'
14171472 'http://${webSiteResourceName }.azurewebsites.net'
14181473 ]
1474+ allowedMethods :[
1475+ 'GET'
1476+ 'POST'
1477+ 'PUT'
1478+ 'DELETE'
1479+ 'OPTIONS'
1480+ ]
14191481 }
14201482 // WAF aligned configuration for Scalability
14211483 scaleSettings : {
@@ -1557,11 +1619,11 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = {
15571619 }
15581620 {
15591621 name : 'MCP_SERVER_NAME'
1560- value : 'MACAE MCP Server '
1622+ value : 'MacaeMcpServer '
15611623 }
15621624 {
15631625 name : 'MCP_SERVER_DESCRIPTION'
1564- value : 'MACAE MCP Server Description '
1626+ value : 'MCP server with greeting, HR, and planning tools '
15651627 }
15661628 {
15671629 name : 'AZURE_TENANT_ID'
@@ -1671,43 +1733,43 @@ module containerAppMcp 'br/public:avm/res/app/container-app:0.18.1' = {
16711733 }
16721734 env : [
16731735 {
1674- name : 'MCP_HOST '
1736+ name : 'HOST '
16751737 value : '0.0.0.0'
16761738 }
16771739 {
1678- name : 'MCP_PORT '
1740+ name : 'PORT '
16791741 value : '9000'
16801742 }
16811743 {
1682- name : 'MCP_DEBUG '
1744+ name : 'DEBUG '
16831745 value : 'false'
16841746 }
16851747 {
1686- name : 'MCP_SERVER_NAME '
1687- value : 'MACAE MCP Server '
1748+ name : 'SERVER_NAME '
1749+ value : 'MacaeMcpServer '
16881750 }
16891751 {
1690- name : 'MCP_ENABLE_AUTH '
1691- value : 'true '
1752+ name : 'ENABLE_AUTH '
1753+ value : 'false '
16921754 }
16931755 {
1694- name : 'AZURE_TENANT_ID '
1756+ name : 'TENANT_ID '
16951757 value : tenant ().tenantId
16961758 }
16971759 {
1698- name : 'AZURE_CLIENT_ID '
1760+ name : 'CLIENT_ID '
16991761 value : userAssignedIdentity !.outputs .clientId
17001762 }
17011763 {
1702- name : 'AZURE_JWKS_URI '
1764+ name : 'JWKS_URI '
17031765 value : 'https://login.microsoftonline.com/${tenant ().tenantId }/discovery/v2.0/keys'
17041766 }
17051767 {
1706- name : 'AZURE_ISSUER '
1768+ name : 'ISSUER '
17071769 value : 'https://sts.windows.net/${tenant ().tenantId }/'
17081770 }
17091771 {
1710- name : 'AZURE_AUDIENCE '
1772+ name : 'AUDIENCE '
17111773 value : 'api://${userAssignedIdentity !.outputs .clientId }'
17121774 }
17131775 {
@@ -2044,8 +2106,8 @@ output AZURE_TENANT_ID string = tenant().tenantId
20442106output AZURE_AI_SEARCH_CONNECTION_NAME string = aiSearchConnectionName
20452107output AZURE_COGNITIVE_SERVICES string = 'https://cognitiveservices.azure.com/.default'
20462108output REASONING_MODEL_NAME string = aiFoundryAiServicesReasoningModelDeployment .name
2047- output MCP_SERVER_NAME string = 'MACAE MCP Server '
2048- output MCP_SERVER_DESCRIPTION string = 'MACAE MCP Server Description '
2109+ output MCP_SERVER_NAME string = 'MacaeMcpServer '
2110+ output MCP_SERVER_DESCRIPTION string = 'MCP server with greeting, HR, and planning tools '
20492111output SUPPORTED_MODELS string = '["o3","o4-mini","gpt-4.1","gpt-4.1-mini"]'
20502112output AZURE_AI_SEARCH_API_KEY string = '<Deployed-Search-ApiKey>'
20512113output BACKEND_URL string = 'https://${containerApp .outputs .fqdn }'
0 commit comments