4

This is a question on general advice on the usage of ACI and its pricing calculation.

I checked the MSFT link: ACI pricing It stated that it is charged based on memory and CPU consumptions. And the calculations for my scenario is not available in the MSFT pricing calculator.

Some background studies that i did, tf I stopped/de-allocated my ACI, I should no longer be charged, but I read that a lot of tutorials actually guided us to create/delete a NEW ACI, and the start/stop functions only exist in Azure CLI.

  1. Logic-app ACI custom connector does not have start/stop functions
  2. Azure PowerShell does not have start/stop functions.

Questions: If so, what is the difference between Stopping and Deleting ACI in terms of pricing and performance?

For example:

  1. I can use Azure automation run book to call Azure CLI to stop/start my ACI.
  2. I can use Logic app - ACI custom connector to delete/create a new ACI.

Wouldn't it be faster to just stop the ACI and start again, to avoid the bandwidth cost to pull the image from Docker hub (or keeping an image in Azure container registry)? And it will be faster rather than provisioning a new instance each time.

Why the stop/start functions are not available in the Azure PowerShell module, and logic app custom connector? Seems it sounds like a better an approach to handle them.

csamleong
  • 769
  • 1
  • 11
  • 24

1 Answers1

3

From here, I would say there is no difference. Also stopped instances should incur no cost.

When the containers are recycled, the resources are deallocated and billing stops for the container group.

This, however, also means that restarting a stopped instance will not really be faster than creating from scratch. Starting might happen on a new host, so pulling the image will need to happen again as well.

silent
  • 14,494
  • 4
  • 46
  • 86
  • Is the image always being pulled? I found the following info [here](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-faq#when-does-the-meter-start-running): _Container group duration is calculated from the time that we start to pull your first container's image **(for a new deployment)** or your container group is restarted (if already deployed), until the container group is stopped._ – Łukasz Sypniewski Nov 29 '20 at 15:03
  • 3
    From what I've found, restarting will not pull images. However, stopping then starting again will (equivalent to delete and recreating). – Philippe Sabourin Jan 11 '21 at 15:25