Skip to content

Commit 4ec32f7

Browse files
committed
Fix identity name and cost esitmation for aca
1 parent 9e6e145 commit 4ec32f7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Pricing varies per region and usage, so it isn't possible to predict exact costs
6666
However, you can try the [Azure pricing calculator](https://azure.com/e/a87a169b256e43c089015fda8182ca87) for the resources below.
6767

6868
- Azure App Service: Basic Tier with 1 CPU core, 1.75 GB RAM. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/app-service/linux/)
69+
- Azure Container Apps: Consumption plan with 1 CPU core, 2.0 GB RAM. Pricing with Pay-as-You-Go. [Pricing](https://azure.microsoft.com/pricing/details/container-apps/)
6970
- Azure OpenAI: Standard tier, GPT and Ada models. Pricing per 1K tokens used, and at least 1K tokens are used per question. [Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/)
7071
- Azure AI Document Intelligence: SO (Standard) tier using pre-built layout. Pricing per document page, sample documents have 261 pages total. [Pricing](https://azure.microsoft.com/pricing/details/form-recognizer/)
7172
- Azure AI Search: Basic tier, 1 replica, free level of semantic search. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/search/)

infra/main.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,16 +394,16 @@ module acaBackend 'core/host/container-app-upsert.bicep' = if (deploymentTarget
394394
params: {
395395
name: !empty(backendServiceName) ? backendServiceName : '${abbrs.webSitesContainerApps}backend-${resourceToken}'
396396
location: location
397-
identityName: (deploymentTarget == 'containerapps') ? acaIdentity.name : ''
397+
identityName: (deploymentTarget == 'containerapps') ? acaIdentityName : ''
398398
exists: webAppExists
399399
workloadProfile: azureContainerAppsWorkloadProfile
400400
containerRegistryName: (deploymentTarget == 'containerapps') ? containerApps.outputs.registryName : ''
401401
containerAppsEnvironmentName: (deploymentTarget == 'containerapps') ? containerApps.outputs.environmentName : ''
402402
identityType: 'UserAssigned'
403403
tags: union(tags, { 'azd-service-name': 'backend' })
404404
targetPort: 8000
405-
containerCpuCoreCount: '2.0'
406-
containerMemory: '4Gi'
405+
containerCpuCoreCount: '1.0'
406+
containerMemory: '2Gi'
407407
allowedOrigins: [ allowedOrigin ]
408408
env: {
409409
AZURE_STORAGE_ACCOUNT: storage.outputs.name

0 commit comments

Comments
 (0)