1. Packages
  2. Azure Native
  3. API Docs
  4. scvmm
  5. AvailabilitySet
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.scvmm.AvailabilitySet

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    The AvailabilitySets resource definition. Azure REST API version: 2022-05-21-preview. Prior API version in Azure Native 1.x: 2020-06-05-preview.

    Other available API versions: 2023-04-01-preview, 2023-10-07.

    Example Usage

    CreateAvailabilitySet

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var availabilitySet = new AzureNative.ScVmm.AvailabilitySet("availabilitySet", new()
        {
            AvailabilitySetName = "hr-avset",
            ExtendedLocation = new AzureNative.ScVmm.Inputs.ExtendedLocationArgs
            {
                Name = "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
                Type = "customLocation",
            },
            Location = "East US",
            ResourceGroupName = "testrg",
            VmmServerId = "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/scvmm/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scvmm.NewAvailabilitySet(ctx, "availabilitySet", &scvmm.AvailabilitySetArgs{
    			AvailabilitySetName: pulumi.String("hr-avset"),
    			ExtendedLocation: &scvmm.ExtendedLocationArgs{
    				Name: pulumi.String("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso"),
    				Type: pulumi.String("customLocation"),
    			},
    			Location:          pulumi.String("East US"),
    			ResourceGroupName: pulumi.String("testrg"),
    			VmmServerId:       pulumi.String("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer"),
    		})
    		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.scvmm.AvailabilitySet;
    import com.pulumi.azurenative.scvmm.AvailabilitySetArgs;
    import com.pulumi.azurenative.scvmm.inputs.ExtendedLocationArgs;
    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("hr-avset")
                .extendedLocation(ExtendedLocationArgs.builder()
                    .name("/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso")
                    .type("customLocation")
                    .build())
                .location("East US")
                .resourceGroupName("testrg")
                .vmmServerId("/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    availability_set = azure_native.scvmm.AvailabilitySet("availabilitySet",
        availability_set_name="hr-avset",
        extended_location=azure_native.scvmm.ExtendedLocationArgs(
            name="/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
            type="customLocation",
        ),
        location="East US",
        resource_group_name="testrg",
        vmm_server_id="/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const availabilitySet = new azure_native.scvmm.AvailabilitySet("availabilitySet", {
        availabilitySetName: "hr-avset",
        extendedLocation: {
            name: "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso",
            type: "customLocation",
        },
        location: "East US",
        resourceGroupName: "testrg",
        vmmServerId: "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer",
    });
    
    resources:
      availabilitySet:
        type: azure-native:scvmm:AvailabilitySet
        properties:
          availabilitySetName: hr-avset
          extendedLocation:
            name: /subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.Arc/customLocations/contoso
            type: customLocation
          location: East US
          resourceGroupName: testrg
          vmmServerId: /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ScVmm/VMMServers/ContosoVMMServer
    

    Create AvailabilitySet Resource

    new AvailabilitySet(name: string, args: AvailabilitySetArgs, opts?: CustomResourceOptions);
    @overload
    def AvailabilitySet(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        availability_set_name: Optional[str] = None,
                        extended_location: Optional[ExtendedLocationArgs] = None,
                        location: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        vmm_server_id: Optional[str] = None)
    @overload
    def AvailabilitySet(resource_name: str,
                        args: AvailabilitySetArgs,
                        opts: Optional[ResourceOptions] = 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:scvmm:AvailabilitySet
    properties: # The arguments to resource properties.
    options: # 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.
    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.

    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

    The AvailabilitySet resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group.
    AvailabilitySetName string
    Name of the availability set.
    ExtendedLocation Pulumi.AzureNative.ScVmm.Inputs.ExtendedLocation
    The extended location.
    Location string
    Gets or sets the location.
    Tags Dictionary<string, string>
    Resource tags
    VmmServerId string
    ARM Id of the vmmServer resource in which this resource resides.
    ResourceGroupName string
    The name of the resource group.
    AvailabilitySetName string
    Name of the availability set.
    ExtendedLocation ExtendedLocationArgs
    The extended location.
    Location string
    Gets or sets the location.
    Tags map[string]string
    Resource tags
    VmmServerId string
    ARM Id of the vmmServer resource in which this resource resides.
    resourceGroupName String
    The name of the resource group.
    availabilitySetName String
    Name of the availability set.
    extendedLocation ExtendedLocation
    The extended location.
    location String
    Gets or sets the location.
    tags Map<String,String>
    Resource tags
    vmmServerId String
    ARM Id of the vmmServer resource in which this resource resides.
    resourceGroupName string
    The name of the resource group.
    availabilitySetName string
    Name of the availability set.
    extendedLocation ExtendedLocation
    The extended location.
    location string
    Gets or sets the location.
    tags {[key: string]: string}
    Resource tags
    vmmServerId string
    ARM Id of the vmmServer resource in which this resource resides.
    resource_group_name str
    The name of the resource group.
    availability_set_name str
    Name of the availability set.
    extended_location ExtendedLocationArgs
    The extended location.
    location str
    Gets or sets the location.
    tags Mapping[str, str]
    Resource tags
    vmm_server_id str
    ARM Id of the vmmServer resource in which this resource resides.
    resourceGroupName String
    The name of the resource group.
    availabilitySetName String
    Name of the availability set.
    extendedLocation Property Map
    The extended location.
    location String
    Gets or sets the location.
    tags Map<String>
    Resource tags
    vmmServerId String
    ARM Id of the vmmServer resource in which this resource resides.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    ProvisioningState string
    Gets or sets the provisioning state.
    SystemData Pulumi.AzureNative.ScVmm.Outputs.SystemDataResponse
    The system data.
    Type string
    Resource Type
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    ProvisioningState string
    Gets or sets the provisioning state.
    SystemData SystemDataResponse
    The system data.
    Type string
    Resource Type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    provisioningState String
    Gets or sets the provisioning state.
    systemData SystemDataResponse
    The system data.
    type String
    Resource Type
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource Name
    provisioningState string
    Gets or sets the provisioning state.
    systemData SystemDataResponse
    The system data.
    type string
    Resource Type
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource Name
    provisioning_state str
    Gets or sets the provisioning state.
    system_data SystemDataResponse
    The system data.
    type str
    Resource Type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    provisioningState String
    Gets or sets the provisioning state.
    systemData Property Map
    The system data.
    type String
    Resource Type

    Supporting Types

    ExtendedLocation, ExtendedLocationArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    ExtendedLocationResponse, ExtendedLocationResponseArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:scvmm:AvailabilitySet HRAvailabilitySet /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetName} 
    

    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 v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi