Share via


ArmNetworkCloudModelFactory.NetworkCloudVirtualMachineData Method

Definition

Initializes a new instance of NetworkCloudVirtualMachineData.

public static Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineData NetworkCloudVirtualMachineData (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.NetworkCloud.Models.ExtendedLocation extendedLocation = default, string adminUsername = default, string availabilityZone = default, Azure.Core.ResourceIdentifier bareMetalMachineId = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineBootMethod? bootMethod = default, Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment cloudServicesNetworkAttachment = default, Azure.Core.ResourceIdentifier clusterId = default, long cpuCores = 0, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineDetailedStatus? detailedStatus = default, string detailedStatusMessage = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIsolateEmulatorThread? isolateEmulatorThread = default, long memorySizeInGB = 0, System.Collections.Generic.IEnumerable<Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment> networkAttachments = default, string networkData = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHint> placementHints = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerState? powerState = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineProvisioningState? provisioningState = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.NetworkCloud.Models.NetworkCloudSshPublicKey> sshPublicKeys = default, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudStorageProfile storageProfile = default, string userData = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineVirtioInterfaceType? virtioInterface = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineDeviceModelType? vmDeviceModel = default, string vmImage = default, Azure.ResourceManager.NetworkCloud.Models.ImageRepositoryCredentials vmImageRepositoryCredentials = default, System.Collections.Generic.IEnumerable<Azure.Core.ResourceIdentifier> volumes = default);
static member NetworkCloudVirtualMachineData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.NetworkCloud.Models.ExtendedLocation * string * string * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineBootMethod> * Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment * Azure.Core.ResourceIdentifier * int64 * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineDetailedStatus> * string * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIsolateEmulatorThread> * int64 * seq<Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment> * string * seq<Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHint> * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerState> * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineProvisioningState> * seq<Azure.ResourceManager.NetworkCloud.Models.NetworkCloudSshPublicKey> * Azure.ResourceManager.NetworkCloud.Models.NetworkCloudStorageProfile * string * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineVirtioInterfaceType> * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineDeviceModelType> * string * Azure.ResourceManager.NetworkCloud.Models.ImageRepositoryCredentials * seq<Azure.Core.ResourceIdentifier> -> Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineData
Public Shared Function NetworkCloudVirtualMachineData (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 extendedLocation As ExtendedLocation = Nothing, Optional adminUsername As String = Nothing, Optional availabilityZone As String = Nothing, Optional bareMetalMachineId As ResourceIdentifier = Nothing, Optional bootMethod As Nullable(Of VirtualMachineBootMethod) = Nothing, Optional cloudServicesNetworkAttachment As NetworkAttachment = Nothing, Optional clusterId As ResourceIdentifier = Nothing, Optional cpuCores As Long = 0, Optional detailedStatus As Nullable(Of VirtualMachineDetailedStatus) = Nothing, Optional detailedStatusMessage As String = Nothing, Optional isolateEmulatorThread As Nullable(Of VirtualMachineIsolateEmulatorThread) = Nothing, Optional memorySizeInGB As Long = 0, Optional networkAttachments As IEnumerable(Of NetworkAttachment) = Nothing, Optional networkData As String = Nothing, Optional placementHints As IEnumerable(Of VirtualMachinePlacementHint) = Nothing, Optional powerState As Nullable(Of VirtualMachinePowerState) = Nothing, Optional provisioningState As Nullable(Of VirtualMachineProvisioningState) = Nothing, Optional sshPublicKeys As IEnumerable(Of NetworkCloudSshPublicKey) = Nothing, Optional storageProfile As NetworkCloudStorageProfile = Nothing, Optional userData As String = Nothing, Optional virtioInterface As Nullable(Of VirtualMachineVirtioInterfaceType) = Nothing, Optional vmDeviceModel As Nullable(Of VirtualMachineDeviceModelType) = Nothing, Optional vmImage As String = Nothing, Optional vmImageRepositoryCredentials As ImageRepositoryCredentials = Nothing, Optional volumes As IEnumerable(Of ResourceIdentifier) = Nothing) As NetworkCloudVirtualMachineData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

extendedLocation
ExtendedLocation

The extended location of the cluster associated with the resource.

adminUsername
String

The name of the administrator to which the ssh public keys will be added into the authorized keys.

availabilityZone
String

The cluster availability zone containing this virtual machine.

bareMetalMachineId
ResourceIdentifier

The resource ID of the bare metal machine the virtual machine has landed to.

bootMethod
Nullable<VirtualMachineBootMethod>

Selects the boot method for the virtual machine.

cloudServicesNetworkAttachment
NetworkAttachment

The cloud service network that provides platform-level services for the virtual machine.

clusterId
ResourceIdentifier

The resource ID of the cluster the virtual machine is created for.

cpuCores
Int64

The number of CPU cores in the virtual machine.

detailedStatus
Nullable<VirtualMachineDetailedStatus>

The more detailed status of the virtual machine.

detailedStatusMessage
String

The descriptive message about the current detailed status.

isolateEmulatorThread
Nullable<VirtualMachineIsolateEmulatorThread>

Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine.

memorySizeInGB
Int64

The memory size of the virtual machine in GB.

networkAttachments
IEnumerable<NetworkAttachment>

The list of network attachments to the virtual machine.

networkData
String

The Base64 encoded cloud-init network data.

placementHints
IEnumerable<VirtualMachinePlacementHint>

The scheduling hints for the virtual machine.

powerState
Nullable<VirtualMachinePowerState>

The power state of the virtual machine.

provisioningState
Nullable<VirtualMachineProvisioningState>

The provisioning state of the virtual machine.

sshPublicKeys
IEnumerable<NetworkCloudSshPublicKey>

The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername.

storageProfile
NetworkCloudStorageProfile

The storage profile that specifies size and other parameters about the disks related to the virtual machine.

userData
String

The Base64 encoded cloud-init user data.

virtioInterface
Nullable<VirtualMachineVirtioInterfaceType>

Field Deprecated, use virtualizationModel instead. The type of the virtio interface.

vmDeviceModel
Nullable<VirtualMachineDeviceModelType>

The type of the device model to use.

vmImage
String

The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used to pull the image.

vmImageRepositoryCredentials
ImageRepositoryCredentials

The credentials used to login to the image repository that has access to the specified image.

volumes
IEnumerable<ResourceIdentifier>

The resource IDs of volumes that are attached to the virtual machine.

Returns

A new NetworkCloudVirtualMachineData instance for mocking.

Applies to