1. Packages
  2. Azure Native
  3. API Docs
  4. compute
  5. AvailabilitySet
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

azure-native.compute.AvailabilitySet

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

    Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Availability sets overview. For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure. Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set.

    Uses Azure REST API version 2024-11-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01.

    Other available API versions: 2022-08-01, 2022-11-01, 2023-03-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]. See the version guide for details.

    Example Usage

    Create an availability set with Scheduled Event Policy.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var availabilitySet = new AzureNative.Compute.AvailabilitySet("availabilitySet", new()
        {
            AvailabilitySetName = "myAvailabilitySet",
            Location = "westus",
            PlatformFaultDomainCount = 2,
            PlatformUpdateDomainCount = 20,
            ResourceGroupName = "myResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewAvailabilitySet(ctx, "availabilitySet", &compute.AvailabilitySetArgs{
    			AvailabilitySetName:       pulumi.String("myAvailabilitySet"),
    			Location:                  pulumi.String("westus"),
    			PlatformFaultDomainCount:  pulumi.Int(2),
    			PlatformUpdateDomainCount: pulumi.Int(20),
    			ResourceGroupName:         pulumi.String("myResourceGroup"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.compute.AvailabilitySet;
    import com.pulumi.azurenative.compute.AvailabilitySetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var availabilitySet = new AvailabilitySet("availabilitySet", AvailabilitySetArgs.builder()
                .availabilitySetName("myAvailabilitySet")
                .location("westus")
                .platformFaultDomainCount(2)
                .platformUpdateDomainCount(20)
                .resourceGroupName("myResourceGroup")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const availabilitySet = new azure_native.compute.AvailabilitySet("availabilitySet", {
        availabilitySetName: "myAvailabilitySet",
        location: "westus",
        platformFaultDomainCount: 2,
        platformUpdateDomainCount: 20,
        resourceGroupName: "myResourceGroup",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    availability_set = azure_native.compute.AvailabilitySet("availabilitySet",
        availability_set_name="myAvailabilitySet",
        location="westus",
        platform_fault_domain_count=2,
        platform_update_domain_count=20,
        resource_group_name="myResourceGroup")
    
    resources:
      availabilitySet:
        type: azure-native:compute:AvailabilitySet
        properties:
          availabilitySetName: myAvailabilitySet
          location: westus
          platformFaultDomainCount: 2
          platformUpdateDomainCount: 20
          resourceGroupName: myResourceGroup
    

    Create an availability set.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var availabilitySet = new AzureNative.Compute.AvailabilitySet("availabilitySet", new()
        {
            AvailabilitySetName = "myAvailabilitySet",
            Location = "westus",
            PlatformFaultDomainCount = 2,
            PlatformUpdateDomainCount = 20,
            ResourceGroupName = "myResourceGroup",
        });
    
    });
    
    package main
    
    import (
    	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.NewAvailabilitySet(ctx, "availabilitySet", &compute.AvailabilitySetArgs{
    			AvailabilitySetName:       pulumi.String("myAvailabilitySet"),
    			Location:                  pulumi.String("westus"),
    			PlatformFaultDomainCount:  pulumi.Int(2),
    			PlatformUpdateDomainCount: pulumi.Int(20),
    			ResourceGroupName:         pulumi.String("myResourceGroup"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.compute.AvailabilitySet;
    import com.pulumi.azurenative.compute.AvailabilitySetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var availabilitySet = new AvailabilitySet("availabilitySet", AvailabilitySetArgs.builder()
                .availabilitySetName("myAvailabilitySet")
                .location("westus")
                .platformFaultDomainCount(2)
                .platformUpdateDomainCount(20)
                .resourceGroupName("myResourceGroup")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const availabilitySet = new azure_native.compute.AvailabilitySet("availabilitySet", {
        availabilitySetName: "myAvailabilitySet",
        location: "westus",
        platformFaultDomainCount: 2,
        platformUpdateDomainCount: 20,
        resourceGroupName: "myResourceGroup",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    availability_set = azure_native.compute.AvailabilitySet("availabilitySet",
        availability_set_name="myAvailabilitySet",
        location="westus",
        platform_fault_domain_count=2,
        platform_update_domain_count=20,
        resource_group_name="myResourceGroup")
    
    resources:
      availabilitySet:
        type: azure-native:compute:AvailabilitySet
        properties:
          availabilitySetName: myAvailabilitySet
          location: westus
          platformFaultDomainCount: 2
          platformUpdateDomainCount: 20
          resourceGroupName: myResourceGroup
    

    Create AvailabilitySet Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AvailabilitySet(name: string, args: AvailabilitySetArgs, opts?: CustomResourceOptions);
    @overload
    def AvailabilitySet(resource_name: str,
                        args: AvailabilitySetArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AvailabilitySet(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        resource_group_name: Optional[str] = None,
                        availability_set_name: Optional[str] = None,
                        location: Optional[str] = None,
                        platform_fault_domain_count: Optional[int] = None,
                        platform_update_domain_count: Optional[int] = None,
                        proximity_placement_group: Optional[SubResourceArgs] = None,
                        scheduled_events_policy: Optional[ScheduledEventsPolicyArgs] = None,
                        sku: Optional[SkuArgs] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        virtual_machines: Optional[Sequence[SubResourceArgs]] = None)
    func NewAvailabilitySet(ctx *Context, name string, args AvailabilitySetArgs, opts ...ResourceOption) (*AvailabilitySet, error)
    public AvailabilitySet(string name, AvailabilitySetArgs args, CustomResourceOptions? opts = null)
    public AvailabilitySet(String name, AvailabilitySetArgs args)
    public AvailabilitySet(String name, AvailabilitySetArgs args, CustomResourceOptions options)
    
    type: azure-native:compute:AvailabilitySet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AvailabilitySetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AvailabilitySetArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AvailabilitySetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AvailabilitySetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AvailabilitySetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var availabilitySetResource = new AzureNative.Compute.AvailabilitySet("availabilitySetResource", new()
    {
        ResourceGroupName = "string",
        AvailabilitySetName = "string",
        Location = "string",
        PlatformFaultDomainCount = 0,
        PlatformUpdateDomainCount = 0,
        ProximityPlacementGroup = new AzureNative.Compute.Inputs.SubResourceArgs
        {
            Id = "string",
        },
        ScheduledEventsPolicy = new AzureNative.Compute.Inputs.ScheduledEventsPolicyArgs
        {
            ScheduledEventsAdditionalPublishingTargets = new AzureNative.Compute.Inputs.ScheduledEventsAdditionalPublishingTargetsArgs
            {
                EventGridAndResourceGraph = new AzureNative.Compute.Inputs.EventGridAndResourceGraphArgs
                {
                    Enable = false,
                },
            },
            UserInitiatedReboot = new AzureNative.Compute.Inputs.UserInitiatedRebootArgs
            {
                AutomaticallyApprove = false,
            },
            UserInitiatedRedeploy = new AzureNative.Compute.Inputs.UserInitiatedRedeployArgs
            {
                AutomaticallyApprove = false,
            },
        },
        Sku = new AzureNative.Compute.Inputs.SkuArgs
        {
            Capacity = 0,
            Name = "string",
            Tier = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
        VirtualMachines = new[]
        {
            new AzureNative.Compute.Inputs.SubResourceArgs
            {
                Id = "string",
            },
        },
    });
    
    example, err := compute.NewAvailabilitySet(ctx, "availabilitySetResource", &compute.AvailabilitySetArgs{
    	ResourceGroupName:         pulumi.String("string"),
    	AvailabilitySetName:       pulumi.String("string"),
    	Location:                  pulumi.String("string"),
    	PlatformFaultDomainCount:  pulumi.Int(0),
    	PlatformUpdateDomainCount: pulumi.Int(0),
    	ProximityPlacementGroup: &compute.SubResourceArgs{
    		Id: pulumi.String("string"),
    	},
    	ScheduledEventsPolicy: &compute.ScheduledEventsPolicyArgs{
    		ScheduledEventsAdditionalPublishingTargets: &compute.ScheduledEventsAdditionalPublishingTargetsArgs{
    			EventGridAndResourceGraph: &compute.EventGridAndResourceGraphArgs{
    				Enable: pulumi.Bool(false),
    			},
    		},
    		UserInitiatedReboot: &compute.UserInitiatedRebootArgs{
    			AutomaticallyApprove: pulumi.Bool(false),
    		},
    		UserInitiatedRedeploy: &compute.UserInitiatedRedeployArgs{
    			AutomaticallyApprove: pulumi.Bool(false),
    		},
    	},
    	Sku: &compute.SkuArgs{
    		Capacity: pulumi.Float64(0),
    		Name:     pulumi.String("string"),
    		Tier:     pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VirtualMachines: compute.SubResourceArray{
    		&compute.SubResourceArgs{
    			Id: pulumi.String("string"),
    		},
    	},
    })
    
    var availabilitySetResource = new com.pulumi.azurenative.compute.AvailabilitySet("availabilitySetResource", com.pulumi.azurenative.compute.AvailabilitySetArgs.builder()
        .resourceGroupName("string")
        .availabilitySetName("string")
        .location("string")
        .platformFaultDomainCount(0)
        .platformUpdateDomainCount(0)
        .proximityPlacementGroup(SubResourceArgs.builder()
            .id("string")
            .build())
        .scheduledEventsPolicy(ScheduledEventsPolicyArgs.builder()
            .scheduledEventsAdditionalPublishingTargets(ScheduledEventsAdditionalPublishingTargetsArgs.builder()
                .eventGridAndResourceGraph(EventGridAndResourceGraphArgs.builder()
                    .enable(false)
                    .build())
                .build())
            .userInitiatedReboot(UserInitiatedRebootArgs.builder()
                .automaticallyApprove(false)
                .build())
            .userInitiatedRedeploy(UserInitiatedRedeployArgs.builder()
                .automaticallyApprove(false)
                .build())
            .build())
        .sku(SkuArgs.builder()
            .capacity(0.0)
            .name("string")
            .tier("string")
            .build())
        .tags(Map.of("string", "string"))
        .virtualMachines(SubResourceArgs.builder()
            .id("string")
            .build())
        .build());
    
    availability_set_resource = azure_native.compute.AvailabilitySet("availabilitySetResource",
        resource_group_name="string",
        availability_set_name="string",
        location="string",
        platform_fault_domain_count=0,
        platform_update_domain_count=0,
        proximity_placement_group={
            "id": "string",
        },
        scheduled_events_policy={
            "scheduled_events_additional_publishing_targets": {
                "event_grid_and_resource_graph": {
                    "enable": False,
                },
            },
            "user_initiated_reboot": {
                "automatically_approve": False,
            },
            "user_initiated_redeploy": {
                "automatically_approve": False,
            },
        },
        sku={
            "capacity": 0,
            "name": "string",
            "tier": "string",
        },
        tags={
            "string": "string",
        },
        virtual_machines=[{
            "id": "string",
        }])
    
    const availabilitySetResource = new azure_native.compute.AvailabilitySet("availabilitySetResource", {
        resourceGroupName: "string",
        availabilitySetName: "string",
        location: "string",
        platformFaultDomainCount: 0,
        platformUpdateDomainCount: 0,
        proximityPlacementGroup: {
            id: "string",
        },
        scheduledEventsPolicy: {
            scheduledEventsAdditionalPublishingTargets: {
                eventGridAndResourceGraph: {
                    enable: false,
                },
            },
            userInitiatedReboot: {
                automaticallyApprove: false,
            },
            userInitiatedRedeploy: {
                automaticallyApprove: false,
            },
        },
        sku: {
            capacity: 0,
            name: "string",
            tier: "string",
        },
        tags: {
            string: "string",
        },
        virtualMachines: [{
            id: "string",
        }],
    });
    
    type: azure-native:compute:AvailabilitySet
    properties:
        availabilitySetName: string
        location: string
        platformFaultDomainCount: 0
        platformUpdateDomainCount: 0
        proximityPlacementGroup:
            id: string
        resourceGroupName: string
        scheduledEventsPolicy:
            scheduledEventsAdditionalPublishingTargets:
                eventGridAndResourceGraph:
                    enable: false
            userInitiatedReboot:
                automaticallyApprove: false
            userInitiatedRedeploy:
                automaticallyApprove: false
        sku:
            capacity: 0
            name: string
            tier: string
        tags:
            string: string
        virtualMachines:
            - id: string
    

    AvailabilitySet Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AvailabilitySet resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group.
    AvailabilitySetName string
    The name of the availability set.
    Location string
    Resource location
    PlatformFaultDomainCount int
    Fault Domain count.
    PlatformUpdateDomainCount int
    Update Domain count.
    ProximityPlacementGroup Pulumi.AzureNative.Compute.Inputs.SubResource
    Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
    ScheduledEventsPolicy Pulumi.AzureNative.Compute.Inputs.ScheduledEventsPolicy
    Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
    Sku Pulumi.AzureNative.Compute.Inputs.Sku
    Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
    Tags Dictionary<string, string>
    Resource tags
    VirtualMachines List<Pulumi.AzureNative.Compute.Inputs.SubResource>
    A list of references to all virtual machines in the availability set.
    ResourceGroupName string
    The name of the resource group.
    AvailabilitySetName string
    The name of the availability set.
    Location string
    Resource location
    PlatformFaultDomainCount int
    Fault Domain count.
    PlatformUpdateDomainCount int
    Update Domain count.
    ProximityPlacementGroup SubResourceArgs
    Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
    ScheduledEventsPolicy ScheduledEventsPolicyArgs
    Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
    Sku SkuArgs
    Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
    Tags map[string]string
    Resource tags
    VirtualMachines []SubResourceArgs
    A list of references to all virtual machines in the availability set.
    resourceGroupName String
    The name of the resource group.
    availabilitySetName String
    The name of the availability set.
    location String
    Resource location
    platformFaultDomainCount Integer
    Fault Domain count.
    platformUpdateDomainCount Integer
    Update Domain count.
    proximityPlacementGroup SubResource
    Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
    scheduledEventsPolicy ScheduledEventsPolicy
    Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
    sku Sku
    Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
    tags Map<String,String>
    Resource tags
    virtualMachines List<SubResource>
    A list of references to all virtual machines in the availability set.
    resourceGroupName string
    The name of the resource group.
    availabilitySetName string
    The name of the availability set.
    location string
    Resource location
    platformFaultDomainCount number
    Fault Domain count.
    platformUpdateDomainCount number
    Update Domain count.
    proximityPlacementGroup SubResource
    Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
    scheduledEventsPolicy ScheduledEventsPolicy
    Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
    sku Sku
    Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
    tags {[key: string]: string}
    Resource tags
    virtualMachines SubResource[]
    A list of references to all virtual machines in the availability set.
    resource_group_name str
    The name of the resource group.
    availability_set_name str
    The name of the availability set.
    location str
    Resource location
    platform_fault_domain_count int
    Fault Domain count.
    platform_update_domain_count int
    Update Domain count.
    proximity_placement_group SubResourceArgs
    Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
    scheduled_events_policy ScheduledEventsPolicyArgs
    Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
    sku SkuArgs
    Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
    tags Mapping[str, str]
    Resource tags
    virtual_machines Sequence[SubResourceArgs]
    A list of references to all virtual machines in the availability set.
    resourceGroupName String
    The name of the resource group.
    availabilitySetName String
    The name of the availability set.
    location String
    Resource location
    platformFaultDomainCount Number
    Fault Domain count.
    platformUpdateDomainCount Number
    Update Domain count.
    proximityPlacementGroup Property Map
    Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
    scheduledEventsPolicy Property Map
    Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
    sku Property Map
    Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
    tags Map<String>
    Resource tags
    virtualMachines List<Property Map>
    A list of references to all virtual machines in the availability set.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AvailabilitySet resource produces the following output properties:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    Statuses List<Pulumi.AzureNative.Compute.Outputs.InstanceViewStatusResponse>
    The resource status information.
    Type string
    Resource type
    VirtualMachineScaleSetMigrationInfo Pulumi.AzureNative.Compute.Outputs.VirtualMachineScaleSetMigrationInfoResponse
    Describes the migration properties on the Availability Set.
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    Statuses []InstanceViewStatusResponse
    The resource status information.
    Type string
    Resource type
    VirtualMachineScaleSetMigrationInfo VirtualMachineScaleSetMigrationInfoResponse
    Describes the migration properties on the Availability Set.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    statuses List<InstanceViewStatusResponse>
    The resource status information.
    type String
    Resource type
    virtualMachineScaleSetMigrationInfo VirtualMachineScaleSetMigrationInfoResponse
    Describes the migration properties on the Availability Set.
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name
    statuses InstanceViewStatusResponse[]
    The resource status information.
    type string
    Resource type
    virtualMachineScaleSetMigrationInfo VirtualMachineScaleSetMigrationInfoResponse
    Describes the migration properties on the Availability Set.
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name
    statuses Sequence[InstanceViewStatusResponse]
    The resource status information.
    type str
    Resource type
    virtual_machine_scale_set_migration_info VirtualMachineScaleSetMigrationInfoResponse
    Describes the migration properties on the Availability Set.
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    statuses List<Property Map>
    The resource status information.
    type String
    Resource type
    virtualMachineScaleSetMigrationInfo Property Map
    Describes the migration properties on the Availability Set.

    Supporting Types

    DefaultVirtualMachineScaleSetInfoResponse, DefaultVirtualMachineScaleSetInfoResponseArgs

    ConstrainedMaximumCapacity bool
    Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.
    DefaultVirtualMachineScaleSet Pulumi.AzureNative.Compute.Inputs.SubResourceResponse
    The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.
    ConstrainedMaximumCapacity bool
    Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.
    DefaultVirtualMachineScaleSet SubResourceResponse
    The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.
    constrainedMaximumCapacity Boolean
    Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.
    defaultVirtualMachineScaleSet SubResourceResponse
    The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.
    constrainedMaximumCapacity boolean
    Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.
    defaultVirtualMachineScaleSet SubResourceResponse
    The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.
    constrained_maximum_capacity bool
    Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.
    default_virtual_machine_scale_set SubResourceResponse
    The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.
    constrainedMaximumCapacity Boolean
    Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.
    defaultVirtualMachineScaleSet Property Map
    The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.

    EventGridAndResourceGraph, EventGridAndResourceGraphArgs

    Enable bool
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    Enable bool
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable Boolean
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable boolean
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable bool
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable Boolean
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.

    EventGridAndResourceGraphResponse, EventGridAndResourceGraphResponseArgs

    Enable bool
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    Enable bool
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable Boolean
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable boolean
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable bool
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
    enable Boolean
    Specifies if event grid and resource graph is enabled for Scheduled event related configurations.

    InstanceViewStatusResponse, InstanceViewStatusResponseArgs

    Code string
    The status code.
    DisplayStatus string
    The short localizable label for the status.
    Level string
    The level code.
    Message string
    The detailed status message, including for alerts and error messages.
    Time string
    The time of the status.
    Code string
    The status code.
    DisplayStatus string
    The short localizable label for the status.
    Level string
    The level code.
    Message string
    The detailed status message, including for alerts and error messages.
    Time string
    The time of the status.
    code String
    The status code.
    displayStatus String
    The short localizable label for the status.
    level String
    The level code.
    message String
    The detailed status message, including for alerts and error messages.
    time String
    The time of the status.
    code string
    The status code.
    displayStatus string
    The short localizable label for the status.
    level string
    The level code.
    message string
    The detailed status message, including for alerts and error messages.
    time string
    The time of the status.
    code str
    The status code.
    display_status str
    The short localizable label for the status.
    level str
    The level code.
    message str
    The detailed status message, including for alerts and error messages.
    time str
    The time of the status.
    code String
    The status code.
    displayStatus String
    The short localizable label for the status.
    level String
    The level code.
    message String
    The detailed status message, including for alerts and error messages.
    time String
    The time of the status.

    ScheduledEventsAdditionalPublishingTargets, ScheduledEventsAdditionalPublishingTargetsArgs

    EventGridAndResourceGraph Pulumi.AzureNative.Compute.Inputs.EventGridAndResourceGraph
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    EventGridAndResourceGraph EventGridAndResourceGraph
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    eventGridAndResourceGraph EventGridAndResourceGraph
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    eventGridAndResourceGraph EventGridAndResourceGraph
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    event_grid_and_resource_graph EventGridAndResourceGraph
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    eventGridAndResourceGraph Property Map
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.

    ScheduledEventsAdditionalPublishingTargetsResponse, ScheduledEventsAdditionalPublishingTargetsResponseArgs

    EventGridAndResourceGraph Pulumi.AzureNative.Compute.Inputs.EventGridAndResourceGraphResponse
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    EventGridAndResourceGraph EventGridAndResourceGraphResponse
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    eventGridAndResourceGraph EventGridAndResourceGraphResponse
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    eventGridAndResourceGraph EventGridAndResourceGraphResponse
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    event_grid_and_resource_graph EventGridAndResourceGraphResponse
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    eventGridAndResourceGraph Property Map
    The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.

    ScheduledEventsPolicy, ScheduledEventsPolicyArgs

    ScheduledEventsAdditionalPublishingTargets Pulumi.AzureNative.Compute.Inputs.ScheduledEventsAdditionalPublishingTargets
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    UserInitiatedReboot Pulumi.AzureNative.Compute.Inputs.UserInitiatedReboot
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    UserInitiatedRedeploy Pulumi.AzureNative.Compute.Inputs.UserInitiatedRedeploy
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    ScheduledEventsAdditionalPublishingTargets ScheduledEventsAdditionalPublishingTargets
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    UserInitiatedReboot UserInitiatedReboot
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    UserInitiatedRedeploy UserInitiatedRedeploy
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduledEventsAdditionalPublishingTargets ScheduledEventsAdditionalPublishingTargets
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    userInitiatedReboot UserInitiatedReboot
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    userInitiatedRedeploy UserInitiatedRedeploy
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduledEventsAdditionalPublishingTargets ScheduledEventsAdditionalPublishingTargets
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    userInitiatedReboot UserInitiatedReboot
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    userInitiatedRedeploy UserInitiatedRedeploy
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduled_events_additional_publishing_targets ScheduledEventsAdditionalPublishingTargets
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    user_initiated_reboot UserInitiatedReboot
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    user_initiated_redeploy UserInitiatedRedeploy
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduledEventsAdditionalPublishingTargets Property Map
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    userInitiatedReboot Property Map
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    userInitiatedRedeploy Property Map
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.

    ScheduledEventsPolicyResponse, ScheduledEventsPolicyResponseArgs

    ScheduledEventsAdditionalPublishingTargets Pulumi.AzureNative.Compute.Inputs.ScheduledEventsAdditionalPublishingTargetsResponse
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    UserInitiatedReboot Pulumi.AzureNative.Compute.Inputs.UserInitiatedRebootResponse
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    UserInitiatedRedeploy Pulumi.AzureNative.Compute.Inputs.UserInitiatedRedeployResponse
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    ScheduledEventsAdditionalPublishingTargets ScheduledEventsAdditionalPublishingTargetsResponse
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    UserInitiatedReboot UserInitiatedRebootResponse
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    UserInitiatedRedeploy UserInitiatedRedeployResponse
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduledEventsAdditionalPublishingTargets ScheduledEventsAdditionalPublishingTargetsResponse
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    userInitiatedReboot UserInitiatedRebootResponse
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    userInitiatedRedeploy UserInitiatedRedeployResponse
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduledEventsAdditionalPublishingTargets ScheduledEventsAdditionalPublishingTargetsResponse
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    userInitiatedReboot UserInitiatedRebootResponse
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    userInitiatedRedeploy UserInitiatedRedeployResponse
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduled_events_additional_publishing_targets ScheduledEventsAdditionalPublishingTargetsResponse
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    user_initiated_reboot UserInitiatedRebootResponse
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    user_initiated_redeploy UserInitiatedRedeployResponse
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
    scheduledEventsAdditionalPublishingTargets Property Map
    The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
    userInitiatedReboot Property Map
    The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
    userInitiatedRedeploy Property Map
    The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.

    Sku, SkuArgs

    Capacity double
    Specifies the number of virtual machines in the scale set.
    Name string
    The sku name.
    Tier string
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    Capacity float64
    Specifies the number of virtual machines in the scale set.
    Name string
    The sku name.
    Tier string
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity Double
    Specifies the number of virtual machines in the scale set.
    name String
    The sku name.
    tier String
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity number
    Specifies the number of virtual machines in the scale set.
    name string
    The sku name.
    tier string
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity float
    Specifies the number of virtual machines in the scale set.
    name str
    The sku name.
    tier str
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity Number
    Specifies the number of virtual machines in the scale set.
    name String
    The sku name.
    tier String
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic

    SkuResponse, SkuResponseArgs

    Capacity double
    Specifies the number of virtual machines in the scale set.
    Name string
    The sku name.
    Tier string
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    Capacity float64
    Specifies the number of virtual machines in the scale set.
    Name string
    The sku name.
    Tier string
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity Double
    Specifies the number of virtual machines in the scale set.
    name String
    The sku name.
    tier String
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity number
    Specifies the number of virtual machines in the scale set.
    name string
    The sku name.
    tier string
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity float
    Specifies the number of virtual machines in the scale set.
    name str
    The sku name.
    tier str
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic
    capacity Number
    Specifies the number of virtual machines in the scale set.
    name String
    The sku name.
    tier String
    Specifies the tier of virtual machines in a scale set. Possible Values: Standard Basic

    SubResource, SubResourceArgs

    Id string
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    Id string
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id String
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id string
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id str
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
    id String
    Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

    SubResourceResponse, SubResourceResponseArgs

    Id string
    Resource Id
    Id string
    Resource Id
    id String
    Resource Id
    id string
    Resource Id
    id str
    Resource Id
    id String
    Resource Id

    UserInitiatedReboot, UserInitiatedRebootArgs

    AutomaticallyApprove bool
    Specifies Reboot Scheduled Event related configurations.
    AutomaticallyApprove bool
    Specifies Reboot Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Reboot Scheduled Event related configurations.
    automaticallyApprove boolean
    Specifies Reboot Scheduled Event related configurations.
    automatically_approve bool
    Specifies Reboot Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Reboot Scheduled Event related configurations.

    UserInitiatedRebootResponse, UserInitiatedRebootResponseArgs

    AutomaticallyApprove bool
    Specifies Reboot Scheduled Event related configurations.
    AutomaticallyApprove bool
    Specifies Reboot Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Reboot Scheduled Event related configurations.
    automaticallyApprove boolean
    Specifies Reboot Scheduled Event related configurations.
    automatically_approve bool
    Specifies Reboot Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Reboot Scheduled Event related configurations.

    UserInitiatedRedeploy, UserInitiatedRedeployArgs

    AutomaticallyApprove bool
    Specifies Redeploy Scheduled Event related configurations.
    AutomaticallyApprove bool
    Specifies Redeploy Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Redeploy Scheduled Event related configurations.
    automaticallyApprove boolean
    Specifies Redeploy Scheduled Event related configurations.
    automatically_approve bool
    Specifies Redeploy Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Redeploy Scheduled Event related configurations.

    UserInitiatedRedeployResponse, UserInitiatedRedeployResponseArgs

    AutomaticallyApprove bool
    Specifies Redeploy Scheduled Event related configurations.
    AutomaticallyApprove bool
    Specifies Redeploy Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Redeploy Scheduled Event related configurations.
    automaticallyApprove boolean
    Specifies Redeploy Scheduled Event related configurations.
    automatically_approve bool
    Specifies Redeploy Scheduled Event related configurations.
    automaticallyApprove Boolean
    Specifies Redeploy Scheduled Event related configurations.

    VirtualMachineScaleSetMigrationInfoResponse, VirtualMachineScaleSetMigrationInfoResponseArgs

    DefaultVirtualMachineScaleSetInfo Pulumi.AzureNative.Compute.Inputs.DefaultVirtualMachineScaleSetInfoResponse
    Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
    MigrateToVirtualMachineScaleSet Pulumi.AzureNative.Compute.Inputs.SubResourceResponse
    Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.
    DefaultVirtualMachineScaleSetInfo DefaultVirtualMachineScaleSetInfoResponse
    Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
    MigrateToVirtualMachineScaleSet SubResourceResponse
    Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.
    defaultVirtualMachineScaleSetInfo DefaultVirtualMachineScaleSetInfoResponse
    Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
    migrateToVirtualMachineScaleSet SubResourceResponse
    Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.
    defaultVirtualMachineScaleSetInfo DefaultVirtualMachineScaleSetInfoResponse
    Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
    migrateToVirtualMachineScaleSet SubResourceResponse
    Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.
    default_virtual_machine_scale_set_info DefaultVirtualMachineScaleSetInfoResponse
    Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
    migrate_to_virtual_machine_scale_set SubResourceResponse
    Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.
    defaultVirtualMachineScaleSetInfo Property Map
    Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
    migrateToVirtualMachineScaleSet Property Map
    Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:compute:AvailabilitySet myAvailabilitySet /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi