Stack stack = stackRepository.findById(aSSCO.getStack().getId());
AzureCredential credential = (AzureCredential) stack.getCredential();
boolean started = setStackState(aSSCO.getStack().getId(), resource, aSSCO.getNewAzureClient(credential), false);
if (started) {
azurePollingService.pollWithTimeout(
new AzureInstanceStatusCheckerTask(),
new AzureInstances(aSSCO.getStack(), aSSCO.getNewAzureClient(credential), Arrays.asList(resource.getResourceName()), "Running"),
POLLING_INTERVAL,
MAX_ATTEMPTS_FOR_AMBARI_OPS);
return true;
}