DevOpsPoolProperties Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET