azure-native.scvmm.AvailabilitySet
Explore with Pulumi AI
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 (
scvmm "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
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,
extended_location: Optional[ExtendedLocationArgs] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vmm_server_id: Optional[str] = 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.
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 azure_nativeAvailabilitySetResource = new AzureNative.ScVmm.AvailabilitySet("azure-nativeAvailabilitySetResource", new()
{
ResourceGroupName = "string",
AvailabilitySetName = "string",
ExtendedLocation = new AzureNative.ScVmm.Inputs.ExtendedLocationArgs
{
Name = "string",
Type = "string",
},
Location = "string",
Tags =
{
{ "string", "string" },
},
VmmServerId = "string",
});
example, err := scvmm.NewAvailabilitySet(ctx, "azure-nativeAvailabilitySetResource", &scvmm.AvailabilitySetArgs{
ResourceGroupName: pulumi.String("string"),
AvailabilitySetName: pulumi.String("string"),
ExtendedLocation: &scvmm.ExtendedLocationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VmmServerId: pulumi.String("string"),
})
var azure_nativeAvailabilitySetResource = new AvailabilitySet("azure-nativeAvailabilitySetResource", AvailabilitySetArgs.builder()
.resourceGroupName("string")
.availabilitySetName("string")
.extendedLocation(ExtendedLocationArgs.builder()
.name("string")
.type("string")
.build())
.location("string")
.tags(Map.of("string", "string"))
.vmmServerId("string")
.build());
azure_native_availability_set_resource = azure_native.scvmm.AvailabilitySet("azure-nativeAvailabilitySetResource",
resource_group_name="string",
availability_set_name="string",
extended_location=azure_native.scvmm.ExtendedLocationArgs(
name="string",
type="string",
),
location="string",
tags={
"string": "string",
},
vmm_server_id="string")
const azure_nativeAvailabilitySetResource = new azure_native.scvmm.AvailabilitySet("azure-nativeAvailabilitySetResource", {
resourceGroupName: "string",
availabilitySetName: "string",
extendedLocation: {
name: "string",
type: "string",
},
location: "string",
tags: {
string: "string",
},
vmmServerId: "string",
});
type: azure-native:scvmm:AvailabilitySet
properties:
availabilitySetName: string
extendedLocation:
name: string
type: string
location: string
resourceGroupName: string
tags:
string: string
vmmServerId: 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
The AvailabilitySet resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Availability
Set stringName - Name of the availability set.
- Extended
Location Pulumi.Azure Native. Sc Vmm. Inputs. Extended Location - The extended location.
- Location string
- Gets or sets the location.
- Dictionary<string, string>
- Resource tags
- Vmm
Server stringId - ARM Id of the vmmServer resource in which this resource resides.
- Resource
Group stringName - The name of the resource group.
- Availability
Set stringName - Name of the availability set.
- Extended
Location ExtendedLocation Args - The extended location.
- Location string
- Gets or sets the location.
- map[string]string
- Resource tags
- Vmm
Server stringId - ARM Id of the vmmServer resource in which this resource resides.
- resource
Group StringName - The name of the resource group.
- availability
Set StringName - Name of the availability set.
- extended
Location ExtendedLocation - The extended location.
- location String
- Gets or sets the location.
- Map<String,String>
- Resource tags
- vmm
Server StringId - ARM Id of the vmmServer resource in which this resource resides.
- resource
Group stringName - The name of the resource group.
- availability
Set stringName - Name of the availability set.
- extended
Location ExtendedLocation - The extended location.
- location string
- Gets or sets the location.
- {[key: string]: string}
- Resource tags
- vmm
Server stringId - ARM Id of the vmmServer resource in which this resource resides.
- resource_
group_ strname - The name of the resource group.
- availability_
set_ strname - Name of the availability set.
- extended_
location ExtendedLocation Args - The extended location.
- location str
- Gets or sets the location.
- Mapping[str, str]
- Resource tags
- vmm_
server_ strid - ARM Id of the vmmServer resource in which this resource resides.
- resource
Group StringName - The name of the resource group.
- availability
Set StringName - Name of the availability set.
- extended
Location Property Map - The extended location.
- location String
- Gets or sets the location.
- Map<String>
- Resource tags
- vmm
Server StringId - 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
- Provisioning
State string - Gets or sets the provisioning state.
- System
Data Pulumi.Azure Native. Sc Vmm. Outputs. System Data Response - The system data.
- Type string
- Resource Type
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource Name
- Provisioning
State string - Gets or sets the provisioning state.
- System
Data SystemData Response - The system data.
- Type string
- Resource Type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource Name
- provisioning
State String - Gets or sets the provisioning state.
- system
Data SystemData Response - The system data.
- type String
- Resource Type
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource Name
- provisioning
State string - Gets or sets the provisioning state.
- system
Data SystemData Response - 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 SystemData Response - The system data.
- type str
- Resource Type
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource Name
- provisioning
State String - Gets or sets the provisioning state.
- system
Data Property Map - The system data.
- type String
- Resource Type
Supporting Types
ExtendedLocation, ExtendedLocationArgs
ExtendedLocationResponse, ExtendedLocationResponseArgs
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0