ArmNetworkCloudModelFactory.NetworkCloudVirtualMachineData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, string adminUsername = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineBootMethod? bootMethod = default, Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment cloudServicesNetworkAttachment = default, long cpuCores = 0, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIsolateEmulatorThread? isolateEmulatorThread = default, long memorySizeInGB = 0, System.Collections.Generic.IEnumerable<Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment> networkAttachments = default, string networkData = default, string networkDataContent = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHint> placementHints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.NetworkCloud.Models.NetworkCloudSshPublicKey> sshPublicKeys = default, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudStorageProfile storageProfile = default, string userData = default, string userDataContent = 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, string availabilityZone = default, Azure.Core.ResourceIdentifier bareMetalMachineId = default, Azure.Core.ResourceIdentifier clusterId = default, Azure.ResourceManager.Resources.Models.ExtendedLocation consoleExtendedLocation = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineDetailedStatus? detailedStatus = default, string detailedStatusMessage = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerState? powerState = default, System.Collections.Generic.IEnumerable<Azure.Core.ResourceIdentifier> volumes = default, Azure.ResourceManager.NetworkCloud.Models.VirtualMachineProvisioningState? provisioningState = default, Azure.ETag? eTag = default, Azure.ResourceManager.NetworkCloud.Models.ExtendedLocation extendedLocation = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default);
static member NetworkCloudVirtualMachineData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineBootMethod> * Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment * int64 * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineIsolateEmulatorThread> * int64 * seq<Azure.ResourceManager.NetworkCloud.Models.NetworkAttachment> * string * string * seq<Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePlacementHint> * seq<Azure.ResourceManager.NetworkCloud.Models.NetworkCloudSshPublicKey> * Azure.ResourceManager.NetworkCloud.Models.NetworkCloudStorageProfile * string * string * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineVirtioInterfaceType> * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineDeviceModelType> * string * Azure.ResourceManager.NetworkCloud.Models.ImageRepositoryCredentials * string * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Resources.Models.ExtendedLocation * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineDetailedStatus> * string * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerState> * seq<Azure.Core.ResourceIdentifier> * Nullable<Azure.ResourceManager.NetworkCloud.Models.VirtualMachineProvisioningState> * Nullable<Azure.ETag> * Azure.ResourceManager.NetworkCloud.Models.ExtendedLocation * Azure.ResourceManager.Models.ManagedServiceIdentity -> 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 adminUsername As String = Nothing, Optional bootMethod As Nullable(Of VirtualMachineBootMethod) = Nothing, Optional cloudServicesNetworkAttachment As NetworkAttachment = Nothing, Optional cpuCores As Long = 0, 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 networkDataContent As String = Nothing, Optional placementHints As IEnumerable(Of VirtualMachinePlacementHint) = Nothing, Optional sshPublicKeys As IEnumerable(Of NetworkCloudSshPublicKey) = Nothing, Optional storageProfile As NetworkCloudStorageProfile = Nothing, Optional userData As String = Nothing, Optional userDataContent 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 availabilityZone As String = Nothing, Optional bareMetalMachineId As ResourceIdentifier = Nothing, Optional clusterId As ResourceIdentifier = Nothing, Optional consoleExtendedLocation As ExtendedLocation = Nothing, Optional detailedStatus As Nullable(Of VirtualMachineDetailedStatus) = Nothing, Optional detailedStatusMessage As String = Nothing, Optional powerState As Nullable(Of VirtualMachinePowerState) = Nothing, Optional volumes As IEnumerable(Of ResourceIdentifier) = Nothing, Optional provisioningState As Nullable(Of VirtualMachineProvisioningState) = Nothing, Optional eTag As Nullable(Of ETag) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional identity As ManagedServiceIdentity = Nothing) As NetworkCloudVirtualMachineData
Parameters
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.
- adminUsername
- String
The name of the administrator to which the ssh public keys will be added into the authorized keys.
- 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.
- cpuCores
- Int64
The number of CPU cores in the virtual machine.
- 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. Allocations are measured in gibibytes.
- networkAttachments
- IEnumerable<NetworkAttachment>
The list of network attachments to the virtual machine.
- networkData
- String
Field Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this property.
- networkDataContent
- String
The Base64 encoded cloud-init network data.
- placementHints
- IEnumerable<VirtualMachinePlacementHint>
The scheduling hints for 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
Field Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property.
- userDataContent
- 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.
- availabilityZone
- String
The cluster availability zone containing this virtual machine.
- bareMetalMachineId
- ResourceIdentifier
The resource ID of the bare metal machine that hosts the virtual machine.
- clusterId
- ResourceIdentifier
The resource ID of the cluster the virtual machine is created for.
- consoleExtendedLocation
- ExtendedLocation
The extended location to use for creation of a VM console resource.
- detailedStatus
- Nullable<VirtualMachineDetailedStatus>
The more detailed status of the virtual machine.
- detailedStatusMessage
- String
The descriptive message about the current detailed status.
- powerState
- Nullable<VirtualMachinePowerState>
The power state of the virtual machine.
- volumes
- IEnumerable<ResourceIdentifier>
The resource IDs of volumes that are attached to the virtual machine.
- provisioningState
- Nullable<VirtualMachineProvisioningState>
The provisioning state of the virtual machine.
"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
- extendedLocation
- Azure.ResourceManager.NetworkCloud.Models.ExtendedLocation
The extended location of the resource. This property is required when creating the resource.
- identity
- ManagedServiceIdentity
The managed service identities assigned to this resource.
Returns
A new NetworkCloudVirtualMachineData instance for mocking.
Exceptions
adminUsername, cloudServicesNetworkAttachment, storageProfile or vmImage is null.