Skip to content
AGROTRACE

Microsoft Azure architecture

Designed around Microsoft Azure AI — with an honest implementation status.

AGROTRACE's core value — forecasting supply, grading produce from photos and answering procurement questions from an organisation's own records — depends on cloud AI services. This page shows how they fit together and exactly which are running today.

01Data flow

From the field to a procurement decision.

Data stays within the customer organisation at every step. AI services are called only from the server, with organisation-scoped inputs.

  1. Farmers · Suppliers · Procurement teams

    Field officers, farm managers, inspectors, suppliers and buyers record and use supply information.

  2. AGROTRACE web application

    Corporate website, enterprise workspace and supplier portal (Next.js).

    Target hosting: Azure Container Apps

  3. Backend API and authentication

    Server routes for AI, analysis, forecasting and jobs; sessions, invitations and role checks.

    Azure Functions for scheduled jobs

  4. Database and secure file storage

    PostgreSQL with row-level security per organisation; private photo and document storage.

    Azure Blob Storage · Key Vault for secrets

  5. Azure AI and machine learning services

    Language, vision, forecasting and mapping services called only from the server.

    Azure OpenAI · AI Vision · Machine Learning · Maps

  6. Forecasting, inspection, risk analysis and procurement intelligence

    Harvest forecasts, visible-defect analysis, supply-risk detection and an evidence-grounded assistant.

  7. Dashboards, reports and notifications

    Live dashboards, CSV and printable reports, real-time and scheduled notifications.

    Azure Monitor & Application Insights

02Service by service

Implementation status.

Statuses reflect the actual codebase and deployment. A service is marked live only after it has been tested successfully in production.

Live in production: 0Implemented in development: 6Configured, not deployed: 0Planned: 5
ServiceRole in AGROTRACEStatusDetails
Azure OpenAI ServiceAI Procurement Assistant — answers grounded in organisation-scoped dataImplemented in developmentServer-side adapter, grounding, evidence verification, rate limits and logging are implemented. Awaiting an Azure OpenAI deployment; a labelled rule-based assistant runs meanwhile.
Azure AI VisionQuality Inspection — visible-defect analysis of produce photographsImplemented in developmentImage Analysis 4.0 adapter implemented with human review. Awaiting credentials. Production grading will need a custom-trained model on labelled AGROTRACE photos.
Azure Machine LearningHarvest Intelligence — yield and supply-availability forecastingImplemented in developmentIntegration layer and endpoint contract implemented. No model has been trained or deployed yet; a labelled statistical baseline is used and its error is measured from recorded harvests.
Azure MapsFarm, supplier and supply-distribution mapsImplemented in developmentServer-side tile proxy implemented so the key never reaches the browser. Awaiting a subscription key; OpenStreetMap is used meanwhile.
Azure FunctionsScheduled risk detection and procurement remindersImplemented in developmentTimer-triggered function written (azure-functions/). Not yet deployed; the same job can run from Vercel Cron.
Azure Monitor & Application InsightsError, integration-failure and background-job monitoringImplemented in developmentTelemetry client implemented with secret and personal-data scrubbing. Activates when a connection string is configured.
Azure Blob StorageInspection photos, documents and generated reports at scalePlannedFiles are currently stored in access-controlled Supabase Storage buckets.
Azure Key VaultCentral management of API keys and secretsPlannedSecrets are currently held as server-side environment variables on the hosting platform.
Azure Container AppsHosting for the web application and custom model servicesPlannedThe application is currently hosted on Vercel and is container-ready.
Azure Data Lake StorageHistorical yield, satellite and weather data for model trainingPlannedNeeded once enough recorded harvest history exists to train a forecasting model.
Azure AI FoundryEvaluation of prompts and models before deploymentPlannedTo evaluate groundedness and refusal behaviour of the assistant before production use.

Current non-Azure components: application hosting on Vercel; database, authentication, file storage and realtime on Supabase (PostgreSQL).

03Why Azure

What Azure makes possible.