---
title: "Implements GET virtualMachineTemplates in a resource group."
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates"
tags: ["VirtualMachineTemplates"]
---

# Implements GET virtualMachineTemplates in a resource group.

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates`

List of virtualMachineTemplates in a resource group.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Success

- VirtualMachineTemplatesList — List of VirtualMachineTemplates.
  - `nextLink` string — Url to follow for getting next page of VirtualMachineTemplates.
  - `value` VirtualMachineTemplate[], required — Array of VirtualMachineTemplates
    - `properties` VirtualMachineTemplateProperties, required — Describes the properties of a Virtual Machine Template.
      - `uuid` string — Gets or sets a unique identifier for this resource.
      - `vCenterId` string — Gets or sets the ARM Id of the vCenter resource in which this template resides.
      - `moRefId` string — Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine template.
      - `inventoryItemId` string — Gets or sets the inventory Item ID for the virtual machine template.
      - `moName` string — Gets or sets the vCenter Managed Object name for the virtual machine template.
      - `memorySizeMB` integer — Gets or sets memory size in MBs for the template.
      - `numCPUs` integer — Gets or sets the number of vCPUs for the template.
      - `numCoresPerSocket` integer — Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified.
      - `osType` 'Windows' | 'Linux' | 'Other' — Defines the different types of VM guest operating systems.
      - `osName` string — Gets or sets os name.
      - `folderPath` string — Gets or sets the folder path of the template.
      - `networkInterfaces` NetworkInterface[] — Gets or sets the network interfaces of the template.
        - `name` string — Gets or sets the name of the network interface.
        - `label` string — Gets or sets the label of the virtual network in vCenter that the nic is connected to.
        - `ipAddresses` string[] — Gets or sets the nic ip addresses.
        - `macAddress` string — Gets or sets the NIC MAC address.
        - `networkId` string — Gets or sets the ARM Id of the network resource to connect the virtual machine.
        - `nicType` 'vmxnet3' | 'vmxnet2' | 'vmxnet' | 'e1000' | 'e1000e' | 'pcnet32' — NIC type
        - `powerOnBoot` 'enabled' | 'disabled' — Defines the options for power on boot.
        - `networkMoRefId` string — Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network that the nic is connected to.
        - `networkMoName` string — Gets or sets the name of the virtual network in vCenter that the nic is connected to.
        - `deviceKey` integer — Gets or sets the device key value.
        - `ipSettings` NicIPSettings — Defines the network interface ip settings.
          - `allocationMethod` 'unset' | 'dynamic' | 'static' | 'linklayer' | 'random' | 'other' — IP address allocation method.
          - `dnsServers` string[] — Gets or sets the dns servers.
          - `gateway` string[] — Gets or sets the gateway.
          - `ipAddress` string — Gets or sets the ip address for the nic.
          - `subnetMask` string — Gets or sets the mask.
          - `primaryWinsServer` string — Gets or sets the primary server.
          - `secondaryWinsServer` string — Gets or sets the secondary server.
          - `ipAddressInfo` NicIPAddressSettings[] — Gets or sets the IP address information being reported for this NIC. This contains the same IPv4 information above plus IPV6 information.
            - `allocationMethod` string — Gets the ip address allocation method.
            - `ipAddress` string — Gets the ip address for the nic.
            - `subnetMask` string — Gets the mask.
      - `disks` VirtualDisk[] — Gets or sets the disks the template.
        - `name` string — Gets or sets the name of the virtual disk.
        - `label` string — Gets or sets the label of the virtual disk in vCenter.
        - `diskObjectId` string — Gets or sets the disk object id.
        - `diskSizeGB` integer — Gets or sets the disk total size.
        - `deviceKey` integer — Gets or sets the device key value.
        - `diskMode` 'persistent' | 'independent_persistent' | 'independent_nonpersistent' — Defines the different types of disk modes.
        - `controllerKey` integer — Gets or sets the controller id.
        - `unitNumber` integer — Gets or sets the unit number of the disk on the controller.
        - `deviceName` string — Gets or sets the device name.
        - `diskType` 'flat' | 'pmem' | 'rawphysical' | 'rawvirtual' | 'sparse' | 'sesparse' | 'unknown' — Defines the different types of disks.
      - `customResourceName` string — Gets the name of the corresponding resource in Kubernetes.
      - `toolsVersionStatus` string — Gets or sets the current version status of VMware Tools installed in the guest operating system.
      - `toolsVersion` string — Gets or sets the current version of VMware Tools.
      - `firmwareType` 'bios' | 'efi' — Firmware type
      - `statuses` ResourceStatus[] — The resource status information.
        - `type` string — The type of the condition.
        - `status` string — Status of the condition.
        - `reason` string — The reason for the condition's status.
        - `message` string — A human readable message indicating details about the status.
        - `severity` string — Severity with which to treat failures of this type of condition.
        - `lastUpdatedAt` string, date-time — The last update time for this condition.
      - `provisioningState` 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Updating' | 'Deleting' | 'Accepted' | 'Created' — The current deployment state of resource.
    - `location` string, required — Gets or sets the location.
    - `extendedLocation` ExtendedLocation — The extended location.
      - `type` string — The extended location type.
      - `name` string — The extended location name.
    - `systemData` SystemData — unresolved $ref
    - `tags` object — Gets or sets the Resource tags.
    - `name` string — Gets or sets the name.
    - `id` string — Gets or sets the Id.
    - `type` string — Gets or sets the type of the resource.
    - `kind` string — Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/connectedvmware-microsoft-connectedvmwarevsphere.md) · [All operations](https://skmtc.net/azure/apis/connectedvmware-microsoft-connectedvmwarevsphere/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/connectedvmware-microsoft-connectedvmwarevsphere/revisions/81d67c5b52dd/schema)
