import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing Availability Set. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.compute.getAvailabilitySet({ * name: "tf-appsecuritygroup", * resourceGroupName: "my-resource-group", * }); * export const availabilitySetId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Compute` - 2024-03-01 */ export declare function getAvailabilitySet(args: GetAvailabilitySetArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAvailabilitySet. */ export interface GetAvailabilitySetArgs { /** * The name of the Availability Set. */ name: string; /** * The name of the resource group in which the Availability Set exists. */ resourceGroupName: string; } /** * A collection of values returned by getAvailabilitySet. */ export interface GetAvailabilitySetResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The supported Azure location where the Availability Set exists. */ readonly location: string; /** * Whether the availability set is managed or not. */ readonly managed: boolean; readonly name: string; /** * The number of fault domains that are used. */ readonly platformFaultDomainCount: string; /** * The number of update domains that are used. */ readonly platformUpdateDomainCount: string; readonly resourceGroupName: string; /** * A mapping of tags assigned to the resource. */ readonly tags: { [key: string]: string; }; } /** * Use this data source to access information about an existing Availability Set. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.compute.getAvailabilitySet({ * name: "tf-appsecuritygroup", * resourceGroupName: "my-resource-group", * }); * export const availabilitySetId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Compute` - 2024-03-01 */ export declare function getAvailabilitySetOutput(args: GetAvailabilitySetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAvailabilitySet. */ export interface GetAvailabilitySetOutputArgs { /** * The name of the Availability Set. */ name: pulumi.Input; /** * The name of the resource group in which the Availability Set exists. */ resourceGroupName: pulumi.Input; }