Skip to content

Commit 151a49d

Browse files
Updated bicep and added parameters json
1 parent e9abfea commit 151a49d

File tree

2 files changed

+35
-8
lines changed

2 files changed

+35
-8
lines changed

infra/main.bicep

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ targetScope = 'resourceGroup'
44
@minLength(3)
55
@maxLength(20)
66
@description('A unique prefix for all resources in this deployment. This should be 3-20 characters long:')
7-
param environmentName string = 'env_name'
7+
param environmentName string
88

99
@minLength(1)
1010
@description('Secondary location for databases creation(example:eastus2):')
1111
param secondaryLocation string = 'eastus2'
1212

13+
@description('Azure location for the solution. If not provided, it defaults to the resource group location.')
14+
param AZURE_LOCATION string=''
15+
16+
// ========== AI Deployments Location ========== //
17+
@description('Location for AI deployments. This should be a valid Azure region where OpenAI services are available.')
1318
@metadata({
1419
azd: {
1520
type: 'location'
@@ -21,7 +26,6 @@ param secondaryLocation string = 'eastus2'
2126
})
2227
param aiDeploymentsLocation string
2328

24-
2529
@minLength(1)
2630
@description('GPT model deployment type:')
2731
@allowed([
@@ -36,6 +40,7 @@ param gptModelName string = 'gpt-4.1'
3640
@description('Version of the GPT model to deploy:')
3741
param gptModelVersion string = '2025-04-14'
3842

43+
@description('API version for Azure OpenAI service. This should be a valid API version supported by the service.')
3944
param azureOpenaiAPIVersion string = '2025-01-01-preview'
4045

4146
@minValue(10)
@@ -46,18 +51,15 @@ param gptDeploymentCapacity int = 150
4651

4752
@minLength(1)
4853
@description('Name of the Text Embedding model to deploy:')
49-
@allowed([
50-
'text-embedding-ada-002'
51-
])
5254
param embeddingModel string = 'text-embedding-ada-002'
5355

5456
var abbrs = loadJsonContent('./abbreviations.json')
5557
@minValue(10)
5658
@description('Capacity of the Embedding Model deployment')
5759
param embeddingDeploymentCapacity int = 80
5860

61+
@description('Image tag for the App Service container. Default is "latest".')
5962
param imageTag string = 'latest'
60-
param AZURE_LOCATION string=''
6163

6264
@description('Optional: Existing Log Analytics Workspace Resource ID')
6365
param existingLogAnalyticsWorkspaceId string = ''
@@ -68,8 +70,6 @@ var uniqueId = toLower(uniqueString(environmentName, subscription().id, solution
6870
var solutionPrefix = 'dg${padLeft(take(uniqueId, 12), 12, '0')}'
6971

7072

71-
72-
7373
// ========== Managed Identity ========== //
7474
module managedIdentityModule 'deploy_managed_identity.bicep' = {
7575
name: 'deploy_managed_identity'

infra/main.parameters.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"environmentName": {
6+
"value": "${AZURE_ENV_NAME}"
7+
},
8+
"location": {
9+
"value": "${AZURE_LOCATION}"
10+
},
11+
"secondaryLocation": {
12+
"value": "${AZURE_ENV_SECONDARY_LOCATION}"
13+
},
14+
"gptModelVersion": {
15+
"value": "${AZURE_ENV_MODEL_VERSION}"
16+
},
17+
"azureOpenaiAPIVersion ": {
18+
"value": "${AZURE_ENV_OPENAI_API_VERSION}"
19+
},
20+
"imageTag": {
21+
"value": "${AZURE_ENV_IMAGETAG}"
22+
},
23+
"existingLogAnalyticsWorkspaceId": {
24+
"value": "${AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID}"
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)