azure-native.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. API Version: 2019-06-01-preview.
Example Usage
AgentPools_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var agentPool = new AzureNative.ContainerRegistry.AgentPool("agentPool", new()
{
AgentPoolName = "myAgentPool",
Count = 1,
Location = "WESTUS",
Os = "Linux",
RegistryName = "myRegistry",
ResourceGroupName = "myResourceGroup",
Tags =
{
{ "key", "value" },
},
Tier = "S1",
});
});
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerregistry.NewAgentPool(ctx, "agentPool", &containerregistry.AgentPoolArgs{
AgentPoolName: pulumi.String("myAgentPool"),
Count: pulumi.Int(1),
Location: pulumi.String("WESTUS"),
Os: pulumi.String("Linux"),
RegistryName: pulumi.String("myRegistry"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
Tier: pulumi.String("S1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerregistry.AgentPool;
import com.pulumi.azurenative.containerregistry.AgentPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var agentPool = new AgentPool("agentPool", AgentPoolArgs.builder()
.agentPoolName("myAgentPool")
.count(1)
.location("WESTUS")
.os("Linux")
.registryName("myRegistry")
.resourceGroupName("myResourceGroup")
.tags(Map.of("key", "value"))
.tier("S1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
agent_pool = azure_native.containerregistry.AgentPool("agentPool",
agent_pool_name="myAgentPool",
count=1,
location="WESTUS",
os="Linux",
registry_name="myRegistry",
resource_group_name="myResourceGroup",
tags={
"key": "value",
},
tier="S1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const agentPool = new azure_native.containerregistry.AgentPool("agentPool", {
agentPoolName: "myAgentPool",
count: 1,
location: "WESTUS",
os: "Linux",
registryName: "myRegistry",
resourceGroupName: "myResourceGroup",
tags: {
key: "value",
},
tier: "S1",
});
resources:
agentPool:
type: azure-native:containerregistry:AgentPool
properties:
agentPoolName: myAgentPool
count: 1
location: WESTUS
os: Linux
registryName: myRegistry
resourceGroupName: myResourceGroup
tags:
key: value
tier: S1
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 string
- The unique name of the resource.
- args AgentPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args AgentPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
The AgentPool resource accepts the following input properties:
- Registry
Name string - The name of the container registry.
- Resource
Group stringName - The name of the resource group to which the container registry belongs.
- Agent
Pool stringName - The name of the agent pool.
- Count int
- The count of agent machine
- Location string
- 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 string - The name of the container registry.
- Resource
Group stringName - The name of the resource group to which the container registry belongs.
- Agent
Pool stringName - The name of the agent pool.
- Count int
- The count of agent machine
- Location string
- 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 String - The name of the container registry.
- resource
Group StringName - The name of the resource group to which the container registry belongs.
- agent
Pool StringName - The name of the agent pool.
- count Integer
- The count of agent machine
- location String
- 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 string - The name of the container registry.
- resource
Group stringName - The name of the resource group to which the container registry belongs.
- agent
Pool stringName - The name of the agent pool.
- count number
- The count of agent machine
- location string
- 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 str - The name of the container registry.
- resource_
group_ strname - The name of the resource group to which the container registry belongs.
- agent_
pool_ strname - The name of the agent pool.
- count int
- The count of agent machine
- location str
- 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 String - The name of the container registry.
- resource
Group StringName - The name of the resource group to which the container registry belongs.
- agent
Pool StringName - The name of the agent pool.
- count Number
- The count of agent machine
- location String
- 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/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0