AzureClient azureClient = aDCO.getNewAzureClient(credential);
JsonNode actualObj = MAPPER.readValue((String) azureClient.getDisks(), JsonNode.class);
List<String> disks = (List<String>) actualObj.get("Disks").findValues("Disk").get(0).findValuesAsText("Name");
for (String jsonNode : disks) {
if (jsonNode.startsWith(String.format("%s-%s-0", resource.getResourceName(), resource.getResourceName()))) {
AzureDiskRemoveDeleteTaskContext azureDiskRemoveReadyPollerObject = new AzureDiskRemoveDeleteTaskContext(aDCO.getCommonName(), jsonNode,
stack, aDCO.getNewAzureClient(credential));
azureDiskRemoveReadyPollerObjectPollingService
.pollWithTimeout(azureDiskDeleteTask, azureDiskRemoveReadyPollerObject, POLLING_INTERVAL, MAX_POLLING_ATTEMPTS);
}
}