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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.compute.getAvailabilitySet
Explore with Pulumi AI
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Retrieves information about an availability set. Azure REST API version: 2023-03-01.
Other available API versions: 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01.
Using getAvailabilitySet
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAvailabilitySet(args: GetAvailabilitySetArgs, opts?: InvokeOptions): Promise<GetAvailabilitySetResult>
function getAvailabilitySetOutput(args: GetAvailabilitySetOutputArgs, opts?: InvokeOptions): Output<GetAvailabilitySetResult>def get_availability_set(availability_set_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAvailabilitySetResult
def get_availability_set_output(availability_set_name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetAvailabilitySetResult]func LookupAvailabilitySet(ctx *Context, args *LookupAvailabilitySetArgs, opts ...InvokeOption) (*LookupAvailabilitySetResult, error)
func LookupAvailabilitySetOutput(ctx *Context, args *LookupAvailabilitySetOutputArgs, opts ...InvokeOption) LookupAvailabilitySetResultOutput> Note: This function is named LookupAvailabilitySet in the Go SDK.
public static class GetAvailabilitySet 
{
    public static Task<GetAvailabilitySetResult> InvokeAsync(GetAvailabilitySetArgs args, InvokeOptions? opts = null)
    public static Output<GetAvailabilitySetResult> Invoke(GetAvailabilitySetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAvailabilitySetResult> getAvailabilitySet(GetAvailabilitySetArgs args, InvokeOptions options)
public static Output<GetAvailabilitySetResult> getAvailabilitySet(GetAvailabilitySetArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:compute:getAvailabilitySet
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AvailabilitySet stringName 
- The name of the availability set.
- ResourceGroup stringName 
- The name of the resource group.
- AvailabilitySet stringName 
- The name of the availability set.
- ResourceGroup stringName 
- The name of the resource group.
- availabilitySet StringName 
- The name of the availability set.
- resourceGroup StringName 
- The name of the resource group.
- availabilitySet stringName 
- The name of the availability set.
- resourceGroup stringName 
- The name of the resource group.
- availability_set_ strname 
- The name of the availability set.
- resource_group_ strname 
- The name of the resource group.
- availabilitySet StringName 
- The name of the availability set.
- resourceGroup StringName 
- The name of the resource group.
getAvailabilitySet Result
The following output properties are available:
- Id string
- Resource Id
- Location string
- Resource location
- Name string
- Resource name
- Statuses
List<Pulumi.Azure Native. Compute. Outputs. Instance View Status Response> 
- The resource status information.
- Type string
- Resource type
- PlatformFault intDomain Count 
- Fault Domain count.
- PlatformUpdate intDomain Count 
- Update Domain count.
- ProximityPlacement Pulumi.Group Azure Native. Compute. Outputs. Sub Resource Response 
- Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
- Sku
Pulumi.Azure Native. Compute. Outputs. Sku Response 
- 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'.
- Dictionary<string, string>
- Resource tags
- VirtualMachines List<Pulumi.Azure Native. Compute. Outputs. Sub Resource Response> 
- A list of references to all virtual machines in the availability set.
- Id string
- Resource Id
- Location string
- Resource location
- Name string
- Resource name
- Statuses
[]InstanceView Status Response 
- The resource status information.
- Type string
- Resource type
- PlatformFault intDomain Count 
- Fault Domain count.
- PlatformUpdate intDomain Count 
- Update Domain count.
- ProximityPlacement SubGroup Resource Response 
- Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
- Sku
SkuResponse 
- 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'.
- map[string]string
- Resource tags
- VirtualMachines []SubResource Response 
- A list of references to all virtual machines in the availability set.
- id String
- Resource Id
- location String
- Resource location
- name String
- Resource name
- statuses
List<InstanceView Status Response> 
- The resource status information.
- type String
- Resource type
- platformFault IntegerDomain Count 
- Fault Domain count.
- platformUpdate IntegerDomain Count 
- Update Domain count.
- proximityPlacement SubGroup Resource Response 
- Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
- sku
SkuResponse 
- 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'.
- Map<String,String>
- Resource tags
- virtualMachines List<SubResource Response> 
- A list of references to all virtual machines in the availability set.
- id string
- Resource Id
- location string
- Resource location
- name string
- Resource name
- statuses
InstanceView Status Response[] 
- The resource status information.
- type string
- Resource type
- platformFault numberDomain Count 
- Fault Domain count.
- platformUpdate numberDomain Count 
- Update Domain count.
- proximityPlacement SubGroup Resource Response 
- Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
- sku
SkuResponse 
- 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'.
- {[key: string]: string}
- Resource tags
- virtualMachines SubResource Response[] 
- A list of references to all virtual machines in the availability set.
- id str
- Resource Id
- location str
- Resource location
- name str
- Resource name
- statuses
Sequence[InstanceView Status Response] 
- The resource status information.
- type str
- Resource type
- platform_fault_ intdomain_ count 
- Fault Domain count.
- platform_update_ intdomain_ count 
- Update Domain count.
- proximity_placement_ Subgroup Resource Response 
- Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
- sku
SkuResponse 
- 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'.
- Mapping[str, str]
- Resource tags
- virtual_machines Sequence[SubResource Response] 
- A list of references to all virtual machines in the availability set.
- id String
- Resource Id
- location String
- Resource location
- name String
- Resource name
- statuses List<Property Map>
- The resource status information.
- type String
- Resource type
- platformFault NumberDomain Count 
- Fault Domain count.
- platformUpdate NumberDomain Count 
- Update Domain count.
- proximityPlacement Property MapGroup 
- Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
- 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'.
- Map<String>
- Resource tags
- virtualMachines List<Property Map>
- A list of references to all virtual machines in the availability set.
Supporting Types
InstanceViewStatusResponse   
- 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.
SkuResponse 
SubResourceResponse  
- Id string
- Resource Id
- Id string
- Resource Id
- id String
- Resource Id
- id string
- Resource Id
- id str
- Resource Id
- id String
- Resource Id
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.89.1 published on Sunday, Mar 2, 2025 by Pulumi