GetPool
Use this data source to access information about an existing Batch pool
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Batch.GetPool.InvokeAsync(new Azure.Batch.GetPoolArgs
{
AccountName = "testbatchaccount",
Name = "testbatchpool",
ResourceGroupName = "test",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/batch"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := batch.LookupPool(ctx, &batch.LookupPoolArgs{
AccountName: "testbatchaccount",
Name: "testbatchpool",
ResourceGroupName: "test",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.batch.get_pool(account_name="testbatchaccount",
name="testbatchpool",
resource_group_name="test")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.batch.getPool({
accountName: "testbatchaccount",
name: "testbatchpool",
resourceGroupName: "test",
}, { async: true }));Using GetPool
function getPool(args: GetPoolArgs, opts?: InvokeOptions): Promise<GetPoolResult>function get_pool(account_name=None, certificates=None, name=None, network_configuration=None, resource_group_name=None, start_task=None, opts=None)func LookupPool(ctx *Context, args *LookupPoolArgs, opts ...InvokeOption) (*LookupPoolResult, error)Note: This function is named
LookupPoolin the Go SDK.
public static class GetPool {
public static Task<GetPoolResult> InvokeAsync(GetPoolArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Account
Name string The name of the Batch account.
- Name string
The name of the endpoint.
- Resource
Group stringName - Certificates
List<Get
Pool Certificate Args> One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- Network
Configuration GetPool Network Configuration Args - Start
Task GetPool Start Task Args A
start_taskblock that describes the start task settings for the Batch pool.
- Account
Name string The name of the Batch account.
- Name string
The name of the endpoint.
- Resource
Group stringName - Certificates
[]Get
Pool Certificate One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- Network
Configuration GetPool Network Configuration - Start
Task GetPool Start Task A
start_taskblock that describes the start task settings for the Batch pool.
- account
Name string The name of the Batch account.
- name string
The name of the endpoint.
- resource
Group stringName - certificates
Get
Pool Certificate[] One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- network
Configuration GetPool Network Configuration - start
Task GetPool Start Task A
start_taskblock that describes the start task settings for the Batch pool.
- account_
name str The name of the Batch account.
- name str
The name of the endpoint.
- resource_
group_ strname - certificates
List[Get
Pool Certificate] One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- network_
configuration Dict[GetPool Network Configuration] - start_
task Dict[GetPool Start Task] A
start_taskblock that describes the start task settings for the Batch pool.
GetPool Result
The following output properties are available:
- Account
Name string The name of the Batch account.
- Auto
Scales List<GetPool Auto Scale> A
auto_scaleblock that describes the scale settings when using auto scale.- Container
Configurations List<GetPool Container Configuration> The container configuration used in the pool’s VMs.
- Display
Name string - Fixed
Scales List<GetPool Fixed Scale> A
fixed_scaleblock that describes the scale settings when using fixed scale.- Id string
The provider-assigned unique ID for this managed resource.
- Max
Tasks intPer Node The maximum number of tasks that can run concurrently on a single compute node in the pool.
- Metadata Dictionary<string, string>
- Name string
The name of the endpoint.
- Network
Configuration GetPool Network Configuration - Node
Agent stringSku Id The Sku of the node agents in the Batch pool.
- Resource
Group stringName - Storage
Image List<GetReferences Pool Storage Image Reference> The reference of the storage image used by the nodes in the Batch pool.
- Vm
Size string The size of the VM created in the Batch pool.
- Certificates
List<Get
Pool Certificate> One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- Start
Task GetPool Start Task A
start_taskblock that describes the start task settings for the Batch pool.
- Account
Name string The name of the Batch account.
- Auto
Scales []GetPool Auto Scale A
auto_scaleblock that describes the scale settings when using auto scale.- Container
Configurations []GetPool Container Configuration The container configuration used in the pool’s VMs.
- Display
Name string - Fixed
Scales []GetPool Fixed Scale A
fixed_scaleblock that describes the scale settings when using fixed scale.- Id string
The provider-assigned unique ID for this managed resource.
- Max
Tasks intPer Node The maximum number of tasks that can run concurrently on a single compute node in the pool.
- Metadata map[string]string
- Name string
The name of the endpoint.
- Network
Configuration GetPool Network Configuration - Node
Agent stringSku Id The Sku of the node agents in the Batch pool.
- Resource
Group stringName - Storage
Image []GetReferences Pool Storage Image Reference The reference of the storage image used by the nodes in the Batch pool.
- Vm
Size string The size of the VM created in the Batch pool.
- Certificates
[]Get
Pool Certificate One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- Start
Task GetPool Start Task A
start_taskblock that describes the start task settings for the Batch pool.
- account
Name string The name of the Batch account.
- auto
Scales GetPool Auto Scale[] A
auto_scaleblock that describes the scale settings when using auto scale.- container
Configurations GetPool Container Configuration[] The container configuration used in the pool’s VMs.
- display
Name string - fixed
Scales GetPool Fixed Scale[] A
fixed_scaleblock that describes the scale settings when using fixed scale.- id string
The provider-assigned unique ID for this managed resource.
- max
Tasks numberPer Node The maximum number of tasks that can run concurrently on a single compute node in the pool.
- metadata {[key: string]: string}
- name string
The name of the endpoint.
- network
Configuration GetPool Network Configuration - node
Agent stringSku Id The Sku of the node agents in the Batch pool.
- resource
Group stringName - storage
Image GetReferences Pool Storage Image Reference[] The reference of the storage image used by the nodes in the Batch pool.
- vm
Size string The size of the VM created in the Batch pool.
- certificates
Get
Pool Certificate[] One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- start
Task GetPool Start Task A
start_taskblock that describes the start task settings for the Batch pool.
- account_
name str The name of the Batch account.
- auto_
scales List[GetPool Auto Scale] A
auto_scaleblock that describes the scale settings when using auto scale.- container_
configurations List[GetPool Container Configuration] The container configuration used in the pool’s VMs.
- display_
name str - fixed_
scales List[GetPool Fixed Scale] A
fixed_scaleblock that describes the scale settings when using fixed scale.- id str
The provider-assigned unique ID for this managed resource.
- max_
tasks_ floatper_ node The maximum number of tasks that can run concurrently on a single compute node in the pool.
- metadata Dict[str, str]
- name str
The name of the endpoint.
- network_
configuration Dict[GetPool Network Configuration] - node_
agent_ strsku_ id The Sku of the node agents in the Batch pool.
- resource_
group_ strname - storage_
image_ List[Getreferences Pool Storage Image Reference] The reference of the storage image used by the nodes in the Batch pool.
- vm_
size str The size of the VM created in the Batch pool.
- certificates
List[Get
Pool Certificate] One or more
certificateblocks that describe the certificates installed on each compute node in the pool.- start_
task Dict[GetPool Start Task] A
start_taskblock that describes the start task settings for the Batch pool.
Supporting Types
GetPoolAutoScale
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Evaluation
Interval string The interval to wait before evaluating if the pool needs to be scaled.
- Formula string
The autoscale formula that needs to be used for scaling the Batch pool.
- Evaluation
Interval string The interval to wait before evaluating if the pool needs to be scaled.
- Formula string
The autoscale formula that needs to be used for scaling the Batch pool.
- evaluation
Interval string The interval to wait before evaluating if the pool needs to be scaled.
- formula string
The autoscale formula that needs to be used for scaling the Batch pool.
- evaluation
Interval str The interval to wait before evaluating if the pool needs to be scaled.
- formula str
The autoscale formula that needs to be used for scaling the Batch pool.
GetPoolCertificate
- Id string
The fully qualified ID of the certificate installed on the pool.
- Store
Location string The location of the certificate store on the compute node into which the certificate is installed, either
CurrentUserorLocalMachine.- Store
Name string The name of the certificate store on the compute node into which the certificate is installed.
- Visibilities List<string>
Which user accounts on the compute node have access to the private data of the certificate.
- Id string
The fully qualified ID of the certificate installed on the pool.
- Store
Location string The location of the certificate store on the compute node into which the certificate is installed, either
CurrentUserorLocalMachine.- Store
Name string The name of the certificate store on the compute node into which the certificate is installed.
- Visibilities []string
Which user accounts on the compute node have access to the private data of the certificate.
- id string
The fully qualified ID of the certificate installed on the pool.
- store
Location string The location of the certificate store on the compute node into which the certificate is installed, either
CurrentUserorLocalMachine.- store
Name string The name of the certificate store on the compute node into which the certificate is installed.
- visibilities string[]
Which user accounts on the compute node have access to the private data of the certificate.
- id str
The fully qualified ID of the certificate installed on the pool.
- store
Location str The location of the certificate store on the compute node into which the certificate is installed, either
CurrentUserorLocalMachine.- store
Name str The name of the certificate store on the compute node into which the certificate is installed.
- visibilities List[str]
Which user accounts on the compute node have access to the private data of the certificate.
GetPoolContainerConfiguration
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Container
Registries List<GetPool Container Configuration Container Registry Args> Additional container registries from which container images can be pulled by the pool’s VMs.
- Type string
The type of container configuration.
- Container
Registries []GetPool Container Configuration Container Registry Additional container registries from which container images can be pulled by the pool’s VMs.
- Type string
The type of container configuration.
- container
Registries GetPool Container Configuration Container Registry[] Additional container registries from which container images can be pulled by the pool’s VMs.
- type string
The type of container configuration.
- container
Registries List[GetPool Container Configuration Container Registry] Additional container registries from which container images can be pulled by the pool’s VMs.
- type str
The type of container configuration.
GetPoolContainerConfigurationContainerRegistry
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetPoolFixedScale
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Resize
Timeout string The timeout for resize operations.
- Target
Dedicated intNodes The number of nodes in the Batch pool.
- Target
Low intPriority Nodes The number of low priority nodes in the Batch pool.
- Resize
Timeout string The timeout for resize operations.
- Target
Dedicated intNodes The number of nodes in the Batch pool.
- Target
Low intPriority Nodes The number of low priority nodes in the Batch pool.
- resize
Timeout string The timeout for resize operations.
- target
Dedicated numberNodes The number of nodes in the Batch pool.
- target
Low numberPriority Nodes The number of low priority nodes in the Batch pool.
- resize
Timeout str The timeout for resize operations.
- target
Dedicated floatNodes The number of nodes in the Batch pool.
- target
Low floatPriority Nodes The number of low priority nodes in the Batch pool.
GetPoolNetworkConfiguration
- Endpoint
Configuration GetPool Network Configuration Endpoint Configuration Args The inbound NAT pools that are used to address specific ports on the individual compute node externally.
- Subnet
Id string The ARM resource identifier of the virtual network subnet which the compute nodes of the pool are joined too.
- Endpoint
Configuration GetPool Network Configuration Endpoint Configuration The inbound NAT pools that are used to address specific ports on the individual compute node externally.
- Subnet
Id string The ARM resource identifier of the virtual network subnet which the compute nodes of the pool are joined too.
- endpoint
Configuration GetPool Network Configuration Endpoint Configuration The inbound NAT pools that are used to address specific ports on the individual compute node externally.
- subnet
Id string The ARM resource identifier of the virtual network subnet which the compute nodes of the pool are joined too.
- endpoint
Configuration Dict[GetPool Network Configuration Endpoint Configuration] The inbound NAT pools that are used to address specific ports on the individual compute node externally.
- subnet_
id str The ARM resource identifier of the virtual network subnet which the compute nodes of the pool are joined too.
GetPoolNetworkConfigurationEndpointConfiguration
- Backend
Port int The port number on the compute node.
- Frontend
Port stringRange The range of external ports that are used to provide inbound access to the backendPort on the individual compute nodes in the format of
1000-1100.- Name string
The name of the endpoint.
- Network
Security List<GetGroup Rules Pool Network Configuration Endpoint Configuration Network Security Group Rule Args> The list of network security group rules that are applied to the endpoint.
- Protocol string
The protocol of the endpoint.
- Backend
Port int The port number on the compute node.
- Frontend
Port stringRange The range of external ports that are used to provide inbound access to the backendPort on the individual compute nodes in the format of
1000-1100.- Name string
The name of the endpoint.
- Network
Security []GetGroup Rules Pool Network Configuration Endpoint Configuration Network Security Group Rule The list of network security group rules that are applied to the endpoint.
- Protocol string
The protocol of the endpoint.
- backend
Port number The port number on the compute node.
- frontend
Port stringRange The range of external ports that are used to provide inbound access to the backendPort on the individual compute nodes in the format of
1000-1100.- name string
The name of the endpoint.
- network
Security GetGroup Rules Pool Network Configuration Endpoint Configuration Network Security Group Rule[] The list of network security group rules that are applied to the endpoint.
- protocol string
The protocol of the endpoint.
- backend_
port float The port number on the compute node.
- frontend
Port strRange The range of external ports that are used to provide inbound access to the backendPort on the individual compute nodes in the format of
1000-1100.- name str
The name of the endpoint.
- network
Security List[GetGroup Rules Pool Network Configuration Endpoint Configuration Network Security Group Rule] The list of network security group rules that are applied to the endpoint.
- protocol str
The protocol of the endpoint.
GetPoolNetworkConfigurationEndpointConfigurationNetworkSecurityGroupRule
GetPoolStartTask
- Command
Line string The command line executed by the start task.
- Resource
Files List<GetPool Start Task Resource File Args> One or more
resource_fileblocks that describe the files to be downloaded to a compute node.- User
Identities List<GetPool Start Task User Identity Args> A
user_identityblock that describes the user identity under which the start task runs.- Environment Dictionary<string, string>
A map of strings (key,value) that represents the environment variables to set in the start task.
- Max
Task intRetry Count The number of retry count.
- Wait
For boolSuccess A flag that indicates if the Batch pool should wait for the start task to be completed.
- Command
Line string The command line executed by the start task.
- Resource
Files []GetPool Start Task Resource File One or more
resource_fileblocks that describe the files to be downloaded to a compute node.- User
Identities []GetPool Start Task User Identity A
user_identityblock that describes the user identity under which the start task runs.- Environment map[string]string
A map of strings (key,value) that represents the environment variables to set in the start task.
- Max
Task intRetry Count The number of retry count.
- Wait
For boolSuccess A flag that indicates if the Batch pool should wait for the start task to be completed.
- command
Line string The command line executed by the start task.
- resource
Files GetPool Start Task Resource File[] One or more
resource_fileblocks that describe the files to be downloaded to a compute node.- user
Identities GetPool Start Task User Identity[] A
user_identityblock that describes the user identity under which the start task runs.- environment {[key: string]: string}
A map of strings (key,value) that represents the environment variables to set in the start task.
- max
Task numberRetry Count The number of retry count.
- wait
For booleanSuccess A flag that indicates if the Batch pool should wait for the start task to be completed.
- command
Line str The command line executed by the start task.
- resource
Files List[GetPool Start Task Resource File] One or more
resource_fileblocks that describe the files to be downloaded to a compute node.- user
Identities List[GetPool Start Task User Identity] A
user_identityblock that describes the user identity under which the start task runs.- environment Dict[str, str]
A map of strings (key,value) that represents the environment variables to set in the start task.
- max
Task floatRetry Count The number of retry count.
- wait
For boolSuccess A flag that indicates if the Batch pool should wait for the start task to be completed.
GetPoolStartTaskResourceFile
- Auto
Storage stringContainer Name The storage container name in the auto storage account.
- Blob
Prefix string The blob prefix used when downloading blobs from an Azure Storage container.
- File
Mode string The file permission mode attribute represented as a string in octal format (e.g.
"0644").- File
Path string The location on the compute node to which to download the file, relative to the task’s working directory. If the
http_urlproperty is specified, thefile_pathis required and describes the path which the file will be downloaded to, including the filename. Otherwise, if theauto_storage_container_nameorstorage_container_urlproperty is specified.- Http
Url string The URL of the file to download. If the URL is Azure Blob Storage, it must be readable using anonymous access.
- Storage
Container stringUrl The URL of the blob container within Azure Blob Storage.
- Auto
Storage stringContainer Name The storage container name in the auto storage account.
- Blob
Prefix string The blob prefix used when downloading blobs from an Azure Storage container.
- File
Mode string The file permission mode attribute represented as a string in octal format (e.g.
"0644").- File
Path string The location on the compute node to which to download the file, relative to the task’s working directory. If the
http_urlproperty is specified, thefile_pathis required and describes the path which the file will be downloaded to, including the filename. Otherwise, if theauto_storage_container_nameorstorage_container_urlproperty is specified.- Http
Url string The URL of the file to download. If the URL is Azure Blob Storage, it must be readable using anonymous access.
- Storage
Container stringUrl The URL of the blob container within Azure Blob Storage.
- auto
Storage stringContainer Name The storage container name in the auto storage account.
- blob
Prefix string The blob prefix used when downloading blobs from an Azure Storage container.
- file
Mode string The file permission mode attribute represented as a string in octal format (e.g.
"0644").- file
Path string The location on the compute node to which to download the file, relative to the task’s working directory. If the
http_urlproperty is specified, thefile_pathis required and describes the path which the file will be downloaded to, including the filename. Otherwise, if theauto_storage_container_nameorstorage_container_urlproperty is specified.- http
Url string The URL of the file to download. If the URL is Azure Blob Storage, it must be readable using anonymous access.
- storage
Container stringUrl The URL of the blob container within Azure Blob Storage.
- auto
Storage strContainer Name The storage container name in the auto storage account.
- blob
Prefix str The blob prefix used when downloading blobs from an Azure Storage container.
- file
Mode str The file permission mode attribute represented as a string in octal format (e.g.
"0644").- file_
path str The location on the compute node to which to download the file, relative to the task’s working directory. If the
http_urlproperty is specified, thefile_pathis required and describes the path which the file will be downloaded to, including the filename. Otherwise, if theauto_storage_container_nameorstorage_container_urlproperty is specified.- http
Url str The URL of the file to download. If the URL is Azure Blob Storage, it must be readable using anonymous access.
- storage
Container strUrl The URL of the blob container within Azure Blob Storage.
GetPoolStartTaskUserIdentity
- Auto
Users List<GetPool Start Task User Identity Auto User Args> A
auto_userblock that describes the user identity under which the start task runs.- User
Name string The user name to log into the registry server.
- Auto
Users []GetPool Start Task User Identity Auto User A
auto_userblock that describes the user identity under which the start task runs.- User
Name string The user name to log into the registry server.
- auto
Users GetPool Start Task User Identity Auto User[] A
auto_userblock that describes the user identity under which the start task runs.- user
Name string The user name to log into the registry server.
- auto
Users List[GetPool Start Task User Identity Auto User] A
auto_userblock that describes the user identity under which the start task runs.- user
Name str The user name to log into the registry server.
GetPoolStartTaskUserIdentityAutoUser
- Elevation
Level string The elevation level of the user identity under which the start task runs.
- Scope string
The scope of the user identity under which the start task runs.
- Elevation
Level string The elevation level of the user identity under which the start task runs.
- Scope string
The scope of the user identity under which the start task runs.
- elevation
Level string The elevation level of the user identity under which the start task runs.
- scope string
The scope of the user identity under which the start task runs.
- elevation
Level str The elevation level of the user identity under which the start task runs.
- scope str
The scope of the user identity under which the start task runs.
GetPoolStorageImageReference
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.