Skip to main content

Overview

run_risk_job triggers the job-risk-worker job and runs selected risk analytics from RiskMCP. Depending on the selected function, it returns an artifact in HTML, PNG, or CSV format. 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 with Prices and Weights.
config
object
required
Risk analytics configuration.

Returns

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

Example

{
  "input_url": "https://stmcpfabricdev.blob.core.windows.net/data/portfolio_optimization_20260322_150845.json",
  "config": {
    "function": "copula_density",
    "copula_density": {
      "copula": "gaussian",
      "asset1": "AAPL",
      "asset2": "MSFT"
    }
  }
}

Resources

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