This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.vmwarecloudsimple.getVirtualMachine
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Get virtual machine Azure REST API version: 2019-04-01.
Using getVirtualMachine
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualMachine(args: GetVirtualMachineArgs, opts?: InvokeOptions): Promise<GetVirtualMachineResult>
function getVirtualMachineOutput(args: GetVirtualMachineOutputArgs, opts?: InvokeOptions): Output<GetVirtualMachineResult>def get_virtual_machine(resource_group_name: Optional[str] = None,
                        virtual_machine_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVirtualMachineResult
def get_virtual_machine_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                        virtual_machine_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMachineResult]func LookupVirtualMachine(ctx *Context, args *LookupVirtualMachineArgs, opts ...InvokeOption) (*LookupVirtualMachineResult, error)
func LookupVirtualMachineOutput(ctx *Context, args *LookupVirtualMachineOutputArgs, opts ...InvokeOption) LookupVirtualMachineResultOutput> Note: This function is named LookupVirtualMachine in the Go SDK.
public static class GetVirtualMachine 
{
    public static Task<GetVirtualMachineResult> InvokeAsync(GetVirtualMachineArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualMachineResult> Invoke(GetVirtualMachineInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualMachineResult> getVirtualMachine(GetVirtualMachineArgs args, InvokeOptions options)
public static Output<GetVirtualMachineResult> getVirtualMachine(GetVirtualMachineArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:vmwarecloudsimple:getVirtualMachine
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The name of the resource group
- VirtualMachine stringName 
- virtual machine name
- ResourceGroup stringName 
- The name of the resource group
- VirtualMachine stringName 
- virtual machine name
- resourceGroup StringName 
- The name of the resource group
- virtualMachine StringName 
- virtual machine name
- resourceGroup stringName 
- The name of the resource group
- virtualMachine stringName 
- virtual machine name
- resource_group_ strname 
- The name of the resource group
- virtual_machine_ strname 
- virtual machine name
- resourceGroup StringName 
- The name of the resource group
- virtualMachine StringName 
- virtual machine name
getVirtualMachine Result
The following output properties are available:
- AmountOf intRam 
- The amount of memory
- Controllers
List<Pulumi.Azure Native. VMware Cloud Simple. Outputs. Virtual Disk Controller Response> 
- The list of Virtual Disks' Controllers
- Dnsname string
- The DNS name of Virtual Machine in VCenter
- Folder string
- The path to virtual machine folder in VCenter
- GuestOS string
- The name of Guest OS
- GuestOSType string
- The Guest OS type
- Id string
- /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
- Location string
- Azure region
- Name string
- {virtualMachineName}
- NumberOf intCores 
- The number of CPU cores
- PrivateCloud stringId 
- Private Cloud Id
- ProvisioningState string
- The provisioning status of the resource
- PublicIP string
- The public ip of Virtual Machine
- Status string
- The status of Virtual machine
- Type string
- {resourceProviderNamespace}/{resourceType}
- VmId string
- The internal id of Virtual Machine in VCenter
- Vmwaretools string
- VMware tools version
- Customization
Pulumi.Azure Native. VMware Cloud Simple. Outputs. Guest OSCustomization Response 
- Virtual machine properties
- Disks
List<Pulumi.Azure Native. VMware Cloud Simple. Outputs. Virtual Disk Response> 
- The list of Virtual Disks
- ExposeTo boolGuest VM 
- Expose Guest OS or not
- Nics
List<Pulumi.Azure Native. VMware Cloud Simple. Outputs. Virtual Nic Response> 
- The list of Virtual NICs
- Password string
- Password for login. Deprecated - use customization property
- ResourcePool Pulumi.Azure Native. VMware Cloud Simple. Outputs. Resource Pool Response 
- Virtual Machines Resource Pool
- Dictionary<string, string>
- The list of tags
- TemplateId string
- Virtual Machine Template Id
- Username string
- Username for login. Deprecated - use customization property
- VSphereNetworks List<string>
- The list of Virtual VSphere Networks
- AmountOf intRam 
- The amount of memory
- Controllers
[]VirtualDisk Controller Response 
- The list of Virtual Disks' Controllers
- Dnsname string
- The DNS name of Virtual Machine in VCenter
- Folder string
- The path to virtual machine folder in VCenter
- GuestOS string
- The name of Guest OS
- GuestOSType string
- The Guest OS type
- Id string
- /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
- Location string
- Azure region
- Name string
- {virtualMachineName}
- NumberOf intCores 
- The number of CPU cores
- PrivateCloud stringId 
- Private Cloud Id
- ProvisioningState string
- The provisioning status of the resource
- PublicIP string
- The public ip of Virtual Machine
- Status string
- The status of Virtual machine
- Type string
- {resourceProviderNamespace}/{resourceType}
- VmId string
- The internal id of Virtual Machine in VCenter
- Vmwaretools string
- VMware tools version
- Customization
GuestOSCustomization Response 
- Virtual machine properties
- Disks
[]VirtualDisk Response 
- The list of Virtual Disks
- ExposeTo boolGuest VM 
- Expose Guest OS or not
- Nics
[]VirtualNic Response 
- The list of Virtual NICs
- Password string
- Password for login. Deprecated - use customization property
- ResourcePool ResourcePool Response 
- Virtual Machines Resource Pool
- map[string]string
- The list of tags
- TemplateId string
- Virtual Machine Template Id
- Username string
- Username for login. Deprecated - use customization property
- VSphereNetworks []string
- The list of Virtual VSphere Networks
- amountOf IntegerRam 
- The amount of memory
- controllers
List<VirtualDisk Controller Response> 
- The list of Virtual Disks' Controllers
- dnsname String
- The DNS name of Virtual Machine in VCenter
- folder String
- The path to virtual machine folder in VCenter
- guestOS String
- The name of Guest OS
- guestOSType String
- The Guest OS type
- id String
- /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
- location String
- Azure region
- name String
- {virtualMachineName}
- numberOf IntegerCores 
- The number of CPU cores
- privateCloud StringId 
- Private Cloud Id
- provisioningState String
- The provisioning status of the resource
- publicIP String
- The public ip of Virtual Machine
- status String
- The status of Virtual machine
- type String
- {resourceProviderNamespace}/{resourceType}
- vmId String
- The internal id of Virtual Machine in VCenter
- vmwaretools String
- VMware tools version
- customization
GuestOSCustomization Response 
- Virtual machine properties
- disks
List<VirtualDisk Response> 
- The list of Virtual Disks
- exposeTo BooleanGuest VM 
- Expose Guest OS or not
- nics
List<VirtualNic Response> 
- The list of Virtual NICs
- password String
- Password for login. Deprecated - use customization property
- resourcePool ResourcePool Response 
- Virtual Machines Resource Pool
- Map<String,String>
- The list of tags
- templateId String
- Virtual Machine Template Id
- username String
- Username for login. Deprecated - use customization property
- vSphere List<String>Networks 
- The list of Virtual VSphere Networks
- amountOf numberRam 
- The amount of memory
- controllers
VirtualDisk Controller Response[] 
- The list of Virtual Disks' Controllers
- dnsname string
- The DNS name of Virtual Machine in VCenter
- folder string
- The path to virtual machine folder in VCenter
- guestOS string
- The name of Guest OS
- guestOSType string
- The Guest OS type
- id string
- /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
- location string
- Azure region
- name string
- {virtualMachineName}
- numberOf numberCores 
- The number of CPU cores
- privateCloud stringId 
- Private Cloud Id
- provisioningState string
- The provisioning status of the resource
- publicIP string
- The public ip of Virtual Machine
- status string
- The status of Virtual machine
- type string
- {resourceProviderNamespace}/{resourceType}
- vmId string
- The internal id of Virtual Machine in VCenter
- vmwaretools string
- VMware tools version
- customization
GuestOSCustomization Response 
- Virtual machine properties
- disks
VirtualDisk Response[] 
- The list of Virtual Disks
- exposeTo booleanGuest VM 
- Expose Guest OS or not
- nics
VirtualNic Response[] 
- The list of Virtual NICs
- password string
- Password for login. Deprecated - use customization property
- resourcePool ResourcePool Response 
- Virtual Machines Resource Pool
- {[key: string]: string}
- The list of tags
- templateId string
- Virtual Machine Template Id
- username string
- Username for login. Deprecated - use customization property
- vSphere string[]Networks 
- The list of Virtual VSphere Networks
- amount_of_ intram 
- The amount of memory
- controllers
Sequence[VirtualDisk Controller Response] 
- The list of Virtual Disks' Controllers
- dnsname str
- The DNS name of Virtual Machine in VCenter
- folder str
- The path to virtual machine folder in VCenter
- guest_os str
- The name of Guest OS
- guest_os_ strtype 
- The Guest OS type
- id str
- /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
- location str
- Azure region
- name str
- {virtualMachineName}
- number_of_ intcores 
- The number of CPU cores
- private_cloud_ strid 
- Private Cloud Id
- provisioning_state str
- The provisioning status of the resource
- public_ip str
- The public ip of Virtual Machine
- status str
- The status of Virtual machine
- type str
- {resourceProviderNamespace}/{resourceType}
- vm_id str
- The internal id of Virtual Machine in VCenter
- vmwaretools str
- VMware tools version
- customization
GuestOSCustomization Response 
- Virtual machine properties
- disks
Sequence[VirtualDisk Response] 
- The list of Virtual Disks
- expose_to_ boolguest_ vm 
- Expose Guest OS or not
- nics
Sequence[VirtualNic Response] 
- The list of Virtual NICs
- password str
- Password for login. Deprecated - use customization property
- resource_pool ResourcePool Response 
- Virtual Machines Resource Pool
- Mapping[str, str]
- The list of tags
- template_id str
- Virtual Machine Template Id
- username str
- Username for login. Deprecated - use customization property
- v_sphere_ Sequence[str]networks 
- The list of Virtual VSphere Networks
- amountOf NumberRam 
- The amount of memory
- controllers List<Property Map>
- The list of Virtual Disks' Controllers
- dnsname String
- The DNS name of Virtual Machine in VCenter
- folder String
- The path to virtual machine folder in VCenter
- guestOS String
- The name of Guest OS
- guestOSType String
- The Guest OS type
- id String
- /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
- location String
- Azure region
- name String
- {virtualMachineName}
- numberOf NumberCores 
- The number of CPU cores
- privateCloud StringId 
- Private Cloud Id
- provisioningState String
- The provisioning status of the resource
- publicIP String
- The public ip of Virtual Machine
- status String
- The status of Virtual machine
- type String
- {resourceProviderNamespace}/{resourceType}
- vmId String
- The internal id of Virtual Machine in VCenter
- vmwaretools String
- VMware tools version
- customization Property Map
- Virtual machine properties
- disks List<Property Map>
- The list of Virtual Disks
- exposeTo BooleanGuest VM 
- Expose Guest OS or not
- nics List<Property Map>
- The list of Virtual NICs
- password String
- Password for login. Deprecated - use customization property
- resourcePool Property Map
- Virtual Machines Resource Pool
- Map<String>
- The list of tags
- templateId String
- Virtual Machine Template Id
- username String
- Username for login. Deprecated - use customization property
- vSphere List<String>Networks 
- The list of Virtual VSphere Networks
Supporting Types
GuestOSCustomizationResponse  
- DnsServers List<string>
- List of dns servers to use
- HostName string
- Virtual Machine hostname
- Password string
- Password for login
- PolicyId string
- id of customization policy
- Username string
- Username for login
- DnsServers []string
- List of dns servers to use
- HostName string
- Virtual Machine hostname
- Password string
- Password for login
- PolicyId string
- id of customization policy
- Username string
- Username for login
- dnsServers List<String>
- List of dns servers to use
- hostName String
- Virtual Machine hostname
- password String
- Password for login
- policyId String
- id of customization policy
- username String
- Username for login
- dnsServers string[]
- List of dns servers to use
- hostName string
- Virtual Machine hostname
- password string
- Password for login
- policyId string
- id of customization policy
- username string
- Username for login
- dns_servers Sequence[str]
- List of dns servers to use
- host_name str
- Virtual Machine hostname
- password str
- Password for login
- policy_id str
- id of customization policy
- username str
- Username for login
- dnsServers List<String>
- List of dns servers to use
- hostName String
- Virtual Machine hostname
- password String
- Password for login
- policyId String
- id of customization policy
- username String
- Username for login
GuestOSNICCustomizationResponse  
- Allocation string
- IP address allocation method
- DnsServers List<string>
- List of dns servers to use
- Gateway List<string>
- Gateway addresses assigned to nic
- IpAddress string
- Static ip address for nic
- Mask string
- Network mask for nic
- PrimaryWins stringServer 
- primary WINS server for Windows
- SecondaryWins stringServer 
- secondary WINS server for Windows
- Allocation string
- IP address allocation method
- DnsServers []string
- List of dns servers to use
- Gateway []string
- Gateway addresses assigned to nic
- IpAddress string
- Static ip address for nic
- Mask string
- Network mask for nic
- PrimaryWins stringServer 
- primary WINS server for Windows
- SecondaryWins stringServer 
- secondary WINS server for Windows
- allocation String
- IP address allocation method
- dnsServers List<String>
- List of dns servers to use
- gateway List<String>
- Gateway addresses assigned to nic
- ipAddress String
- Static ip address for nic
- mask String
- Network mask for nic
- primaryWins StringServer 
- primary WINS server for Windows
- secondaryWins StringServer 
- secondary WINS server for Windows
- allocation string
- IP address allocation method
- dnsServers string[]
- List of dns servers to use
- gateway string[]
- Gateway addresses assigned to nic
- ipAddress string
- Static ip address for nic
- mask string
- Network mask for nic
- primaryWins stringServer 
- primary WINS server for Windows
- secondaryWins stringServer 
- secondary WINS server for Windows
- allocation str
- IP address allocation method
- dns_servers Sequence[str]
- List of dns servers to use
- gateway Sequence[str]
- Gateway addresses assigned to nic
- ip_address str
- Static ip address for nic
- mask str
- Network mask for nic
- primary_wins_ strserver 
- primary WINS server for Windows
- secondary_wins_ strserver 
- secondary WINS server for Windows
- allocation String
- IP address allocation method
- dnsServers List<String>
- List of dns servers to use
- gateway List<String>
- Gateway addresses assigned to nic
- ipAddress String
- Static ip address for nic
- mask String
- Network mask for nic
- primaryWins StringServer 
- primary WINS server for Windows
- secondaryWins StringServer 
- secondary WINS server for Windows
ResourcePoolResponse  
VirtualDiskControllerResponse   
VirtualDiskResponse  
- ControllerId string
- Disk's Controller id
- IndependenceMode string
- Disk's independence mode type
- TotalSize int
- Disk's total size
- VirtualDisk stringName 
- Disk's display name
- VirtualDisk stringId 
- Disk's id
- ControllerId string
- Disk's Controller id
- IndependenceMode string
- Disk's independence mode type
- TotalSize int
- Disk's total size
- VirtualDisk stringName 
- Disk's display name
- VirtualDisk stringId 
- Disk's id
- controllerId String
- Disk's Controller id
- independenceMode String
- Disk's independence mode type
- totalSize Integer
- Disk's total size
- virtualDisk StringName 
- Disk's display name
- virtualDisk StringId 
- Disk's id
- controllerId string
- Disk's Controller id
- independenceMode string
- Disk's independence mode type
- totalSize number
- Disk's total size
- virtualDisk stringName 
- Disk's display name
- virtualDisk stringId 
- Disk's id
- controller_id str
- Disk's Controller id
- independence_mode str
- Disk's independence mode type
- total_size int
- Disk's total size
- virtual_disk_ strname 
- Disk's display name
- virtual_disk_ strid 
- Disk's id
- controllerId String
- Disk's Controller id
- independenceMode String
- Disk's independence mode type
- totalSize Number
- Disk's total size
- virtualDisk StringName 
- Disk's display name
- virtualDisk StringId 
- Disk's id
VirtualNetworkResponse  
- Assignable bool
- can be used in vm creation/deletion
- Id string
- virtual network id (privateCloudId:vsphereId)
- Location string
- Azure region
- Name string
- {VirtualNetworkName}
- PrivateCloud stringId 
- The Private Cloud id
- Type string
- {resourceProviderNamespace}/{resourceType}
- Assignable bool
- can be used in vm creation/deletion
- Id string
- virtual network id (privateCloudId:vsphereId)
- Location string
- Azure region
- Name string
- {VirtualNetworkName}
- PrivateCloud stringId 
- The Private Cloud id
- Type string
- {resourceProviderNamespace}/{resourceType}
- assignable Boolean
- can be used in vm creation/deletion
- id String
- virtual network id (privateCloudId:vsphereId)
- location String
- Azure region
- name String
- {VirtualNetworkName}
- privateCloud StringId 
- The Private Cloud id
- type String
- {resourceProviderNamespace}/{resourceType}
- assignable boolean
- can be used in vm creation/deletion
- id string
- virtual network id (privateCloudId:vsphereId)
- location string
- Azure region
- name string
- {VirtualNetworkName}
- privateCloud stringId 
- The Private Cloud id
- type string
- {resourceProviderNamespace}/{resourceType}
- assignable bool
- can be used in vm creation/deletion
- id str
- virtual network id (privateCloudId:vsphereId)
- location str
- Azure region
- name str
- {VirtualNetworkName}
- private_cloud_ strid 
- The Private Cloud id
- type str
- {resourceProviderNamespace}/{resourceType}
- assignable Boolean
- can be used in vm creation/deletion
- id String
- virtual network id (privateCloudId:vsphereId)
- location String
- Azure region
- name String
- {VirtualNetworkName}
- privateCloud StringId 
- The Private Cloud id
- type String
- {resourceProviderNamespace}/{resourceType}
VirtualNicResponse  
- Network
Pulumi.Azure Native. VMware Cloud Simple. Inputs. Virtual Network Response 
- Virtual Network
- NicType string
- NIC type
- VirtualNic stringName 
- NIC name
- Customization
Pulumi.Azure Native. VMware Cloud Simple. Inputs. Guest OSNICCustomization Response 
- guest OS customization for nic
- IpAddresses List<string>
- NIC ip address
- MacAddress string
- NIC MAC address
- PowerOn boolBoot 
- Is NIC powered on/off on boot
- VirtualNic stringId 
- NIC id
- Network
VirtualNetwork Response 
- Virtual Network
- NicType string
- NIC type
- VirtualNic stringName 
- NIC name
- Customization
GuestOSNICCustomization Response 
- guest OS customization for nic
- IpAddresses []string
- NIC ip address
- MacAddress string
- NIC MAC address
- PowerOn boolBoot 
- Is NIC powered on/off on boot
- VirtualNic stringId 
- NIC id
- network
VirtualNetwork Response 
- Virtual Network
- nicType String
- NIC type
- virtualNic StringName 
- NIC name
- customization
GuestOSNICCustomization Response 
- guest OS customization for nic
- ipAddresses List<String>
- NIC ip address
- macAddress String
- NIC MAC address
- powerOn BooleanBoot 
- Is NIC powered on/off on boot
- virtualNic StringId 
- NIC id
- network
VirtualNetwork Response 
- Virtual Network
- nicType string
- NIC type
- virtualNic stringName 
- NIC name
- customization
GuestOSNICCustomization Response 
- guest OS customization for nic
- ipAddresses string[]
- NIC ip address
- macAddress string
- NIC MAC address
- powerOn booleanBoot 
- Is NIC powered on/off on boot
- virtualNic stringId 
- NIC id
- network
VirtualNetwork Response 
- Virtual Network
- nic_type str
- NIC type
- virtual_nic_ strname 
- NIC name
- customization
GuestOSNICCustomization Response 
- guest OS customization for nic
- ip_addresses Sequence[str]
- NIC ip address
- mac_address str
- NIC MAC address
- power_on_ boolboot 
- Is NIC powered on/off on boot
- virtual_nic_ strid 
- NIC id
- network Property Map
- Virtual Network
- nicType String
- NIC type
- virtualNic StringName 
- NIC name
- customization Property Map
- guest OS customization for nic
- ipAddresses List<String>
- NIC ip address
- macAddress String
- NIC MAC address
- powerOn BooleanBoot 
- Is NIC powered on/off on boot
- virtualNic StringId 
- NIC id
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi