https://pulumi.com logo
Title
i

incalculable-napkin-4298

01/16/2023, 3:26 PM
Hi, I'm seeing some weird behavior when I'm creating an Azure Container App using Pulumi (via c#). Basically, it's creating another resource group, with what appears to be a random generated name. In there, it's creating a load balancer it calls 'kubernetes', a network security group and a public ip addres
Also, it seems to hang indefinetly when creating the container env. Any thoughts on why this might be?
i

icy-doctor-13719

01/16/2023, 3:40 PM
is that of type
AzureNative.App.ContainerApp
?
i

incalculable-napkin-4298

01/16/2023, 3:40 PM
yes
well..
i

icy-doctor-13719

01/16/2023, 3:40 PM
can you share your code that you’re using to create?
i

incalculable-napkin-4298

01/16/2023, 3:41 PM
image.png
i

icy-doctor-13719

01/16/2023, 3:42 PM
looks like
AzureNative.App.ManagedEnvironment
i

incalculable-napkin-4298

01/16/2023, 3:42 PM
yeah, before I can create the app, I need an managed env
It may have something to do with the fact that it needs to be part of a virtual network
i

icy-doctor-13719

01/16/2023, 3:43 PM
i looked at a managedenvironment that I created and the only real difference is the Vnet configuration
i’d start there
i

incalculable-napkin-4298

01/16/2023, 4:03 PM
I just created one without the virtual network settings. Still same results strangely enough
Ok.. but.. I just created one through the portal and it ALSO creates the weird vnet. So it's not a pulumi problem but an azure problem. Thanks for your input 🙂
m

many-telephone-49025

01/17/2023, 7:29 AM
Azure Container App is based on a Kubernetes, so I would expect to get the LB for the k8s API server.
i

incalculable-napkin-4298

01/17/2023, 7:31 AM
Sure, on some level, that makes sense, it's just that it creates a new resource group with some (what to me appears to be) unrelated resources and a seemingly randomized name.
If it would have created these resources in the same resource group it would have already made more sense
I think they did it this way because they kept the names the same for the resources (such as the LB) so it HAS to be in a different resource group.
m

many-telephone-49025

01/17/2023, 7:32 AM
Its like Managed Cluster in Azure, it also creates an node resource group.
with the default MC_xxxx name of the rg
i

incalculable-napkin-4298

01/17/2023, 7:33 AM
exactly
m

many-telephone-49025

01/17/2023, 7:33 AM
I change the name always 😄
i

incalculable-napkin-4298

01/17/2023, 7:33 AM
but you'd have to go in and do that manually right?
m

many-telephone-49025

01/17/2023, 7:34 AM
I don't know in Container App if its possible there, but in vanilla MC i use the
nodeResourceGroup
property
i

incalculable-napkin-4298

01/17/2023, 7:34 AM
or do you have a way to do that also through pulumi?
m

many-telephone-49025

01/17/2023, 7:37 AM
Just checked, It's not possible. Makes probably again sense, as Container App push K8s into an implementation detail.
i

incalculable-napkin-4298

01/17/2023, 7:38 AM
yeah, was looking as well.. annoyingly enough, from CLI there is that option https://learn.microsoft.com/en-us/azure/aks/faq#can-i-provide-my-own-name-for-the-aks-node-resource-group
m

many-telephone-49025

01/17/2023, 7:40 AM
For AKS yes, but for Container Apps I did not find one. Not even the CLI has a hidden flag
az containerapp create -h
i

incalculable-napkin-4298

01/17/2023, 7:40 AM
oh you're right, was looking in the wrong place
m

many-telephone-49025

01/17/2023, 7:40 AM
I would had celebrate this, to satisfy my inner OCD 😄