code: public void onResourceRequested(final ResourceRequestEvent resourceRequestEvent,
                                    final String containerId,
                                    final URI jarFileUri) {
      try {
        createAzureBatchTask(containerId, jarFileUri);
        this.outstandingResourceRequests.put(containerId, resourceRequestEvent);
        this.outstandingResourceRequestCount.incrementAndGet();
        this.updateRuntimeStatus();
      } catch (IOException e) {
        LOG.log(Level.SEVERE, "Failed to create Azure Batch task with the following exception: {0}", e);
        throw new RuntimeException(e);
      }
    }
docs: This method is called when a resource is requested. It will add a task to the existing Azure Batch job which
  is equivalent to requesting a container in Azure Batch. When the request is fulfilled and the evaluator shim is
  started, it will send a message back to the driver which signals that a resource request was fulfilled.
  
  @param resourceRequestEvent resource request event.
  @param containerId container id for the resource. It will be used as the task id for Azure Batch task.
  @param jarFileUri Azure Storage SAS URI of the JAR file containing libraries required by the evaluator shim.