import * as pulumi from "@pulumi/pulumi"; /** * Manages an Availability Set for Virtual Machines. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAvailabilitySet = new azure.compute.AvailabilitySet("example", { * name: "example-aset", * location: example.location, * resourceGroupName: example.name, * tags: { * environment: "Production", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Compute` - 2024-03-01 * * ## Import * * Availability Sets can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:compute/availabilitySet:AvailabilitySet group1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/availabilitySets/webAvailSet * ``` */ export declare class AvailabilitySet extends pulumi.CustomResource { /** * Get an existing AvailabilitySet resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AvailabilitySetState, opts?: pulumi.CustomResourceOptions): AvailabilitySet; /** * Returns true if the given object is an instance of AvailabilitySet. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AvailabilitySet; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies whether the availability set is managed or not. Possible values are `true` (to specify aligned) or `false` (to specify classic). Default is `true`. Changing this forces a new resource to be created. */ readonly managed: pulumi.Output; /** * Specifies the name of the availability set. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the number of fault domains that are used. Defaults to `3`. Changing this forces a new resource to be created. * * > **Note:** The number of Fault Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ readonly platformFaultDomainCount: pulumi.Output; /** * Specifies the number of update domains that are used. Defaults to `5`. Changing this forces a new resource to be created. * * > **Note:** The number of Update Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ readonly platformUpdateDomainCount: pulumi.Output; /** * The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created. */ readonly proximityPlacementGroupId: pulumi.Output; /** * The name of the resource group in which to create the availability set. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a AvailabilitySet resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AvailabilitySetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AvailabilitySet resources. */ export interface AvailabilitySetState { /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies whether the availability set is managed or not. Possible values are `true` (to specify aligned) or `false` (to specify classic). Default is `true`. Changing this forces a new resource to be created. */ managed?: pulumi.Input; /** * Specifies the name of the availability set. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the number of fault domains that are used. Defaults to `3`. Changing this forces a new resource to be created. * * > **Note:** The number of Fault Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ platformFaultDomainCount?: pulumi.Input; /** * Specifies the number of update domains that are used. Defaults to `5`. Changing this forces a new resource to be created. * * > **Note:** The number of Update Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ platformUpdateDomainCount?: pulumi.Input; /** * The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created. */ proximityPlacementGroupId?: pulumi.Input; /** * The name of the resource group in which to create the availability set. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a AvailabilitySet resource. */ export interface AvailabilitySetArgs { /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies whether the availability set is managed or not. Possible values are `true` (to specify aligned) or `false` (to specify classic). Default is `true`. Changing this forces a new resource to be created. */ managed?: pulumi.Input; /** * Specifies the name of the availability set. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the number of fault domains that are used. Defaults to `3`. Changing this forces a new resource to be created. * * > **Note:** The number of Fault Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ platformFaultDomainCount?: pulumi.Input; /** * Specifies the number of update domains that are used. Defaults to `5`. Changing this forces a new resource to be created. * * > **Note:** The number of Update Domains varies depending on which Azure Region you're using. More information about update and fault domains and how they work can be found [here](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview). */ platformUpdateDomainCount?: pulumi.Input; /** * The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created. */ proximityPlacementGroupId?: pulumi.Input; /** * The name of the resource group in which to create the availability set. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }