Azure / azure-libraries-for-net

Azure libraries for .Net
MIT License
377 stars 190 forks source link

[FEATURE REQ] Create a ContainerGroup with no wait option. #1327

Closed mlankamp closed 1 year ago

mlankamp commented 1 year ago

Is your feature request related to a problem? Please describe. The Azure CLI has an option --no-wait when creating a container. When this option is used, the container group creation is started and there is no waiting until it's finished. We use a durable function to start, monitor and delete a container to process items in a queue. In a consumption plan the maximum duration of a function is 10minutes, but the CreateAsync sometimes takes longer (especially if we use Windows containers with 4 cpu).

Describe the solution you'd like I would like a method just like with the --no-wait, just immediately return (when possible, with the container group Id).

Describe alternatives you've considered Instead of using the fluent library, call the azure CLI to create the container.