简体   繁体   English

IContainerGroup.State 属性的可能值是什么? 将 azure sdk 用于 azure 中的容器组

[英]what are the possible values for IContainerGroup.State property? using azure sdk for container groups in azure

I am using azure SDK for management and I have the following code.我正在使用 azure SDK 进行管理,我有以下代码。 I am wondering what are the possible values for IContainerGroup.State ?我想知道IContainerGroup.State的可能值是什么? I am using the code below and so far i can find two values "Running" and "Succeeded" I am looking for other possible values which the documentation does not provide.我正在使用下面的代码,到目前为止我可以找到两个值"Running""Succeeded"我正在寻找文档未提供的其他可能值。

containerGroup = azure.ContainerGroups.GetByResourceGroup(rgName, aciName);
console.log($"Container State Is: { containerGroup.State }");

thanks!谢谢!

There can be 5 possible values for containerGroup.State : containerGroup.State可以有 5 个可能的值:

  • Running: The container group is running and will continue to try to run until a user action or a stop caused by the restart policy occurs. Running:容器组正在运行,并将继续尝试运行,直到出现用户操作或重启策略导致的停止。

  • Stopped: The container group has been stopped and will not be scheduled to run without user action.停止:容器组已停止,如果没有用户操作,将不会安排运行。

  • Pending: The container group is waiting to initialize (finish running init containers, mount Azure file volumes if applicable). Pending:容器组正在等待初始化(完成运行 init 容器,挂载 Azure 个文件卷(如果适用))。 The container continues to attempt to get to the Running state unless a user action (stop/delete) happens.除非发生用户操作(停止/删除),否则容器会继续尝试进入Running state。

  • Succeeded: The container group has run to completion successfully.成功:容器组已成功运行完成。 Only applicable for Never and On Failure restart policies.仅适用于NeverOn Failure重启策略。

  • Failed: The container group failed to run to completion.失败:容器组未能运行完成。 Only applicable with a Never restart policy.仅适用于永不重启策略。 This state indicates either an infrastructure failure (example: incorrect Azure file share credentials) or user application failure (example: application references an environment variable that does not exist).此 state 表示基础架构故障(示例:不正确的 Azure 文件共享凭据)或用户应用程序故障(示例:应用程序引用不存在的环境变量)。

The following table shows what states are applicable to a container group based on the designated restart policy:下表显示了根据指定的重启策略适用于容器组的状态: 在此处输入图像描述

For more information please check here .欲了解更多信息,请查看此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用 @azure/arm-containerinstance 创建容器组 - Cannot create container groups using @azure/arm-containerinstance 如何在启动时从 Azure Docker 容器发出 CLI 命令(或使用 Azure SDK) - How to issue a CLI command (or make use of Azure SDK) from an Azure Docker Container at startup 是否可以从 Azure Python SDK 获取 ASC 位置? - Is it possible to get the ASC location from the Azure Python SDK? 如何登录Azure中的容器? - How to log into container in Azure? Azure 存储 Python sdk - get_container_access_policy 不工作 - Azure Storage Python sdk - get_container_access_policy Not Working 获取订阅下的所有容器注册表 - .NET Azure sdk - Get all container registries under a subscription - .NET Azure sdk 使用 Azure Python SDK 启用 VM Insights(在 Azure 中) - Enable VM Insights (in Azure) using Azure Python SDK 使用 go azure sdk 处理禁用的 azure 密钥保管库机密? - Handling a disabled azure key vault secret using go azure sdk? Azure DevOps 不更新 Container Registry on Azure - Azure DevOps does not updates Container Registry on Azure 如何使用 python SDK 将 Azure ML 计算实例分配给用户 - How to assign a Azure ML compute instance to a user using python SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM