Skip to content

Data Source: azurermBatchApplication

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

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermBatchApplicationExample =
  new azurerm.dataAzurermBatchApplication.DataAzurermBatchApplication(
    this,
    "example",
    {
      account_name: "testbatchaccount",
      name: "testapplication",
      resource_group_name: "test",
    }
  );
new cdktf.TerraformOutput(this, "batch_application_id", {
  value: dataAzurermBatchApplicationExample.id,
});

Argument Reference

  • name - The name of the Application.

  • resourceGroupName - The name of the Resource Group where this Batch account exists.

  • accountName - The name of the Batch account.

Attributes Reference

The following attributes are exported:

  • id - The Batch application ID.

  • name - The Batch application name.

  • allowUpdates - May packages within the application be overwritten using the same version string.

  • defaultVersion - The package to use if a client requests the application but does not specify a version.

  • displayName - The display name for the application.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Batch Application.