ArmComputeModelFactory.AvailabilitySetData Method

Definition

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, int? platformUpdateDomainCount = default, int? platformFaultDomainCount = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData> virtualMachineResources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.InstanceViewStatus> statuses = default, Azure.ResourceManager.Compute.Models.ScheduledEventsPolicy scheduledEventsPolicy = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetMigrationInfo virtualMachineScaleSetMigrationInfo = default, Azure.Core.ResourceIdentifier proximityPlacementGroupId = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = default);
static member AvailabilitySetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Nullable<int> * Nullable<int> * seq<Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData> * seq<Azure.ResourceManager.Compute.Models.InstanceViewStatus> * Azure.ResourceManager.Compute.Models.ScheduledEventsPolicy * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetMigrationInfo * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Compute.Models.ComputeSku -> 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 platformUpdateDomainCount As Nullable(Of Integer) = Nothing, Optional platformFaultDomainCount As Nullable(Of Integer) = Nothing, Optional virtualMachineResources As IEnumerable(Of ComputeWriteableSubResourceData) = Nothing, Optional statuses As IEnumerable(Of InstanceViewStatus) = Nothing, Optional scheduledEventsPolicy As ScheduledEventsPolicy = Nothing, Optional virtualMachineScaleSetMigrationInfo As VirtualMachineScaleSetMigrationInfo = Nothing, Optional proximityPlacementGroupId As ResourceIdentifier = Nothing, Optional sku As ComputeSku = Nothing) As AvailabilitySetData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

platformUpdateDomainCount
Nullable<Int32>

Update Domain count.

platformFaultDomainCount
Nullable<Int32>

Fault Domain count.

virtualMachineResources
IEnumerable<ComputeWriteableSubResourceData>

A list of references to all virtual machines in the availability set.

statuses
IEnumerable<InstanceViewStatus>

The resource status information.

scheduledEventsPolicy
ScheduledEventsPolicy

Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.

virtualMachineScaleSetMigrationInfo
VirtualMachineScaleSetMigrationInfo

Describes the migration properties on the Availability Set.

proximityPlacementGroupId
ResourceIdentifier

Resource Id.

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'.

Returns

A new AvailabilitySetData instance for mocking.

Applies to