https://pulumi.com logo
#azure
Title
# azure
l

lemon-laptop-7435

11/28/2023, 5:45 PM
Good day everyone, was hoping someone might be able to point me in the right direction. I am trying to setup a managed certificate with a custom domain on managed container env app. There seems to be a circular dependency where the custom domain argument in the container app needs the managed certificate to already exist, but to create the managed certificate the custom domain entry must exist. Any ideas on how to get around this issue? Thanks in advance
f

fast-vr-6049

11/28/2023, 6:44 PM
This has sadly been a known issue for quite a while. One day, the container apps team just introduced this circular dependency without versioning the change in a new API version, breaking the entire workflow. I raised this as an issue on the Pulumi Azure Native repo (https://github.com/pulumi/pulumi-azure-native/issues/2117), but it was identified as an upstream issue, so I reported it there too (https://github.com/microsoft/azure-container-apps/issues/525), but it still hasn't received any traction. I've encountered so many situations like this with the Container Apps team that I refactored my entire project just to migrate off of it. I honestly recommend you do the same.
l

little-library-54601

11/28/2023, 7:13 PM
Also see https://github.com/pulumi/pulumi-azure-native/issues/578, for less-than-satisfying workarounds. We've just accepted the state of affairs, and you can see my code for a workaround in that link.