Skip to main content

Overview

run_st_job triggers the job-st-worker job and generates a stress-testing HTML report from portfolio data. The tool blocks until the job completes and returns the output blob URL.

Parameters

input_url
string
required
Blob URL to a portfolio_optimization_*.json artifact that contains Prices and Weights.
config
object
required
Stress test configuration.

Returns

{
  "status": "Succeeded",
  "output_url": "https://stmcpfabricdev.blob.core.windows.net/data/stress_test_gaussian_20260322_184723.html",
  "output_name": "stress_test_gaussian_20260322_184723.html",
  "execution_name": "job-st-worker-abc123xyz"
}

Example

{
  "input_url": "https://stmcpfabricdev.blob.core.windows.net/data/portfolio_optimization_20260322_150845.json",
  "config": {
    "stress_test_mode": "gaussian",
    "stress_dict": {
      "AAPL": -0.05,
      "MSFT": -0.03
    },
    "n_samples": 5000,
    "show_corr_diff": false
  }
}

Resources

ResourceValue
Container Apps Jobjob-st-worker
Container namejob-st-worker
Env vars injectedINPUT_URL, CONFIG
Output blob prefixstress_test_
Timeout600 seconds