@@ -36,15 +36,15 @@ param location string = resourceGroup().location
3636 azd : {
3737 type : 'location'
3838 usageName : [
39- 'OpenAI.GlobalStandard.gpt-4o, 150 '
39+ 'OpenAI.GlobalStandard.gpt-4o, 5 '
4040 ]
4141 }
4242})
4343@description ('Optional. Location for all AI service resources. This location can be different from the resource group location.' )
4444param aiDeploymentsLocation string
4545
4646@description ('Optional. AI model deployment token capacity. Defaults to 150K tokens per minute.' )
47- param capacity int = 150
47+ param capacity int = 5
4848
4949@description ('Optional. Enable monitoring for the resources. This will enable Application Insights and Log Analytics. Defaults to false.' )
5050param enableMonitoring bool = useWafAlignedArchitecture ? true : false
@@ -129,6 +129,8 @@ var modelDeployment = {
129129 raiPolicyName : 'Microsoft.Default'
130130}
131131
132+ var abbrs = loadJsonContent ('./abbreviations.json' )
133+
132134#disable-next-line no-deployments-resources
133135resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry ) {
134136 name : take (
@@ -154,7 +156,7 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableT
154156module appIdentity 'br/public:avm/res/managed-identity/user-assigned-identity:0.4.1' = {
155157 name : take ('identity-app-${resourcesName }-deployment' , 64 )
156158 params : {
157- name : 'id-app- ${resourcesName }'
159+ name : '${ abbrs . security . managedIdentity } ${resourcesName }'
158160 location : location
159161 tags : allTags
160162 enableTelemetry : enableTelemetry
@@ -176,7 +178,7 @@ resource existingLogAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces
176178module logAnalyticsWorkspace 'br/public:avm/res/operational-insights/workspace:0.11.2' = if ((enableMonitoring || enablePrivateNetworking ) && !useExistingLogAnalytics ) {
177179 name : take ('log-analytics-${resourcesName }-deployment' , 64 )
178180 params : {
179- name : 'log- ${resourcesName }'
181+ name : '${ abbrs . managementGovernance . logAnalyticsWorkspace } ${resourcesName }'
180182 location : location
181183 skuName : 'PerGB2018'
182184 dataRetention : 30
@@ -194,7 +196,7 @@ var LogAnalyticsWorkspaceId = useExistingLogAnalytics? existingLogAnalyticsWorks
194196module applicationInsights 'br/public:avm/res/insights/component:0.6.0' = if (enableMonitoring ) {
195197 name : take ('app-insights-${resourcesName }-deployment' , 64 )
196198 params : {
197- name : 'appi- ${resourcesName }'
199+ name : '${ abbrs . managementGovernance . applicationInsights } ${resourcesName }'
198200 location : location
199201 workspaceResourceId : logAnalyticsWorkspaceResourceId
200202 diagnosticSettings : [{ workspaceResourceId : logAnalyticsWorkspaceResourceId }]
@@ -223,12 +225,12 @@ module aiServices 'modules/ai-foundry/main.bicep' = {
223225 #disable-next-line no-unnecessary-dependson
224226 dependsOn : [logAnalyticsWorkspace , network ] // required due to optional flags that could change dependency
225227 params : {
226- name : 'ais- ${resourcesName }'
228+ name : '${ abbrs . ai . aiFoundry } ${resourcesName }'
227229 location : aiDeploymentsLocation
228230 sku : 'S0'
229231 kind : 'AIServices'
230232 deployments : [modelDeployment ]
231- projectName : 'proj- ${resourcesName }'
233+ projectName : '${ abbrs . ai . aiFoundryProject } ${resourcesName }'
232234 logAnalyticsWorkspaceResourceId : enableMonitoring ? logAnalyticsWorkspaceResourceId : ''
233235 privateNetworking : enablePrivateNetworking
234236 ? {
@@ -265,7 +267,7 @@ module storageAccount 'modules/storageAccount.bicep' = {
265267 #disable-next-line no-unnecessary-dependson
266268 dependsOn : [logAnalyticsWorkspace , network ] // required due to optional flags that could change dependency
267269 params : {
268- name : take ('st ${resourcesName }' , 24 )
270+ name : take ('${ abbrs . storage . storageAccount } ${resourcesName }' , 24 )
269271 location : location
270272 tags : allTags
271273 skuName : enableRedundancy ? 'Standard_GZRS' : 'Standard_LRS'
@@ -300,7 +302,7 @@ module keyVault 'modules/keyVault.bicep' = {
300302 #disable-next-line no-unnecessary-dependson
301303 dependsOn : [logAnalyticsWorkspace , network ] // required due to optional flags that could change dependency
302304 params : {
303- name : take ('kv- ${resourcesName }' , 24 )
305+ name : take ('${ abbrs . security . keyVault } ${resourcesName }' , 24 )
304306 location : location
305307 sku : 'standard'
306308 logAnalyticsWorkspaceResourceId : enableMonitoring ? logAnalyticsWorkspaceResourceId : ''
@@ -327,7 +329,7 @@ module cosmosDb 'modules/cosmosDb.bicep' = {
327329 #disable-next-line no-unnecessary-dependson
328330 dependsOn : [logAnalyticsWorkspace , network ] // required due to optional flags that could change dependency
329331 params : {
330- name : take ('cosmos- ${resourcesName }' , 44 )
332+ name : take ('${ abbrs . databases . cosmosDBDatabase } ${resourcesName }' , 44 )
331333 location : location
332334 dataAccessIdentityPrincipalId : appIdentity .outputs .principalId
333335 logAnalyticsWorkspaceResourceId : enableMonitoring ? logAnalyticsWorkspaceResourceId : ''
@@ -344,7 +346,7 @@ module cosmosDb 'modules/cosmosDb.bicep' = {
344346 }
345347}
346348
347- var containerAppsEnvironmentName = 'cae- ${resourcesName }'
349+ var containerAppsEnvironmentName = '${ abbrs . containers . containerAppsEnvironment } ${resourcesName }'
348350
349351module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.11.2' = {
350352 name : take ('container-env-${resourcesName }-deployment' , 64 )
@@ -391,7 +393,7 @@ module containerAppBackend 'br/public:avm/res/app/container-app:0.17.0' = {
391393 #disable-next-line no-unnecessary-dependson
392394 dependsOn : [applicationInsights ] // required due to optional flags that could change dependency
393395 params : {
394- name : take ('ca -${resourcesName }backend ' , 32 )
396+ name : take ('${ abbrs . containers . containerApp }backend -${resourcesName }' , 32 )
395397 location : location
396398 environmentResourceId : containerAppsEnvironment .outputs .resourceId
397399 managedIdentities : {
@@ -556,7 +558,7 @@ module containerAppBackend 'br/public:avm/res/app/container-app:0.17.0' = {
556558module containerAppFrontend 'br/public:avm/res/app/container-app:0.17.0' = {
557559 name : take ('container-app-frontend-${resourcesName }-deployment' , 64 )
558560 params : {
559- name : take ('ca -${resourcesName }frontend ' , 32 )
561+ name : take ('${ abbrs . containers . containerApp }frontend -${resourcesName }' , 32 )
560562 location : location
561563 environmentResourceId : containerAppsEnvironment .outputs .resourceId
562564 managedIdentities : {
0 commit comments