ArmWorkloadsSapVirtualInstanceModelFactory.VirtualMachineResourceNames Method

Definition

The resource names object for virtual machine and related resources.

public static Azure.ResourceManager.WorkloadsSapVirtualInstance.Models.VirtualMachineResourceNames VirtualMachineResourceNames(string vmName = default, string hostName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.WorkloadsSapVirtualInstance.Models.NetworkInterfaceResourceNames> networkInterfaces = default, string osDiskName = default, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>> dataDiskNames = default);
static member VirtualMachineResourceNames : string * string * seq<Azure.ResourceManager.WorkloadsSapVirtualInstance.Models.NetworkInterfaceResourceNames> * string * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> -> Azure.ResourceManager.WorkloadsSapVirtualInstance.Models.VirtualMachineResourceNames
Public Shared Function VirtualMachineResourceNames (Optional vmName As String = Nothing, Optional hostName As String = Nothing, Optional networkInterfaces As IEnumerable(Of NetworkInterfaceResourceNames) = Nothing, Optional osDiskName As String = Nothing, Optional dataDiskNames As IDictionary(Of String, IList(Of String)) = Nothing) As VirtualMachineResourceNames

Parameters

vmName
String

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.

hostName
String

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.

networkInterfaces
IEnumerable<NetworkInterfaceResourceNames>

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

osDiskName
String

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.

dataDiskNames
IDictionary<String,IList<String>>

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.

Returns

A new VirtualMachineResourceNames instance for mocking.

Applies to