https://pulumi.com logo
Title
b

bored-activity-40468

11/02/2022, 2:09 PM
Anyone have issues with hanging when trying to create a
ManagedEnvironment
for ContainerApp? Using
AzureNative
, basically example from the docs. The env gets created but pulumi hangs.
c

clever-sunset-76585

11/02/2022, 2:18 PM
Hmm I haven't had that problem. I recently set one up.
b

bored-activity-40468

11/02/2022, 2:37 PM
Thanks, that's helpful, it must be something I'm doing, probably something silly 🙂
c

clever-sunset-76585

11/02/2022, 2:39 PM
Can you repro it consistently?
b

bored-activity-40468

11/02/2022, 2:54 PM
so far yeah but I'm going to make a new project with only creating that resource and not using automation api an verify that works.
yeah, even with hello world ManagedEnvironment, env gets created and pulumi hangs. Running again with verbosity cranked up.
c

clever-sunset-76585

11/02/2022, 3:56 PM
Ah you are using the dotnet runtime. Mine was Node.js.
b

bored-activity-40468

11/02/2022, 3:56 PM
yeah, I can try it with another runtime
c

clever-sunset-76585

11/02/2022, 3:56 PM
I wonder if there is some process teardown that is holding up Pulumi after resources have been created.
b

bored-activity-40468

11/02/2022, 3:57 PM
That's what it seems like, its not getting the, "I'm done" acknowledgement and timing out.
c

clever-sunset-76585

11/02/2022, 3:57 PM
Verbose logs should help diagnose what's holding up Pulumi.
b

bored-activity-40468

11/02/2022, 4:20 PM
Tried with 2022-06-01 preview and it doesn't hang but blows up, which is progress 🙂
* Code="OperationFailed" Message="Managed environment failed to initialize due to managed cluster provision failed"
env gets created though
c

clever-sunset-76585

11/02/2022, 4:23 PM
Yikes! Fwiw, I used the default API version that Pulumi has locked that resource to.
b

bored-activity-40468

11/02/2022, 5:05 PM
c

clever-sunset-76585

11/03/2022, 1:36 AM
That's good but it shouldn't be needed here since it seems Pulumi isn't waiting on Azure in this case. I would still open an issue and mention your workaround.
b

bored-activity-40468

11/03/2022, 4:45 AM
I was mistaken, time-out didn’t do anything but I think the whole issue is related to an azure keyvault outage.
c

clever-sunset-76585

11/03/2022, 4:54 AM
oh interesting...are you using KV as your secrets provider?
b

bored-activity-40468

11/03/2022, 12:20 PM
No but the outage had ContainerApps listed as being effected. Just ran my hello world for this and it worked without issue, thanks for the help and feedback. 🙂