Skip to content

petertuton/orchestrator-python

Repository files navigation

Functions Orchestrator

Overview

This project contains an Azure Function that processes Azure Event Grid events and sends data to an HTTP endpoint then onto Azure Event Hub. Note: This is a GitHub Copilot Edits port from my C# repo, so I've not yet updated this README suitable for Python...

Prerequisites

Setting Up Environment Variables

Using Azure Portal

  1. Navigate to your Azure Function App in the Azure Portal.
  2. Go to the "Environment variables" section under "Settings".
  3. Click on "+ Add".
  4. Enter SimulatorUrlPrefix as the name and http://<container-apps-name-for-httpserver>/ as the value. Click "Apply"
  5. Enter SimulationId along with the uuid of the simulation. Click "Apply".
  6. Enter SimulationSchema along with the JSON for the schema. Click "Apply".
  7. Click "Apply" to apply all the changes.

For more detailed instructions, you can refer to the official documentation: Configure app settings for Azure Functions.

Local Development

For local development, you can set environment variables in the local.settings.json file. Here is an example of how to set the SimulatorUrlPrefix environment variable:

  1. Open the local.settings.json file.
  2. Add the SimulatorUrlPrefix environment variable under the Values section.
  3. Enter the URL of the Azure Container Apps app.
  4. Save the file.
{
    "IsEncrypted": false,
    "Values": {
        "AzureWebJobsStorage": "UseDevelopmentStorage=true",
        "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
        "SimulatorUrlPrefix": "http://\<container-apps-name-for-httpserver\>",
        "SimulationId": "1234-5678-9012-3456",
        "SimulationSchema": "{ 'key': 'value' }"
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published