Skip to content

Commit ecfb358

Browse files
committed
feat(infra): deploy gpt-5-mini and gpt-image-1 models
Adds two new model deployments to the AI Foundry account: gpt-5-mini (reasoning + image-capable chat) and gpt-image-1 (image generation, required for ImageAgent in Use Case 6 / Ad Copy / Content Gen). New parameters: gpt5MiniModelName/Version/DeploymentType/Capacity and gptImageModelName/Version/DeploymentType/Capacity. Wired into both the existing-Foundry and new-Foundry deployment paths.
1 parent 49a2c2f commit ecfb358

1 file changed

Lines changed: 108 additions & 0 deletions

File tree

infra/main.bicep

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ param gptReasoningModelName string = 'o4-mini'
7070
@description('Optional. Version of the GPT Reasoning model to deploy. Defaults to 2025-04-16.')
7171
param gptReasoningModelVersion string = '2025-04-16'
7272

73+
@minLength(1)
74+
@description('Optional. Name of the GPT-5-mini model to deploy. Used for image-capable / reasoning agents.')
75+
param gpt5MiniModelName string = 'gpt-5-mini'
76+
77+
@description('Optional. Version of the GPT-5-mini model to deploy. Defaults to 2025-08-07.')
78+
param gpt5MiniModelVersion string = '2025-08-07'
79+
80+
@minLength(1)
81+
@description('Optional. Name of the image-generation model to deploy. Defaults to gpt-image-1.')
82+
param gptImageModelName string = 'gpt-image-1'
83+
84+
@description('Optional. Version of the image-generation model to deploy. Defaults to 2025-04-15.')
85+
param gptImageModelVersion string = '2025-04-15'
86+
7387
@description('Optional. Version of the Azure OpenAI service to deploy. Defaults to 2024-12-01-preview.')
7488
param azureopenaiVersion string = '2024-12-01-preview'
7589

@@ -109,6 +123,28 @@ param gpt4_1ModelCapacity int = 150
109123
@description('Optional. AI model deployment token capacity. Defaults to 50 for optimal performance.')
110124
param gptReasoningModelCapacity int = 50
111125

126+
@minLength(1)
127+
@allowed([
128+
'Standard'
129+
'GlobalStandard'
130+
])
131+
@description('Optional. GPT-5-mini model deployment type. Defaults to GlobalStandard.')
132+
param gpt5MiniModelDeploymentType string = 'GlobalStandard'
133+
134+
@description('Optional. GPT-5-mini model deployment token capacity. Defaults to 50.')
135+
param gpt5MiniModelCapacity int = 50
136+
137+
@minLength(1)
138+
@allowed([
139+
'Standard'
140+
'GlobalStandard'
141+
])
142+
@description('Optional. GPT image model deployment type. Defaults to GlobalStandard.')
143+
param gptImageModelDeploymentType string = 'GlobalStandard'
144+
145+
@description('Optional. GPT image model deployment capacity (images per minute). Defaults to 1.')
146+
param gptImageModelCapacity int = 1
147+
112148
@description('Optional. The tags to apply to all deployed Azure resources.')
113149
param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags = {}
114150

@@ -801,6 +837,26 @@ var aiFoundryAiServicesReasoningModelDeployment = {
801837
}
802838
raiPolicyName: 'Microsoft.Default'
803839
}
840+
var aiFoundryAiServices5MiniModelDeployment = {
841+
format: 'OpenAI'
842+
name: gpt5MiniModelName
843+
version: gpt5MiniModelVersion
844+
sku: {
845+
name: gpt5MiniModelDeploymentType
846+
capacity: gpt5MiniModelCapacity
847+
}
848+
raiPolicyName: 'Microsoft.Default'
849+
}
850+
var aiFoundryAiServicesImageModelDeployment = {
851+
format: 'OpenAI'
852+
name: gptImageModelName
853+
version: gptImageModelVersion
854+
sku: {
855+
name: gptImageModelDeploymentType
856+
capacity: gptImageModelCapacity
857+
}
858+
raiPolicyName: 'Microsoft.Default'
859+
}
804860
var aiFoundryAiProjectDescription = 'AI Foundry Project'
805861

806862
resource existingAiFoundryAiServices 'Microsoft.CognitiveServices/accounts@2025-06-01' existing = if (useExistingAiFoundryAiProject) {
@@ -853,6 +909,32 @@ module existingAiFoundryAiServicesDeployments 'modules/ai-services-deployments.b
853909
capacity: aiFoundryAiServicesReasoningModelDeployment.sku.capacity
854910
}
855911
}
912+
{
913+
name: aiFoundryAiServices5MiniModelDeployment.name
914+
model: {
915+
format: aiFoundryAiServices5MiniModelDeployment.format
916+
name: aiFoundryAiServices5MiniModelDeployment.name
917+
version: aiFoundryAiServices5MiniModelDeployment.version
918+
}
919+
raiPolicyName: aiFoundryAiServices5MiniModelDeployment.raiPolicyName
920+
sku: {
921+
name: aiFoundryAiServices5MiniModelDeployment.sku.name
922+
capacity: aiFoundryAiServices5MiniModelDeployment.sku.capacity
923+
}
924+
}
925+
{
926+
name: aiFoundryAiServicesImageModelDeployment.name
927+
model: {
928+
format: aiFoundryAiServicesImageModelDeployment.format
929+
name: aiFoundryAiServicesImageModelDeployment.name
930+
version: aiFoundryAiServicesImageModelDeployment.version
931+
}
932+
raiPolicyName: aiFoundryAiServicesImageModelDeployment.raiPolicyName
933+
sku: {
934+
name: aiFoundryAiServicesImageModelDeployment.sku.name
935+
capacity: aiFoundryAiServicesImageModelDeployment.sku.capacity
936+
}
937+
}
856938
]
857939
roleAssignments: [
858940
{
@@ -928,6 +1010,32 @@ module aiFoundryAiServices 'br:mcr.microsoft.com/bicep/avm/res/cognitive-service
9281010
capacity: aiFoundryAiServicesReasoningModelDeployment.sku.capacity
9291011
}
9301012
}
1013+
{
1014+
name: aiFoundryAiServices5MiniModelDeployment.name
1015+
model: {
1016+
format: aiFoundryAiServices5MiniModelDeployment.format
1017+
name: aiFoundryAiServices5MiniModelDeployment.name
1018+
version: aiFoundryAiServices5MiniModelDeployment.version
1019+
}
1020+
raiPolicyName: aiFoundryAiServices5MiniModelDeployment.raiPolicyName
1021+
sku: {
1022+
name: aiFoundryAiServices5MiniModelDeployment.sku.name
1023+
capacity: aiFoundryAiServices5MiniModelDeployment.sku.capacity
1024+
}
1025+
}
1026+
{
1027+
name: aiFoundryAiServicesImageModelDeployment.name
1028+
model: {
1029+
format: aiFoundryAiServicesImageModelDeployment.format
1030+
name: aiFoundryAiServicesImageModelDeployment.name
1031+
version: aiFoundryAiServicesImageModelDeployment.version
1032+
}
1033+
raiPolicyName: aiFoundryAiServicesImageModelDeployment.raiPolicyName
1034+
sku: {
1035+
name: aiFoundryAiServicesImageModelDeployment.sku.name
1036+
capacity: aiFoundryAiServicesImageModelDeployment.sku.capacity
1037+
}
1038+
}
9311039
]
9321040
networkAcls: {
9331041
defaultAction: 'Allow'

0 commit comments

Comments
 (0)