Skip to content

Commit

Permalink
Removed second provisioning of apiservice aca-deployment-bicep.md
Browse files Browse the repository at this point in the history
Removed part of a code snippet (subsection 5 of the section "Create the Azure Bicep provisioning files" that, when added as described in the article, results in "Identifier 'apiservice' is declared multiple times" error.
  • Loading branch information
peteraritchie committed Nov 20, 2023
1 parent b1f8f32 commit c2b9f8e
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions docs/deployment/azure/includes/aca-deployment-bicep.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,51 +194,9 @@ Now, you'll create two new files - `infra\provision.bicep` and `infra\provision.
}
```

1. The final code you'll add to _infra/provision.bicep_ will provision containers for the front-end, back-end and the Redis Azure Container App add-on your front-end will use to facilitate output caching.
1. The final code you'll add to _infra/provision.bicep_ will provision containers for the front-end and the Redis Azure Container App add-on your front-end will use to facilitate output caching.

```bicep
// apiservice - the app's back-end
resource apiservice 'Microsoft.App/containerApps@2023-04-01-preview' = {
name: 'apiservice'
location: location
identity: {
type: 'UserAssigned'
userAssignedIdentities: { '${identity.id}' : {}}
}
properties: {
managedEnvironmentId: containerAppsEnvironment.id
configuration: {
activeRevisionsMode: 'Single'
ingress: {
external: true
targetPort: 80
transport: 'http'
}
dapr: { enabled: false }
registries: [ {
server: '${containerRegistryName}.azurecr.io'
identity: identity.id
} ]
}
template: {
scale: {
minReplicas: 1
maxReplicas: 1
}
serviceBinds: []
containers: [ {
image: helloWorldContainerImage
name: 'apiservice'
env: env
resources: {
cpu: json(containerCpuCoreCount)
memory: containerMemory
}
} ]
}
}
}
// web - the app's front end
resource web 'Microsoft.App/containerApps@2023-04-01-preview' = {
name: 'web'
Expand Down

0 comments on commit c2b9f8e

Please sign in to comment.