azure-native-v2.containerregistry.AgentPool
Explore with Pulumi AI
The agentpool that has the ARM resource and properties. The agentpool will have all information to create an agent pool. Azure REST API version: 2019-06-01-preview. Prior API version in Azure Native 1.x: 2019-06-01-preview.
Create AgentPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgentPool(name: string, args: AgentPoolArgs, opts?: CustomResourceOptions);
@overload
def AgentPool(resource_name: str,
args: AgentPoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AgentPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
registry_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
agent_pool_name: Optional[str] = None,
count: Optional[int] = None,
location: Optional[str] = None,
os: Optional[Union[str, OS]] = None,
tags: Optional[Mapping[str, str]] = None,
tier: Optional[str] = None,
virtual_network_subnet_resource_id: Optional[str] = None)
func NewAgentPool(ctx *Context, name string, args AgentPoolArgs, opts ...ResourceOption) (*AgentPool, error)
public AgentPool(string name, AgentPoolArgs args, CustomResourceOptions? opts = null)
public AgentPool(String name, AgentPoolArgs args)
public AgentPool(String name, AgentPoolArgs args, CustomResourceOptions options)
type: azure-native:containerregistry:AgentPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AgentPoolArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. AgentPoolArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AgentPoolArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AgentPoolArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. AgentPoolArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var agentPoolResource = new AzureNative.Containerregistry.AgentPool("agentPoolResource", new()
{
RegistryName = "string",
ResourceGroupName = "string",
AgentPoolName = "string",
Count = 0,
Location = "string",
Os = "string",
Tags =
{
{ "string", "string" },
},
Tier = "string",
VirtualNetworkSubnetResourceId = "string",
});
example, err := containerregistry.NewAgentPool(ctx, "agentPoolResource", &containerregistry.AgentPoolArgs{
RegistryName: "string",
ResourceGroupName: "string",
AgentPoolName: "string",
Count: 0,
Location: "string",
Os: "string",
Tags: map[string]interface{}{
"string": "string",
},
Tier: "string",
VirtualNetworkSubnetResourceId: "string",
})
var agentPoolResource = new AgentPool("agentPoolResource", AgentPoolArgs.builder()
.registryName("string")
.resourceGroupName("string")
.agentPoolName("string")
.count(0)
.location("string")
.os("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tier("string")
.virtualNetworkSubnetResourceId("string")
.build());
agent_pool_resource = azure_native.containerregistry.AgentPool("agentPoolResource",
registry_name=string,
resource_group_name=string,
agent_pool_name=string,
count=0,
location=string,
os=string,
tags={
string: string,
},
tier=string,
virtual_network_subnet_resource_id=string)
const agentPoolResource = new azure_native.containerregistry.AgentPool("agentPoolResource", {
registryName: "string",
resourceGroupName: "string",
agentPoolName: "string",
count: 0,
location: "string",
os: "string",
tags: {
string: "string",
},
tier: "string",
virtualNetworkSubnetResourceId: "string",
});
type: azure-native:containerregistry:AgentPool
properties:
agentPoolName: string
count: 0
location: string
os: string
registryName: string
resourceGroupName: string
tags:
string: string
tier: string
virtualNetworkSubnetResourceId: string
AgentPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AgentPool resource accepts the following input properties:
- Registry
Name This property is required. Changes to this property will trigger replacement.
- The name of the container registry.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group to which the container registry belongs.
- Agent
Pool Name Changes to this property will trigger replacement.
- The name of the agent pool.
- Count int
- The count of agent machine
- Location
Changes to this property will trigger replacement.
- The location of the resource. This cannot be changed after the resource is created.
- Os
string | Pulumi.
Azure Native. Container Registry. OS - The OS of agent machine
- Dictionary<string, string>
- The tags of the resource.
- Tier string
- The Tier of agent machine
- Virtual
Network stringSubnet Resource Id - The Virtual Network Subnet Resource Id of the agent machine
- Registry
Name This property is required. Changes to this property will trigger replacement.
- The name of the container registry.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group to which the container registry belongs.
- Agent
Pool Name Changes to this property will trigger replacement.
- The name of the agent pool.
- Count int
- The count of agent machine
- Location
Changes to this property will trigger replacement.
- The location of the resource. This cannot be changed after the resource is created.
- Os string | OS
- The OS of agent machine
- map[string]string
- The tags of the resource.
- Tier string
- The Tier of agent machine
- Virtual
Network stringSubnet Resource Id - The Virtual Network Subnet Resource Id of the agent machine
- registry
Name This property is required. Changes to this property will trigger replacement.
- The name of the container registry.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group to which the container registry belongs.
- agent
Pool Name Changes to this property will trigger replacement.
- The name of the agent pool.
- count Integer
- The count of agent machine
- location
Changes to this property will trigger replacement.
- The location of the resource. This cannot be changed after the resource is created.
- os String | OS
- The OS of agent machine
- Map<String,String>
- The tags of the resource.
- tier String
- The Tier of agent machine
- virtual
Network StringSubnet Resource Id - The Virtual Network Subnet Resource Id of the agent machine
- registry
Name This property is required. Changes to this property will trigger replacement.
- The name of the container registry.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group to which the container registry belongs.
- agent
Pool Name Changes to this property will trigger replacement.
- The name of the agent pool.
- count number
- The count of agent machine
- location
Changes to this property will trigger replacement.
- The location of the resource. This cannot be changed after the resource is created.
- os string | OS
- The OS of agent machine
- {[key: string]: string}
- The tags of the resource.
- tier string
- The Tier of agent machine
- virtual
Network stringSubnet Resource Id - The Virtual Network Subnet Resource Id of the agent machine
- registry_
name This property is required. Changes to this property will trigger replacement.
- The name of the container registry.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group to which the container registry belongs.
- agent_
pool_ name Changes to this property will trigger replacement.
- The name of the agent pool.
- count int
- The count of agent machine
- location
Changes to this property will trigger replacement.
- The location of the resource. This cannot be changed after the resource is created.
- os str | OS
- The OS of agent machine
- Mapping[str, str]
- The tags of the resource.
- tier str
- The Tier of agent machine
- virtual_
network_ strsubnet_ resource_ id - The Virtual Network Subnet Resource Id of the agent machine
- registry
Name This property is required. Changes to this property will trigger replacement.
- The name of the container registry.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group to which the container registry belongs.
- agent
Pool Name Changes to this property will trigger replacement.
- The name of the agent pool.
- count Number
- The count of agent machine
- location
Changes to this property will trigger replacement.
- The location of the resource. This cannot be changed after the resource is created.
- os String | "Windows" | "Linux"
- The OS of agent machine
- Map<String>
- The tags of the resource.
- tier String
- The Tier of agent machine
- virtual
Network StringSubnet Resource Id - The Virtual Network Subnet Resource Id of the agent machine
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentPool resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of this agent pool
- System
Data Pulumi.Azure Native. Container Registry. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of this agent pool
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning state of this agent pool
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource.
- provisioning
State string - The provisioning state of this agent pool
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type string
- The type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource.
- provisioning_
state str - The provisioning state of this agent pool
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type str
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning state of this agent pool
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource.
Supporting Types
OS, OSArgs
- Windows
- Windows
- Linux
- Linux
- OSWindows
- Windows
- OSLinux
- Linux
- Windows
- Windows
- Linux
- Linux
- Windows
- Windows
- Linux
- Linux
- WINDOWS
- Windows
- LINUX
- Linux
- "Windows"
- Windows
- "Linux"
- Linux
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource modification (UTC).
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource modification (UTC).
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource modification (UTC).
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource modification (UTC).
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:containerregistry:AgentPool myAgentPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0