getAccount

Use this data source to access information about an existing Batch Account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.batch.BatchFunctions;
import com.pulumi.azure.batch.inputs.GetAccountArgs;
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) {
final var example = BatchFunctions.getAccount(GetAccountArgs.builder()
.name("testbatchaccount")
.resourceGroupName("test")
.build());
ctx.export("poolAllocationMode", example.applyValue(getAccountResult -> getAccountResult.poolAllocationMode()));
}
}

Return

A collection of values returned by getAccount.

Parameters

argument

A collection of arguments for invoking getAccount.


suspend fun getAccount(encryption: GetAccountEncryption? = null, name: String, resourceGroupName: String): GetAccountResult

Return

A collection of values returned by getAccount.

See also

Parameters

encryption

The encryption block that describes the Azure KeyVault key reference used to encrypt data for the Azure Batch account.

name

The name of the Batch account.

resourceGroupName

The Name of the Resource Group where this Batch account exists.


suspend fun getAccount(argument: suspend GetAccountPlainArgsBuilder.() -> Unit): GetAccountResult

Return

A collection of values returned by getAccount.

See also

Parameters

argument

Builder for com.pulumi.azure.batch.kotlin.inputs.GetAccountPlainArgs.