For a full description of this sample code, read this blog post: Microservices with Azure Container Apps and Bicep templates .
Note that this sample code differs from the blog post so that the code is closer to what should be used in a production scenario.