Skip to content

Commit 58aea18

Browse files
committed
Added main.biceppram file and removed hard coded var values in bicep
1 parent 976ee46 commit 58aea18

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

infra/main.bicep

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
targetScope = 'resourceGroup'
2-
@description('Location for all resources.')
3-
param location string
2+
// @description('Location for all resources.')
3+
// param location string
44

55
@allowed([
66
'australiaeast'
@@ -28,12 +28,12 @@ param location string
2828
'westus3'
2929
])
3030
@description('Location for all Ai services resources. This location can be different from the resource group location.')
31-
param azureOpenAILocation string = 'eastus2' // The location used for all deployed resources. This location must be in the same region as the resource group.
31+
param azureOpenAILocation string //= 'eastus2' // The location used for all deployed resources. This location must be in the same region as the resource group.
3232

3333
@minLength(3)
3434
@maxLength(20)
3535
@description('Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group.')
36-
param prefix string = 'macae'
36+
param prefix string //= 'macae'
3737

3838
@description('Tags to apply to all deployed resources')
3939
param tags object = {}
@@ -58,6 +58,7 @@ param resourceSize {
5858
}
5959
param capacity int = 140
6060

61+
var location = resourceGroup().location
6162
var modelVersion = '2024-08-06'
6263
var aiServicesName = '${prefix}-aiservices'
6364
var deploymentType = 'GlobalStandard'

infra/main.bicepparam

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using './main.bicep'
2+
3+
param azureOpenAILocation = readEnvironmentVariable('AZURE_LOCATION','japaneast')
4+
param prefix = readEnvironmentVariable('AZURE_ENV_NAME','azdtemp')

0 commit comments

Comments
 (0)