You are deploying a backend microservice named `inventory-service` to an Azure Container Apps environment. The microservice runs inside a container that listens on port 3000 and needs to integrate with Dapr to enable state management and service-to-service invocation using the application ID `inventory-processor`. You are authoring a Bicep template to deploy the container app. Which two settings must you configure within the `dapr` block under `properties.configuration` to successfully enable Dapr integration and register the microservice?
- enabled: trueCevap
- appId: 'inventory-processor'Cevap
- Cidentity: { type: 'SystemAssigned' }
- DappPort: 80
Cevap
The settings enabled set to true and appId set to 'inventory-processor' are required inside the dapr block.
To successfully enable and configure Dapr for an Azure Container App in a Bicep template, the dapr object under properties.configuration must have enabled set to true to trigger sidecar injection, and appId set to the required string value ('inventory-processor') to define the application's service identification.
Adım Adım Çözüm
Anahtar Kavram
Dapr integration configuration in Azure Container Apps Bicep templates