azure logo
Azure Classic v5.43.0, May 6 23

azure.batch.Account

Explore with Pulumi AI

Manages an Azure Batch account.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleBatch_accountAccount = new Azure.Batch.Account("exampleBatch/accountAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        PoolAllocationMode = "BatchService",
        StorageAccountId = exampleAccount.Id,
        StorageAccountAuthenticationMode = "StorageKeys",
        Tags = 
        {
            { "env", "test" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/batch"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		_, err = batch.NewAccount(ctx, "exampleBatch/accountAccount", &batch.AccountArgs{
			ResourceGroupName:                exampleResourceGroup.Name,
			Location:                         exampleResourceGroup.Location,
			PoolAllocationMode:               pulumi.String("BatchService"),
			StorageAccountId:                 exampleAccount.ID(),
			StorageAccountAuthenticationMode: pulumi.String("StorageKeys"),
			Tags: pulumi.StringMap{
				"env": pulumi.String("test"),
			},
		})
		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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.batch.Account;
import com.pulumi.azure.batch.AccountArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());

        var exampleBatch_accountAccount = new Account("exampleBatch/accountAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .poolAllocationMode("BatchService")
            .storageAccountId(exampleAccount.id())
            .storageAccountAuthenticationMode("StorageKeys")
            .tags(Map.of("env", "test"))
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_batch_account_account = azure.batch.Account("exampleBatch/accountAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    pool_allocation_mode="BatchService",
    storage_account_id=example_account.id,
    storage_account_authentication_mode="StorageKeys",
    tags={
        "env": "test",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleBatch_accountAccount = new azure.batch.Account("exampleBatch/accountAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    poolAllocationMode: "BatchService",
    storageAccountId: exampleAccount.id,
    storageAccountAuthenticationMode: "StorageKeys",
    tags: {
        env: "test",
    },
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleAccount:
    type: azure:storage:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleBatch/accountAccount:
    type: azure:batch:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      poolAllocationMode: BatchService
      storageAccountId: ${exampleAccount.id}
      storageAccountAuthenticationMode: StorageKeys
      tags:
        env: test

Create Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            allowed_authentication_modes: Optional[Sequence[str]] = None,
            encryption: Optional[AccountEncryptionArgs] = None,
            identity: Optional[AccountIdentityArgs] = None,
            key_vault_reference: Optional[AccountKeyVaultReferenceArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            pool_allocation_mode: Optional[str] = None,
            public_network_access_enabled: Optional[bool] = None,
            resource_group_name: Optional[str] = None,
            storage_account_authentication_mode: Optional[str] = None,
            storage_account_id: Optional[str] = None,
            storage_account_node_identity: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
@overload
def Account(resource_name: str,
            args: AccountArgs,
            opts: Optional[ResourceOptions] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: azure:batch:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AccountArgs
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 AccountArgs
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 AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Account 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 Account resource accepts the following input properties:

ResourceGroupName string

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

AllowedAuthenticationModes List<string>

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

Encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

Identity AccountIdentityArgs

An identity block as defined below.

KeyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

PoolAllocationMode string

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

PublicNetworkAccessEnabled bool

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

StorageAccountAuthenticationMode string

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

StorageAccountId string

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

StorageAccountNodeIdentity string

Specifies the user assigned identity for the storage account.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

ResourceGroupName string

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

AllowedAuthenticationModes []string

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

Encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

Identity AccountIdentityArgs

An identity block as defined below.

KeyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

PoolAllocationMode string

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

PublicNetworkAccessEnabled bool

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

StorageAccountAuthenticationMode string

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

StorageAccountId string

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

StorageAccountNodeIdentity string

Specifies the user assigned identity for the storage account.

Tags map[string]string

A mapping of tags to assign to the resource.

resourceGroupName String

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

allowedAuthenticationModes List<String>

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity AccountIdentityArgs

An identity block as defined below.

keyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

poolAllocationMode String

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

publicNetworkAccessEnabled Boolean

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

storageAccountAuthenticationMode String

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storageAccountId String

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storageAccountNodeIdentity String

Specifies the user assigned identity for the storage account.

tags Map<String,String>

A mapping of tags to assign to the resource.

resourceGroupName string

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

allowedAuthenticationModes string[]

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity AccountIdentityArgs

An identity block as defined below.

keyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

poolAllocationMode string

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

publicNetworkAccessEnabled boolean

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

storageAccountAuthenticationMode string

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storageAccountId string

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storageAccountNodeIdentity string

Specifies the user assigned identity for the storage account.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

resource_group_name str

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

allowed_authentication_modes Sequence[str]

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity AccountIdentityArgs

An identity block as defined below.

key_vault_reference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

pool_allocation_mode str

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

public_network_access_enabled bool

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

storage_account_authentication_mode str

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storage_account_id str

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storage_account_node_identity str

Specifies the user assigned identity for the storage account.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

resourceGroupName String

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

allowedAuthenticationModes List<String>

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption Property Map

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity Property Map

An identity block as defined below.

keyVaultReference Property Map

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

poolAllocationMode String

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

publicNetworkAccessEnabled Boolean

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

storageAccountAuthenticationMode String

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storageAccountId String

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storageAccountNodeIdentity String

Specifies the user assigned identity for the storage account.

tags Map<String>

A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

AccountEndpoint string

The account endpoint used to interact with the Batch service.

Id string

The provider-assigned unique ID for this managed resource.

PrimaryAccessKey string

The Batch account primary access key.

SecondaryAccessKey string

The Batch account secondary access key.

AccountEndpoint string

The account endpoint used to interact with the Batch service.

Id string

The provider-assigned unique ID for this managed resource.

PrimaryAccessKey string

The Batch account primary access key.

SecondaryAccessKey string

The Batch account secondary access key.

accountEndpoint String

The account endpoint used to interact with the Batch service.

id String

The provider-assigned unique ID for this managed resource.

primaryAccessKey String

The Batch account primary access key.

secondaryAccessKey String

The Batch account secondary access key.

accountEndpoint string

The account endpoint used to interact with the Batch service.

id string

The provider-assigned unique ID for this managed resource.

primaryAccessKey string

The Batch account primary access key.

secondaryAccessKey string

The Batch account secondary access key.

account_endpoint str

The account endpoint used to interact with the Batch service.

id str

The provider-assigned unique ID for this managed resource.

primary_access_key str

The Batch account primary access key.

secondary_access_key str

The Batch account secondary access key.

accountEndpoint String

The account endpoint used to interact with the Batch service.

id String

The provider-assigned unique ID for this managed resource.

primaryAccessKey String

The Batch account primary access key.

secondaryAccessKey String

The Batch account secondary access key.

Look up Existing Account Resource

Get an existing Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_endpoint: Optional[str] = None,
        allowed_authentication_modes: Optional[Sequence[str]] = None,
        encryption: Optional[AccountEncryptionArgs] = None,
        identity: Optional[AccountIdentityArgs] = None,
        key_vault_reference: Optional[AccountKeyVaultReferenceArgs] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        pool_allocation_mode: Optional[str] = None,
        primary_access_key: Optional[str] = None,
        public_network_access_enabled: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        secondary_access_key: Optional[str] = None,
        storage_account_authentication_mode: Optional[str] = None,
        storage_account_id: Optional[str] = None,
        storage_account_node_identity: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountEndpoint string

The account endpoint used to interact with the Batch service.

AllowedAuthenticationModes List<string>

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

Encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

Identity AccountIdentityArgs

An identity block as defined below.

KeyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

PoolAllocationMode string

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

PrimaryAccessKey string

The Batch account primary access key.

PublicNetworkAccessEnabled bool

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

SecondaryAccessKey string

The Batch account secondary access key.

StorageAccountAuthenticationMode string

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

StorageAccountId string

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

StorageAccountNodeIdentity string

Specifies the user assigned identity for the storage account.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

AccountEndpoint string

The account endpoint used to interact with the Batch service.

AllowedAuthenticationModes []string

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

Encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

Identity AccountIdentityArgs

An identity block as defined below.

KeyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

Location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Name string

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

PoolAllocationMode string

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

PrimaryAccessKey string

The Batch account primary access key.

PublicNetworkAccessEnabled bool

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

SecondaryAccessKey string

The Batch account secondary access key.

StorageAccountAuthenticationMode string

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

StorageAccountId string

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

StorageAccountNodeIdentity string

Specifies the user assigned identity for the storage account.

Tags map[string]string

A mapping of tags to assign to the resource.

accountEndpoint String

The account endpoint used to interact with the Batch service.

allowedAuthenticationModes List<String>

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity AccountIdentityArgs

An identity block as defined below.

keyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

poolAllocationMode String

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

primaryAccessKey String

The Batch account primary access key.

publicNetworkAccessEnabled Boolean

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

secondaryAccessKey String

The Batch account secondary access key.

storageAccountAuthenticationMode String

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storageAccountId String

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storageAccountNodeIdentity String

Specifies the user assigned identity for the storage account.

tags Map<String,String>

A mapping of tags to assign to the resource.

accountEndpoint string

The account endpoint used to interact with the Batch service.

allowedAuthenticationModes string[]

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity AccountIdentityArgs

An identity block as defined below.

keyVaultReference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location string

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name string

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

poolAllocationMode string

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

primaryAccessKey string

The Batch account primary access key.

publicNetworkAccessEnabled boolean

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

secondaryAccessKey string

The Batch account secondary access key.

storageAccountAuthenticationMode string

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storageAccountId string

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storageAccountNodeIdentity string

Specifies the user assigned identity for the storage account.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

account_endpoint str

The account endpoint used to interact with the Batch service.

allowed_authentication_modes Sequence[str]

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption AccountEncryptionArgs

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity AccountIdentityArgs

An identity block as defined below.

key_vault_reference AccountKeyVaultReferenceArgs

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location str

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name str

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

pool_allocation_mode str

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

primary_access_key str

The Batch account primary access key.

public_network_access_enabled bool

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

secondary_access_key str

The Batch account secondary access key.

storage_account_authentication_mode str

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storage_account_id str

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storage_account_node_identity str

Specifies the user assigned identity for the storage account.

tags Mapping[str, str]

A mapping of tags to assign to the resource.

accountEndpoint String

The account endpoint used to interact with the Batch service.

allowedAuthenticationModes List<String>

Specifies the allowed authentication mode for the Batch account. Possible values include AAD, SharedKey or TaskAuthenticationToken.

encryption Property Map

Specifies if customer managed key encryption should be used to encrypt batch account data.

identity Property Map

An identity block as defined below.

keyVaultReference Property Map

A key_vault_reference block, as defined below, that describes the Azure KeyVault reference to use when deploying the Azure Batch account using the UserSubscription pool allocation mode.

location String

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name String

Specifies the name of the Batch account. Only lowercase Alphanumeric characters allowed. Changing this forces a new resource to be created.

poolAllocationMode String

Specifies the mode to use for pool allocation. Possible values are BatchService or UserSubscription. Defaults to BatchService.

primaryAccessKey String

The Batch account primary access key.

publicNetworkAccessEnabled Boolean

Whether public network access is allowed for this server. Defaults to true. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

secondaryAccessKey String

The Batch account secondary access key.

storageAccountAuthenticationMode String

Specifies the storage account authentication mode. Possible values include StorageKeys, BatchAccountManagedIdentity.

storageAccountId String

Specifies the storage account to use for the Batch account. If not specified, Azure Batch will manage the storage.

storageAccountNodeIdentity String

Specifies the user assigned identity for the storage account.

tags Map<String>

A mapping of tags to assign to the resource.

Supporting Types

AccountEncryption

KeyVaultKeyId string

The Azure key vault reference id with version that should be used to encrypt data, as documented here. Key rotation is not yet supported.

KeyVaultKeyId string

The Azure key vault reference id with version that should be used to encrypt data, as documented here. Key rotation is not yet supported.

keyVaultKeyId String

The Azure key vault reference id with version that should be used to encrypt data, as documented here. Key rotation is not yet supported.

keyVaultKeyId string

The Azure key vault reference id with version that should be used to encrypt data, as documented here. Key rotation is not yet supported.

key_vault_key_id str

The Azure key vault reference id with version that should be used to encrypt data, as documented here. Key rotation is not yet supported.

keyVaultKeyId String

The Azure key vault reference id with version that should be used to encrypt data, as documented here. Key rotation is not yet supported.

AccountIdentity

Type string

Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

IdentityIds List<string>

A list of User Assigned Managed Identity IDs to be assigned to this Batch Account.

PrincipalId string

The Principal ID associated with this Managed Service Identity.

TenantId string

The Tenant ID associated with this Managed Service Identity.

Type string

Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

IdentityIds []string

A list of User Assigned Managed Identity IDs to be assigned to this Batch Account.

PrincipalId string

The Principal ID associated with this Managed Service Identity.

TenantId string

The Tenant ID associated with this Managed Service Identity.

type String

Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identityIds List<String>

A list of User Assigned Managed Identity IDs to be assigned to this Batch Account.

principalId String

The Principal ID associated with this Managed Service Identity.

tenantId String

The Tenant ID associated with this Managed Service Identity.

type string

Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identityIds string[]

A list of User Assigned Managed Identity IDs to be assigned to this Batch Account.

principalId string

The Principal ID associated with this Managed Service Identity.

tenantId string

The Tenant ID associated with this Managed Service Identity.

type str

Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identity_ids Sequence[str]

A list of User Assigned Managed Identity IDs to be assigned to this Batch Account.

principal_id str

The Principal ID associated with this Managed Service Identity.

tenant_id str

The Tenant ID associated with this Managed Service Identity.

type String

Specifies the type of Managed Service Identity that should be configured on this Batch Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).

identityIds List<String>

A list of User Assigned Managed Identity IDs to be assigned to this Batch Account.

principalId String

The Principal ID associated with this Managed Service Identity.

tenantId String

The Tenant ID associated with this Managed Service Identity.

AccountKeyVaultReference

Id string

The Azure identifier of the Azure KeyVault to use.

Url string

The HTTPS URL of the Azure KeyVault to use.

Id string

The Azure identifier of the Azure KeyVault to use.

Url string

The HTTPS URL of the Azure KeyVault to use.

id String

The Azure identifier of the Azure KeyVault to use.

url String

The HTTPS URL of the Azure KeyVault to use.

id string

The Azure identifier of the Azure KeyVault to use.

url string

The HTTPS URL of the Azure KeyVault to use.

id str

The Azure identifier of the Azure KeyVault to use.

url str

The HTTPS URL of the Azure KeyVault to use.

id String

The Azure identifier of the Azure KeyVault to use.

url String

The HTTPS URL of the Azure KeyVault to use.

Import

Batch Account can be imported using the resource id, e.g.

 $ pulumi import azure:batch/account:Account example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Batch/batchAccounts/account1

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.