Skip to content

Step Handler Env Vars

dsoitel edited this page Dec 8, 2022 · 2 revisions

Step handlers will be run in a context of Environment variables given by the platform you can use in your Python project:

  • AZURE_TENANT_ID: Azure tenant Id for internal identity to call API
  • AZURE_CLIENT_ID: Azure client Id for internal identity to call API
  • AZURE_CLIENT_SECRET: Azure client secret for internal identity to call API
  • CSM_SIMULATION_ID: Unique Simulation Id
  • CSM_API_URL: Cosmo Tech Platform API URL
  • CSM_API_SCOPE: Cosmo Tech Platform API OAuth2 Security Scope
  • CSM_DATASET_ABSOLUTE_PATH: Path containing datasets. Default: /mnt/scenariorun-data
  • CSM_PARAMETERS_ABSOLUTE_PATH: Path containing parameters. Default: /mnt/scenariorun-parameters
  • AZURE_DATA_EXPLORER_RESOURCE_URI: ADX URI in the form https://[CLUSTER].[LOCATION].kusto.windows.net
  • AZURE_DATA_EXPLORER_RESOURCE_INGEST_URI: ADX Ingest URI in the formhttps://ingest-[CLUSTER].[LOCATION].kusto.windows.net
  • AZURE_DATA_EXPLORER_DATABASE_NAME: ADX database name
  • CSM_RUN_TEMPLATE_ID: Solution Run template Id
  • CSM_CONTAINER_MODE: Solution run mode (can be an array): handle-parameters, validate, prerun, engine, postrun
  • CSM_PROBES_MEASURES_TOPIC: Event Hub URI for probes measures in the form amqps://[CLUSTER].servicebus.windows.net/[EVENT_HUB_NAME]
  • CSM_SIMULATION: Cosmo Tech Simulation name in case of direct run
  • CSM_ORGANIZATION_ID: Cosmo Tech Organization Id
  • CSM_WORKSPACE_ID: Cosmo Tech Workspace Id
Clone this wiki locally