Skip to content

Commit adca3cd

Browse files
output variables added
1 parent e9ab3a7 commit adca3cd

2 files changed

Lines changed: 73 additions & 2 deletions

File tree

Deployment/resourcedeployment.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ function DeployAzureResources() {
210210
}
211211

212212
# Required values from .env
213-
$envLocation = if ($env:LOCATION) { $env:LOCATION } else { "eastus" }
214-
$environmentName = if ($env:ENVIRONMENT_NAME) { $env:ENVIRONMENT_NAME } else { "dev" }
213+
$envLocation = if ($env:RESOURCE_GROUP_LOCATION) { $env:RESOURCE_GROUP_LOCATION } else { "eastus" }
214+
$environmentName = if ($env:AZURE_ENV_NAME) { $env:AZURE_ENV_NAME } else { "dev" }
215215
$resourceGroupName = if ($env:RESOURCE_GROUP_NAME) { $env:RESOURCE_GROUP_NAME } else { "" }
216216

217217
# Generate random deployment name

infra/main.bicep

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,37 @@ param enableScalability bool = false
7676
@description('Optional. Enable purge protection for the Key Vault')
7777
param enablePurgeProtection bool = false
7878

79+
@description('Optional. Cognitive Account Name')
80+
param cognitiveAccountName string = ''
81+
82+
@description('Optional. Azure Search Service Name')
83+
param azureSearchServiceName string = ''
84+
85+
@description('Optional. Azure Cosmos DB Name')
86+
param azureCosmosDbName string = ''
87+
88+
@description('Optional. Azure Cognitive Service Name')
89+
param azureCognitiveServiceName string = ''
90+
91+
@description('Optional. Contains Azure OpenAI Service Endpoint.')
92+
param azureOpenAiServiceEndpoint string = ''
93+
94+
@description('Optional. Contains Azure Search Service Endpoint.')
95+
param azureSearchServiceEndpoint string = ''
96+
97+
@description('Optional. Contains Azure Cognitive Service Endpoint.')
98+
param azureCognitiveServiceEndpoint string = ''
99+
100+
@minLength(1)
101+
@description('Optional. Name of the Text Embedding model to deploy:')
102+
@allowed([
103+
'text-embedding-ada-002'
104+
])
105+
param embeddingModel string = 'text-embedding-ada-002'
106+
107+
@description('Optional. Contains Azure GPT 40 Model Name.')
108+
param azureGpt40ModelName string = ''
109+
79110
var solutionLocation = empty(location) ? resourceGroup().location : location
80111

81112
// @description('Optional. Key vault reference and secret settings for the module\'s secrets export.')
@@ -681,6 +712,46 @@ output RESOURCE_GROUP_NAME string = resourceGroup().name
681712
@description('Contains Resource Group Location.')
682713
output RESOURCE_GROUP_LOCATION string = solutionLocation
683714

715+
@description('Contains Resource Group Name.')
716+
output STORAGE_ACCOUNT_NAME string = storageAccountName
717+
718+
@description('Contains Cognitive Account Name.')
719+
output COGNITIVE_ACCOUNT_NAME string = cognitiveAccountName
720+
721+
@description('Contains Cosmos DB Name.')
722+
output AZ_COSMOSDB_NAME string = azureCosmosDbName
723+
724+
@description('Contains Cognitive Service Name.')
725+
output AZ_COGNITIVE_SERVICE_NAME string = azureCognitiveServiceName
726+
727+
@description('Contains Azure Search Service Name.')
728+
output AZ_SEARCH_SERVICE_NAME string = azureSearchServiceName
729+
730+
@description('Contains Azure OpenAI Search Service Name.')
731+
output AZ_OPENAI_SERVICE_NAME string = openAiAccountName
732+
733+
@description('Contains Azure OpenAI Service Endpoint.')
734+
output AZ_OPENAI_SERVICE_ENDPOINT string = azureOpenAiServiceEndpoint
735+
736+
@description('Contains Azure Search Service Endpoint.')
737+
output AZ_SEARCH_SERVICE_ENDPOINT string = azureSearchServiceEndpoint
738+
739+
@description('Contains Azure Cognitive Service Endpoint.')
740+
output AZ_COGNITIVE_SERVICE_ENDPOINT string = azureCognitiveServiceEndpoint
741+
742+
@description('Contains Azure GPT40 Model ID.')
743+
output AZ_GPT4O_MODEL_ID string = azureSearchServiceName
744+
745+
@description('Contains Azure OpenAI embedding model name.')
746+
output AZ_GPT4O_MODEL_NAME string = azureGpt40ModelName
747+
748+
@description('Contains Azure OpenAI embedding model name.')
749+
output AZ_GPT_EMBEDDING_MODEL_NAME string = embeddingModel
750+
751+
@description('Contains Azure OpenAI embedding model capacity.')
752+
output AZ_OPENAI_EMBEDDING_MODEL_CAPACITY int = embeddingDeploymentCapacity
753+
754+
684755
// @description('The FQDN of the frontend web app service.')
685756
// output kmServiceEndpoint string = containerAppService.outputs.kmServiceFQDN
686757

0 commit comments

Comments
 (0)