何时停止或删除 Azure 容器实例

When to stop OR delete Azure Container Instance

这是一个关于 ACI 的使用及其定价计算的一般建议的问题。

我检查了 MSFT link:ACI pricing 它表示根据内存和 CPU 消耗量收费。并且 MSFT 定价计算器中不提供针对我的方案的计算。

我做的一些背景研究,tf 我 stopped/de-allocated 我的 ACI,我不应该再被收费,但我读到很多教程实际上指导我们 create/delete 一个新的 ACI, start/stop 函数仅存在于 Azure CLI 中。

  1. Logic-app ACI 自定义连接器没有 start/stop 功能
  2. Azure PowerShell 没有 start/stop 个函数。

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

例如:

  1. 我可以使用 Azure 自动化 运行 这本书来调用 Azure CLI 来 stop/start 我的 ACI。
  2. 我可以使用逻辑应用程序 - ACI 自定义连接器 delete/create 新的 ACI。

停止 ACI 并重新启动会不会更快,以避免从 Docker 集线器中提取图像(或将图像保留在 Azure 容器注册表中)的带宽成本?而且它会比每次都配置一个新实例更快。

为什么 stop/start 函数在 Azure PowerShell 模块和逻辑应用自定义连接器中不可用?似乎这听起来像是一种更好的处理它们的方法。

here,我想说没有区别。停止的实例也不会产生任何费用。

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

然而,这也意味着重新启动已停止的实例并不会比从头开始创建更快。可能会在新主机上启动,因此也需要再次拉取映像。