Data Source: azurermAvailabilitySet
Use this data source to access information about an existing Availability Set.
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 dataAzurermAvailabilitySetExample =
new azurerm.dataAzurermAvailabilitySet.DataAzurermAvailabilitySet(
this,
"example",
{
name: "tf-appsecuritygroup",
resource_group_name: "my-resource-group",
}
);
new cdktf.TerraformOutput(this, "availability_set_id", {
value: dataAzurermAvailabilitySetExample.id,
});
Argument Reference
The following arguments are supported:
-
name
- The name of the Availability Set. -
resourceGroupName
- The name of the resource group in which the Availability Set exists.
Attributes Reference
The following attributes are exported:
-
id
- The ID of the Availability Set. -
location
- The supported Azure location where the Availability Set exists. -
managed
- Whether the availability set is managed or not. -
platformFaultDomainCount
- The number of fault domains that are used. -
platformUpdateDomainCount
- The number of update domains that are used. -
tags
- A mapping of tags assigned to the resource.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Availability Set.