gardener / machine-controller-manager-provider-azure

This repository is the out of tree implementation of the machine driver for Azure cloud provider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix VM names in ListMachineResponse

unmarshall opened this issue · comments

What happened:
In ListMachines we leverage resource-graph KUSTO query to get VM names from the following resources:

  1. VirtualMachines
  2. NetworkInterfaces
  3. OSDisk
  4. DataDisk

The issue that we saw was that while extracting VM name from DataDisk an extra hyphen was added as a suffix to the VM name.

What you expected to happen:
VM Names are correctly extracted from DataDisk(s) if present.