props = new HashMap<>();
props.put(NAME, resource.getResourceName());
AzureClient azureClient = aDCO.getNewAzureClient(credential);
HttpResponseDecorator deleteVirtualNetworkResult = (HttpResponseDecorator) azureClient.deleteVirtualNetwork(props);
String requestId = (String) azureClient.getRequestId(deleteVirtualNetworkResult);
boolean finished = azureClient.waitUntilComplete(requestId);
} catch (HttpResponseException ex) {
httpResponseExceptionHandler(ex, resource.getResourceName(), stack.getOwner(), stack);
} catch (Exception ex) {
throw new InternalServerException(ex.getMessage());
}