Data Source: azurermAutomationAccount
Use this data source to access information about an existing Automation Account.
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 dataAzurermAutomationAccountExample =
new azurerm.dataAzurermAutomationAccount.DataAzurermAutomationAccount(
this,
"example",
{
name: "example-account",
resource_group_name: "example-resources",
}
);
new cdktf.TerraformOutput(this, "automation_account_id", {
value: dataAzurermAutomationAccountExample.id,
});
Argument Reference
-
name- The name of the Automation Account. -
resourceGroupName- Specifies the name of the Resource Group where the Automation Account exists.
Attributes Reference
-
id- The ID of the Automation Account -
primaryKey- The Primary Access Key for the Automation Account. -
secondaryKey- The Secondary Access Key for the Automation Account. -
identity- (Optional) Anidentityblock as defined below. -
endpoint- The Endpoint for this Automation Account. -
hybridServiceUrl- The URL of automation hybrid service which is used for hybrid worker on-boarding With this Automation Account.
An identity block exports the following:
-
type- The type of Managed Service Identity that is configured on this Automation Account. -
principalId- The Principal ID of the System Assigned Managed Service Identity that is configured on this Automation Account. -
tenantId- The Tenant ID of the System Assigned Managed Service Identity that is configured on this Automation Account. -
identityIds- The list of User Assigned Managed Identity IDs assigned to this Automation Account.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
read- (Defaults to 5 minutes) Used when retrieving the Automation Account.