[AVM Module Issue]: certificateKeyVaultProperties in App Managed Environments appears unusable (aka container app environment) #3855
Labels
Class: Resource Module 📦
This is a resource module
Needs: Immediate Attention ‼️
Immediate attention of module owner / AVM team is needed
Needs: Triage 🔍
Maintainers need to triage still
Status: Response Overdue 🚩
When an issue/PR has not been responded to for X amount of days
Type: AVM 🅰️ ✌️ Ⓜ️
This is an AVM related issue
Check for previous/existing GitHub issues
Issue Type?
I'm not sure
Module Name
avm/res/app/managed-environment
(Optional) Module Version
0.8.1
Description
I have a working bicep infra-as-code script working just nicely to create an Container App environment (CAE) that imports a certificate from key vault, and a Container app that has a custom domain that's bound to this certificate from this CAE
At the time I wrote the bicep,
certificateKeyVaultProperties
had not made available in the App Managed Environments verified module. And so I used the "raw resource" instead. Now thatcertificateKeyVaultProperties
was added in #2719, I thought I'd go and replace my usage of the raw resource with the AVM.Problem is that when I run the bicep from scratch (ie where there is no previous managed environment or container app), this fails trying to create the container app, saying that the certificate cannot be found in the managed environment.
When I go and look at the managed environment in the azure portal that did get created, I don't see the certificate listed in "Bring your certificates" section. Hence the container app creation fails.
So now I am at a loss to know how to successfully/correctly use
certificateKeyVaultProperties
in the App Managed Environment module. Any assistance would be welcome, as I'm really trying hard to onboard as many resource to AVM as I can, and this issue is holding up that effort.For reference below are the relevant extracts taken from both the original working bicep, and the new bicep that attempts to use the AVM
Also, the PR where I make the switch to AVM for managed environment: https://github.com/christianacca/web-api-starter/pull/23/files
bicep using raw resource - working
Full listing: aca-environment.bicep
Full listing: api.bicep
bicep using AVM - broken
Full listing: aca-environment.bicep
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: