Sdílet prostřednictvím


VirtualMachineResourceNames Class

Definition

The resource names object for virtual machine and related resources.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter))]
public class VirtualMachineResourceNames : Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter))>]
type VirtualMachineResourceNames = class
    interface IVirtualMachineResourceNames
    interface IJsonSerializable
Public Class VirtualMachineResourceNames
Implements IVirtualMachineResourceNames
Inheritance
VirtualMachineResourceNames
Attributes
Implements

Constructors

VirtualMachineResourceNames()

Creates an new VirtualMachineResourceNames instance.

Properties

DataDiskName

The full resource names for virtual machine data disks. This is a dictionary containing list of names of data disks per volume. Currently supported volumes for database layer are ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os', 'backup']. For application and cs layers, only 'default' volume is supported

HostName

The full name for virtual-machine's host (computer name). Currently, ACSS only supports host names which are less than or equal to 13 characters long. If this value is not provided, vmName will be used as host name.

NetworkInterface

The list of network interface name objects for the selected virtual machine. Currently, only one network interface is supported per virtual machine.

OSDiskName

The full name for OS disk attached to the VM. If this value is not provided, it will be named by ARM as per its default naming standards (prefixed with vm name). There is only one OS disk attached per Virtual Machine.

VMName

The full name for virtual machine. The length of this field can be upto 64 characters. If name is not provided, service uses a default name based on the deployment type. For SingleServer, default name is {SID}vm. In case of HA-AvZone systems, default name will be {SID}{app/ascs/db}z{a/b}vm with an incrementor at the end in case of more than 1 vm per layer. For distributed and HA-AvSet systems, default name will be {SID}{app/ascs/db}vm with an incrementor at the end in case of more than 1 vm per layer.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of VirtualMachineResourceNames.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of VirtualMachineResourceNames.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames.

FromJsonString(String)

Creates a new instance of VirtualMachineResourceNames, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of VirtualMachineResourceNames into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to