ArmComputeModelFactory.AvailabilitySetData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of AvailabilitySetData.
public static Azure.ResourceManager.Compute.AvailabilitySetData AvailabilitySetData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = default, int? platformUpdateDomainCount = default, int? platformFaultDomainCount = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> virtualMachines = default, Azure.Core.ResourceIdentifier proximityPlacementGroupId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.InstanceViewStatus> statuses = default, Azure.ResourceManager.Compute.Models.ScheduledEventsPolicy scheduledEventsPolicy = default);
static member AvailabilitySetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Compute.Models.ComputeSku * Nullable<int> * Nullable<int> * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Compute.Models.InstanceViewStatus> * Azure.ResourceManager.Compute.Models.ScheduledEventsPolicy -> Azure.ResourceManager.Compute.AvailabilitySetData
Public Shared Function AvailabilitySetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional sku As ComputeSku = Nothing, Optional platformUpdateDomainCount As Nullable(Of Integer) = Nothing, Optional platformFaultDomainCount As Nullable(Of Integer) = Nothing, Optional virtualMachines As IEnumerable(Of WritableSubResource) = Nothing, Optional proximityPlacementGroupId As ResourceIdentifier = Nothing, Optional statuses As IEnumerable(Of InstanceViewStatus) = Nothing, Optional scheduledEventsPolicy As ScheduledEventsPolicy = Nothing) As AvailabilitySetData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- sku
- ComputeSku
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'.
- virtualMachines
- IEnumerable<WritableSubResource>
A list of references to all virtual machines in the availability set.
- proximityPlacementGroupId
- ResourceIdentifier
Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.
- statuses
- IEnumerable<InstanceViewStatus>
The resource status information.
- scheduledEventsPolicy
- ScheduledEventsPolicy
Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
Returns
A new AvailabilitySetData instance for mocking.
Applies to
Azure SDK for .NET