You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines. <br><br> For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.
//CHANGE: public partial class AvailabilitySet : TrackedResource
public partial class AvailabilitySet : Resource
{
/// Initializes a new instance of AvailabilitySet.
/// Resource location.
/// is null.
public AvailabilitySet(string location) : base(location)
{
//CHANGE: remove
if (location == null)
{
throw new ArgumentNullException(nameof(location));
}
//CHANGE: end remove
VirtualMachines = new ChangeTrackingList<SubResource>();
Statuses = new ChangeTrackingList<InstanceViewStatus>();
}
/// <summary> Initializes a new instance of AvailabilitySet. </summary>
/// <param name="id"> Resource Id. </param>
/// <param name="name"> Resource name. </param>
/// <param name="type"> Resource type. </param>
/// <param name="location"> Resource location. </param>
/// <param name="tags"> Resource tags. </param>
/// <param name="sku"> 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'. </param>
/// <param name="platformUpdateDomainCount"> Update Domain count. </param>
/// <param name="platformFaultDomainCount"> Fault Domain count. </param>
/// <param name="virtualMachines"> A list of references to all virtual machines in the availability set. </param>
/// <param name="proximityPlacementGroup"> Specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01. </param>
/// <param name="statuses"> The resource status information. </param>
internal AvailabilitySet(string id, string name, string type, string location, IDictionary<string, string> tags, Sku sku, int? platformUpdateDomainCount, int? platformFaultDomainCount, IList<SubResource> virtualMachines, SubResource proximityPlacementGroup, IReadOnlyList<InstanceViewStatus> statuses) : base(id, name, type, location, tags)
{
Sku = sku;
PlatformUpdateDomainCount = platformUpdateDomainCount;
PlatformFaultDomainCount = platformFaultDomainCount;
VirtualMachines = virtualMachines;
ProximityPlacementGroup = proximityPlacementGroup;
Statuses = statuses;
}
/// <summary> 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'. </summary>
public Sku Sku { get; set; }
/// <summary> Update Domain count. </summary>
public int? PlatformUpdateDomainCount { get; set; }
/// <summary> Fault Domain count. </summary>
public int? PlatformFaultDomainCount { get; set; }
/// <summary> A list of references to all virtual machines in the availability set. </summary>
//CHANGE: public IList<ResourceIdentifier> VirtualMachines { get; }
public IList<SubResource> VirtualMachines { get; }
/// <summary> Specifies information about the proximity placement group that the availability set should be assigned to. <br><br>Minimum api-version: 2018-04-01. </summary>
//CHANGE: public ResourceIdentifier ProximityPlacementGroup { get; set; }
public SubResource ProximityPlacementGroup { get; set; }
/// <summary> The resource status information. </summary>
public IReadOnlyList<InstanceViewStatus> Statuses { get; }
}
}
The text was updated successfully, but these errors were encountered:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
//CHANGE: using Azure.ResourceManager.Core
namespace Azure.ResourceManager.Compute.Models
{
///
//CHANGE: public partial class AvailabilitySet : TrackedResource
public partial class AvailabilitySet : Resource
{
///
/// Resource location.
/// is null.
public AvailabilitySet(string location) : base(location)
{
//CHANGE: remove
if (location == null)
{
throw new ArgumentNullException(nameof(location));
}
//CHANGE: end remove
}
The text was updated successfully, but these errors were encountered: