code: public InputStream getOutput(String resourceGroupName, String automationAccountName, String jobId) {
          return getOutputWithServiceResponseAsync(resourceGroupName, automationAccountName, jobId).toBlocking().single().body();
      }
docs: Retrieve the job output identified by job id.
  
  @param resourceGroupName Name of an Azure Resource group.
  @param automationAccountName The name of the automation account.
  @param jobId The job id.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the InputStream object if successful.