语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmDevOpsInfrastructureModelFactory.DevOpsStateful Method

Definition

Stateful profile meaning that the machines will be returned to the pool after running a job.

public static Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsStateful DevOpsStateful(Azure.ResourceManager.DevOpsInfrastructure.Models.ResourcePredictions resourcePredictions = default, Azure.ResourceManager.DevOpsInfrastructure.Models.ResourcePredictionsProfile resourcePredictionsProfile = default, string maxAgentLifetime = default, string gracePeriodTimeSpan = default);
static member DevOpsStateful : Azure.ResourceManager.DevOpsInfrastructure.Models.ResourcePredictions * Azure.ResourceManager.DevOpsInfrastructure.Models.ResourcePredictionsProfile * string * string -> Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsStateful
Public Shared Function DevOpsStateful (Optional resourcePredictions As ResourcePredictions = Nothing, Optional resourcePredictionsProfile As ResourcePredictionsProfile = Nothing, Optional maxAgentLifetime As String = Nothing, Optional gracePeriodTimeSpan As String = Nothing) As DevOpsStateful

Parameters

resourcePredictions
ResourcePredictions

Defines pool buffer/stand-by agents.

resourcePredictionsProfile
ResourcePredictionsProfile

Defines how the pool buffer/stand-by agents is provided.

maxAgentLifetime
String

How long should stateful machines be kept around. The maximum is one week.

gracePeriodTimeSpan
String

How long should the machine be kept around after it ran a workload when there are no stand-by agents. The maximum is one week.

Returns

A new DevOpsStateful instance for mocking.

Applies to