Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ param aiServices string = 'aiservices'

// Model deployment parameters
@description('The name of the model you want to deploy')
// param modelName string = 'gpt-4o'
// @description('The provider of your model')
// param modelFormat string = 'OpenAI'
// @description('The version of your model')
// param modelVersion string = '2024-05-13'
// @description('The sku of your model deployment')
// param modelSkuName string = 'GlobalStandard'
// @description('The tokens per minute (TPM) of your model deployment')
// param modelCapacity int = 1
param modelName string = 'gpt-4o'
@description('The provider of your model')
param modelFormat string = 'OpenAI'
@description('The version of your model')
param modelVersion string = '2024-05-13'
@description('The sku of your model deployment')
param modelSkuName string = 'GlobalStandard'
@description('The tokens per minute (TPM) of your model deployment')
param modelCapacity int = 1

// Create a short, unique suffix, that will be unique to each resource group
param deploymentTimestamp string = utcNow('yyyyMMddHHmmss')
Expand Down Expand Up @@ -97,11 +97,11 @@ module aiAccount 'modules-network-secured/ai-account-identity.bicep' = {
// workspace organization
accountName: accountName
location: location
// modelName: modelName
// modelFormat: modelFormat
// modelVersion: modelVersion
// modelSkuName: modelSkuName
// modelCapacity: modelCapacity
modelName: modelName
modelFormat: modelFormat
modelVersion: modelVersion
modelSkuName: modelSkuName
modelCapacity: modelCapacity
agentSubnetId: vnet.outputs.agentSubnetId
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
param accountName string
param location string
// param modelName string
// param modelFormat string
// param modelVersion string
// param modelSkuName string
// param modelCapacity int
param modelName string
param modelFormat string
param modelVersion string
param modelSkuName string
param modelCapacity int
param agentSubnetId string
param networkInjection string = 'true'

Expand Down Expand Up @@ -39,22 +39,22 @@ resource account 'Microsoft.CognitiveServices/accounts@2025-04-01-preview' = {
}
}

// #disable-next-line BCP081
// resource modelDeployment 'Microsoft.CognitiveServices/accounts/deployments@2025-04-01-preview'= {
// parent: account
// name: modelName
// sku : {
// capacity: modelCapacity
// name: modelSkuName
// }
// properties: {
// model:{
// name: modelName
// format: modelFormat
// version: modelVersion
// }
// }
// }
#disable-next-line BCP081
resource modelDeployment 'Microsoft.CognitiveServices/accounts/deployments@2025-04-01-preview'= {
parent: account
name: modelName
sku : {
capacity: modelCapacity
name: modelSkuName
}
properties: {
model:{
name: modelName
format: modelFormat
version: modelVersion
}
}
}

output accountName string = account.name
output accountID string = account.id
Expand Down
Loading