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

DevOpsPoolProperties Constructor

Definition

Initializes a new instance of DevOpsPoolProperties.

public DevOpsPoolProperties(int maximumConcurrency, Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsOrganizationProfile organizationProfile, Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsPoolAgentProfile agentProfile, Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsFabricProfile fabricProfile, string devCenterProjectResourceId);
new Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsPoolProperties : int * Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsOrganizationProfile * Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsPoolAgentProfile * Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsFabricProfile * string -> Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsPoolProperties
Public Sub New (maximumConcurrency As Integer, organizationProfile As DevOpsOrganizationProfile, agentProfile As DevOpsPoolAgentProfile, fabricProfile As DevOpsFabricProfile, devCenterProjectResourceId As String)

Parameters

maximumConcurrency
Int32

Defines how many resources can there be created at any given time.

organizationProfile
DevOpsOrganizationProfile

Defines the organization in which the pool will be used. Please note DevOpsOrganizationProfile is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DevOpsAzureOrganizationProfile and DevOpsGitHubOrganizationProfile.

agentProfile
DevOpsPoolAgentProfile

Defines how the machine will be handled once it executed a job. Please note DevOpsPoolAgentProfile is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DevOpsStateful and DevOpsStatelessAgentProfile.

fabricProfile
DevOpsFabricProfile

Defines the type of fabric the agent will run on. Please note DevOpsFabricProfile is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DevOpsVmssFabricProfile.

devCenterProjectResourceId
String

The resource id of the DevCenter Project the pool belongs to.

Exceptions

organizationProfile, agentProfile, fabricProfile or devCenterProjectResourceId is null.

Applies to