Skip to content

Commit f9c0392

Browse files
fix: local container not used even though local build flag is set and doc updates
1 parent b49f7cc commit f9c0392

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

docs/DeploymentGuide.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,29 +221,21 @@ This will rebuild the source code, package it into a container, and push it to t
221221
Bash
222222
223223
```bash
224-
225224
./upload_files.sh https://<< API Service Endpoint >>/contentprocessor/submit ./invoices <<Invoice Schema Id>>
226-
227225
```
228226
229227
```bash
230-
231228
./upload_files.sh https://<< API Service Endpoint >>/contentprocessor/submit ./propertyclaims <<Property Loss Damage Claim Form Schema Id>>
232-
233229
```
234230
235231
Windows
236232
237233
```powershell
238-
239234
./upload_files.ps1 https://<< API Service Endpoint >>/contentprocessor/submit .\invoices <<Invoice Schema Id>>
240-
241235
```
242236
243237
```powershell
244-
245238
./upload_files.ps1 https://<< API Service Endpoint >>/contentprocessor/submit .\propertyclaims <<Property Loss Damage Claim Form Schema Id>>
246-
247239
```
248240
249241
3. **Add Authentication Provider**

infra/main.bicep

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ var resourceGroupLocation = resourceGroup().location
7878
// Load the abbrevations file required to name the azure resources.
7979
var abbrs = loadJsonContent('./abbreviations.json')
8080

81+
// Convert input to lowercase
82+
var useLocalBuildLower = toLower(useLocalBuild)
83+
8184
// ========== Managed Identity ========== //
8285
module managedIdentityModule 'deploy_managed_identity.bicep' = {
8386
name: 'deploy_managed_identity'
@@ -229,7 +232,7 @@ module updateContainerApp './container_app/deploy_container_app_api_web.bicep' =
229232
params: {
230233
solutionName: solutionPrefix
231234
location: secondaryLocation
232-
azureContainerRegistry: useLocalBuild == 'true' ? containerRegistry.outputs.acrEndpoint : containerImageEndPoint
235+
azureContainerRegistry: useLocalBuildLower == 'true' ? containerRegistry.outputs.acrEndpoint : containerImageEndPoint
233236
appConfigEndPoint: appconfig.outputs.appConfigEndpoint
234237
containerAppEnvId: containerAppEnv.outputs.containerEnvId
235238
containerRegistryReaderId: containerAppEnv.outputs.containerRegistryReaderId
@@ -241,7 +244,7 @@ module updateContainerApp './container_app/deploy_container_app_api_web.bicep' =
241244
maxReplicaContainerApi: maxReplicaContainerApi
242245
minReplicaContainerWeb: minReplicaContainerWeb
243246
maxReplicaContainerWeb: maxReplicaContainerWeb
244-
useLocalBuild: useLocalBuild
247+
useLocalBuild: useLocalBuildLower
245248
}
246249
dependsOn: [roleAssignments]
247250
}

infra/main.bicepparam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ param environmentName = readEnvironmentVariable('AZURE_ENV_NAME', 'cps')
44
param contentUnderstandingLocation = readEnvironmentVariable('AZURE_ENV_CU_LOCATION', 'WestUS')
55
param deploymentType = readEnvironmentVariable('AZURE_ENV_MODEL_DEPLOYMENT_TYPE', 'GlobalStandard')
66
param gptModelName = readEnvironmentVariable('AZURE_ENV_MODEL_NAME', 'gpt-4o')
7-
param gptDeploymentCapacity = int(readEnvironmentVariable('AZURE_ENV_MODEL_CAPACITY', '100'))
7+
param gptDeploymentCapacity = int(readEnvironmentVariable('AZURE_ENV_MODEL_CAPACITY', '30'))
88
param useLocalBuild = readEnvironmentVariable('USE_LOCAL_BUILD', 'false')

0 commit comments

Comments
 (0)