sovereignty
1 TopicRunning green hydrogen export plants with AI agents on Azure
Before you read. I wrote this paper for my capstone in the Azure Master Architect Program. The design has not been built, and the test in section 9 is a simulation. The value figures come from the case and from that simulation, and the cost figures are my estimates at Azure list prices. All of them are illustrative, not guaranteed. The views are my own. Summary Most green hydrogen export plants will start life on fixed dispatch rules and spreadsheets. In the case study behind this paper, that costs a 500 MW solar, wind and electrolysis complex 8 to 10% of its ammonia output. The plant also earns a premium of EUR 200 a tonne under EU rules, but only on tonnes it can prove, and under the rules in force the proof must hold hour by hour from 2030. This paper describes a way to run such a plant with AI agents on Microsoft Azure. An optimiser makes the plan, and five agents do the work around it. A policy layer checks every agent action, one gateway is the only write path to the plant, and the safety system stays hardwired. Every hour of production is sealed as certification evidence as it happens. I have not built it. I tested the logic on a simulated plant over a year of real weather and priced it on Azure at about EUR 0.59 a tonne. The paper gives the pattern, the Azure architecture with the reason for each service, the test and the cost. The problem: one plant, four clocks An export plant must keep four clocks in step, and they rarely agree (Table 1). Table 1. The four clocks of a green hydrogen export plant Clock What it demands What goes wrong on fixed rules Sun and wind Power swings by the minute, and dust or calm can cut it for hours The ammonia loop trips when the hydrogen buffer runs dry Electrolyser stacks Stacks age with every hard ramp and start-stop Every stack runs the same duty, whatever its health Tanks and ships Tank space and loading windows are fixed A late ship is re-planned by phone and email EU rules Every tonne must prove additionality and correlation in time and place Evidence is built by hand at month end Fixed rules are safe, but they cannot look ahead. They find out about a dust front when it arrives. The case puts the cost at 8 to 10% of output, and since those tonnes would come from assets that are already paid for, most of their value is margin. The case plant is on Morocco’s Atlantic coast. The four clocks are the same for any plant that runs electrolysers on variable renewables and sells into the EU. Why the proof matters now The premium in the case is EUR 200 a tonne, or EUR 80M a year at 400,000 tonnes. The same hourly data also feeds the Carbon Border Adjustment Mechanism, which has applied to hydrogen and ammonia imports since January 2026. Power is matched to production by calendar month until the end of 2029 and by the hour from 2030. The Commission also plans to postpone some of these requirements and has not said which dates will move. So, the evidence must be automatic from the first day, and the rule version has to change without a rebuild. Four ways to run the plant I compared four ways to run the plant and chose the last one (Table 2). Table 2. Four ways to run the plant Option What it is Verdict Fixed rules and spreadsheets Dispatch rules, manual re-plans, evidence built at month end Safe, but blind to the next hour. Loses 8 to 10% of output An optimiser alone A planning model, with people doing the rest Recovers most of the output. People still explain each plan, deal with shippers and build the proof One AI agent in charge A single agent with every tool, setpoints included Quick to demo. No safety case accepts a language model in the control path Agents around a deterministic core An optimiser plans. Agents explain, negotiate, recommend and record, inside hard limits Chosen. The maths stays deterministic, the safety case stays intact and every hour is proven The optimiser does the arithmetic, and I expect most of the extra output to come from it. The agents are there for the work around the plan: a stack that starts to drift at 11:15 and needs someone to approve a derate, a ship that arrives six hours late, a verifier who wants the proof for a cargo before it sails. Today that work runs on phone calls, email and spreadsheets. The pattern: agents around a deterministic core The study evolves around five agents and gives each an autonomy level. The levels follow what a mistake can break, whatever the model is able to do. Certification is the only fully autonomous agent, because it records and never controls. Safety monitoring has the least autonomy: it briefs the operator, who decides on every alarm. Table 3. Five agents and their autonomy levels Agent Owns Autonomy People keep Board measure Renewable Dispatch Electrolyser load against sun, wind and price forecasts L3, acts within the operating envelope The envelope Output against plan Degradation Management Stack utilisation, to extend stack life L2, recommends Approval of each derate Stack life Storage and Shipping Tanks and vessel loading, with shipper agents L3, acts within contract terms Contracts and prices Cargoes on time Certification Evidence Hourly correlation and additionality proofs L4, autonomous, records only The independent audit Certified share, premium realised Safety Monitoring Hydrogen and ammonia safety telemetry L1, assists Every alarm decision Licence to operate Under the agents sit four layers of control, and none of them is a language model (Figure 1). A deterministic optimiser, a mixed-integer linear programme, makes the plan. Ramp rates, tank levels, berth windows and the matching rule are hard constraints, and the same inputs always give the same plan. A policy layer checks every tool call before it runs and answers allow, needs human or deny. When it cannot decide, it denies. I would write it in the Agent Control Specification, which keeps the rules outside the model, as code. A setpoint gateway on site is the only write path to the control system, and it checks the limits and interlocks again. The safety instrumented system and the emergency shutdown stay hardwired, with no network path from any agent. Figure 1. Five agents under one orchestrator. Policy checks every action, and one gateway is the only write path to the plant. The orchestrator is a fixed workflow on Microsoft Agent Framework, with a checkpoint at every step and a pause wherever a person decides. I rejected a group chat between agents, because after a fault nobody could replay it for a lender. An approval describes the plant as it was when the card was sent, and a dust front can arrive in ten minutes, so the policy check runs again after the operator approves. The architecture on Azure Figure 2 shows the full design. It reads from the bottom up. The control system and the safety system run the plant as they do today. Next to them, a three-node Azure Local cluster runs two things: Azure IoT Operations, which reads every tag over OPC UA and keeps working when the link drops, and the setpoint gateway, the only component allowed to write back. This layer stays on site because there is no Azure region in Morocco, and because no plant should depend on a cloud link to stay safe. A private ExpressRoute circuit links the site to one EU region. In the reference design that is Sweden Central, for its three availability zones and its Foundry services, with North Europe for any service it does not offer. Microsoft Fabric holds the live twin and the full history. I preferred it to assembling separate ingestion, time-series and reporting services, because one capacity with one security model is simpler to run, and OneLake keeps the history in open Delta tables that a lender can read without the platform. The optimiser is a Container Apps job, since it is a deterministic solver that starts every 15 minutes and should cost nothing in between. The agents run in Foundry Agent Service. They call models in the EU Data Zone through Azure API Management, which routes between a small and a reasoning model, caps the tokens of each agent and logs its cost. No language model computes a setpoint, so the small model can take about three calls in four. Each agent reaches the plant only through allow-listed MCP tools, under its own Entra Agent ID, so it can be audited and revoked alone. Table 4 gives the reason for each service. Figure 2. Reference architecture on Azure. The site keeps control, safety and raw plant data. One EU region holds the twin, the agents and the sealed evidence. Table 4. Azure products by layer, and why I chose them Layer Products and standards Why these Plant edge Azure Local with AKS, Azure IoT Operations, Azure Arc, Defender for IoT The plant has to run, and keep recording, without the cloud. Arc manages the site with no inbound ports. Defender for IoT watches OT traffic passively Network ExpressRoute, Azure Firewall Premium, Private Link Plant data never crosses the public internet, no service has a public endpoint, and all egress is inspected Data and twin Microsoft Fabric: Eventstream, Eventhouse, OneLake, digital twin builder, Power BI One capacity and one security model for per-second telemetry, time-series queries and board views. History stays in open Delta tables Forecast and plan Aurora 1.5 in Foundry, Azure Machine Learning, Azure Container Apps Aurora forecasts radiation and 100 m wind by the hour, ten days ahead. Azure Machine Learning versions the stack-health models. Container Apps runs the optimiser as a job that scales to zero Agents and models Microsoft Agent Framework, Foundry Agent Service, models in the EU Data Zone, API Management, MCP tools, Azure AI Search Workflows with checkpoints and built-in pauses for people. Managed hosting with full tracing. Prompts stay in the EU. Search grounds answers in procedures, contracts and rule texts People and partners Microsoft Teams, Azure Logic Apps, App Service, Entra B2B, A2A Approvals arrive where operators already work, with a timeout and an escalation. Verifiers and lenders sign in as guests to a read-only portal. Shipper agents are authenticated at the gateway Trust and evidence Agent Control Specification, Entra Agent ID, Confidential Ledger, Key Vault Managed HSM, immutable Blob Storage, Purview, Sentinel Policy sits outside the model. The operator cannot rewrite the ledger. Signing keys never leave the HSM. Sentinel sees OT and IT alerts in one place Operations Azure Monitor, GitHub Actions with Bicep, Azure Policy, Cost Management One release path for prompts, tools, policies and infrastructure. Policy allows EU regions only. Cost is tagged by agent and reported per tonne Two services are in preview, Aurora in Foundry and the digital twin builder in Fabric, and each has a fallback that changes nothing else. Proving every hour The certification agent produces what the premium is paid for. Every hour it measures, calculates, records, signs and seals (Figure 3). Figure 3. The evidence chain. It runs every hour, which gives 8,760 sealed records a year. Four choices make the proof hold up. Rules as code, with the version in the record. When the rules change, both versions run side by side and sealed hours stay sealed. One record per hour: the power by source, the matching in time and place, additionality, and the mass balance from hydrogen to ammonia, tank and ship. A seal the plant cannot rewrite. Each record is hashed, signed with a key in Key Vault Managed HSM and written to Azure Confidential Ledger, which is append-only and protected from insiders, the cloud provider included. Verifiers check each receipt against the identity of the ledger, without having to trust the plant. I tested the third choice in my demo. I changed one number in a chain of 24-hourly records, and the chain caught it. When I also recomputed every later hash, the chain verified again, and only a copy of the last hash kept outside the plant showed the change. That is why a database table with an audit log would not do: the administrator who can change the table can change the log. The target is 8,760 sealed hours a year, with the evidence pack for each cargo ready when loading starts, for a scheme such as CertifHy. Evaluation, security and resiliency A change goes live, and an agent moves up a level, only after the same gates: zero agent actions outside the limits in a full-year replay, zero impermissible behaviours in ASSERT, 100% tool input accuracy on write tools in the Foundry evaluators, and a ledger receipt for every hour. Agents bring two threats that a classic plant design does not have: instructions injected through a document or a partner’s agent, and an agent acting outside its job. So, Prompt Shields screen every input, partner text is treated as data, and no agent has a tool that changes a contract term or reaches the safety system. My reading of the EU AI Act is that the agents are not high-risk, because none is a safety component, and each plant should confirm that with counsel. When something breaks, the plant carries on. If the link drops, the control system holds its setpoints and the edge replays every tag later. If an agent or a model fails, no policy answer means no action. If the region fails, the sealed records are already copied to a second EU region, and the agents redeploy from code. Testing it on a twin before you build Before anyone buys hardware, I would run two copies of the plant on the same weather for a full year, one on fixed rules and one with the pattern. I did this for the case plant on a simple twin, with 8,760 hours of real weather for a site on Morocco’s Atlantic coast. The plant is my assumption, and it makes about 275,000 tonnes a year against the 400,000 of the case (Table 5). Table 5. The simulated year, November 2025 to October 2026, same plant and same weather. The twin has 800 MWp of solar, 700 MW of wind, 500 MW of electrolysers and a 200 MWh battery. Measure Fixed rules With the pattern Difference Ammonia produced 253,883 t 275,146 t 8.4% more Grid power bought 100,005 MWh 26,824 MWh 73% less Share of output that passes the hourly rule 92.2% 96.6% 4.4 points more Electrolyser starts and stops 7,292 4,828 34% fewer Ammonia loop trips 1 0 The twin is planning code with scripted events, and no language model runs in it. The forecast error is simulated. I also tuned the fixed rules run to the 8 to 10% gap in the case, so the extra ammonia is the brief’s own number coming back. Figure 4. Daily value of the pattern against fixed rules in the simulated year, at EUR 500 a tonne of ammonia, EUR 200 of premium and EUR 90 a MWh of grid power. What the replay adds is the shape of the result. The plan bought 73% less grid power, which is why more of the output passes the hourly rule. In October the plant with the pattern made slightly less ammonia than the plant on fixed rules and still finished EUR 1.4M ahead, because it bought a fifth of the grid power. It was also behind on 84 of the 365 days (Figure 4). On each of them the plan was holding hydrogen back for what came next. The value came back later, but a daily report shows a loss, so I would judge the year and put the losing days in the board report. What it costs I priced every Azure line of the design at list prices of November 2026, for the 400,000 tonnes a year of the case. It comes to about EUR 345k a year, and EUR 237k after five savings such as a reserved Fabric capacity, a small model first and test environments paused out of hours. That is EUR 0.59 a tonne, next to a premium of EUR 200 on the same tonne. The agents and their models are 11% of that bill. Trust, security and data are 56%. Anyone who budgets an agent system by counting tokens will miss most of the cost. With delivery and edge servers I estimate EUR 3.2 to 4.0M over the first three years, indicative until a partner quotes it. Proving 1% more tonnes is worth EUR 0.8M a year, 3.4 times the Azure run cost. Where the pattern does not fit I would not use this pattern where there is no reliable process model to optimise against, where telemetry is thin, or where someone wants AI inside the safety function. In the first two cases, start with data and a planning model. In the third, the answer is no. My own work leaves two things open. The language-model agents and their evaluation are designed and have not been run. And a sealed record is not a certified tonne until a certification body accepts the method. Within those limits I expect the pattern to carry to e-fuels, desalination, chemicals and mining, wherever AI sits next to process safety and a buyer or regulator wants proof. Conclusion My recommendation is to let an optimiser plan, to give the agents the work around the plan, and to design the hourly proof as carefully as the plant itself. Start with ten weeks on the plant’s own data. If the gain does not show up there, the board will know before it has spent the build budget. References Links checked in November 2026. [1] Microsoft, Azure Master Architect Program, FY27 cohort. Case Study 26: Agentic green-hydrogen export plant operations for a Moroccan energy developer. Program material, 2026. [2] Commission Delegated Regulation (EU) 2023/1184 of 10 February 2023, on the production of renewable fuels of non-biological origin. https://eur-lex.europa.eu/eli/reg_del/2023/1184/oj [3] European Commission. CBAM definitive regime, applying from 1 January 2026. https://taxation-customs.ec.europa.eu/carbon-border-adjustment-mechanism/cbam-definitive-regime_en [4] FuelCellsWorks. EU confirms plans to delay green hydrogen production rules as market growth falls short. 29 October 2026. https://fuelcellsworks.com/2026/10/29/h2/eu-confirms-plans-to-delay-green-hydrogen-production-rules-as-market-growth-falls-short [5] Bird, S. Build agents you can trust across any framework with open evals and a control standard. Microsoft Foundry blog, 2 June 2026. https://devblogs.microsoft.com/foundry/build-2026-open-trust-stack-ai-agents/ [6] IEC 61511, functional safety for the process industry. IEC 62443, security for industrial automation and control systems. [7] Microsoft Learn. Microsoft Agent Framework workflows: checkpoints and human-in-the-loop. https://learn.microsoft.com/en-us/agent-framework/workflows/checkpoints [8] Microsoft Learn. What is Azure IoT Operations? https://learn.microsoft.com/en-us/azure/iot-operations/overview-iot-operations [9] Microsoft Foundry model catalog. Aurora-1.5, lifecycle: preview. https://ai.azure.com/catalog/models/Aurora-1.5 [10] Microsoft Learn. What is digital twin builder (preview)? Microsoft Fabric. https://learn.microsoft.com/en-us/fabric/real-time-intelligence/digital-twin-builder/overview [11] Microsoft Learn. About Azure confidential ledger. https://learn.microsoft.com/en-us/azure/confidential-ledger/overview [12] Commission Implementing Decision (EU) 2024/3180 of 19 December 2024, recognising the CertifHy voluntary scheme. https://eur-lex.europa.eu/eli/dec_impl/2024/3180/oj [13] Liu, C. One requirement, many failure paths: evaluate, control, and optimize with ASSERT and ACS. Microsoft, 24 August 2026. https://commandline.microsoft.com/safety-requirements-failure-paths-assert-acs/ [14] Microsoft Learn. Agent evaluators for generative AI, Microsoft Foundry. https://learn.microsoft.com/en-us/azure/foundry/concepts/evaluation-evaluators/agent-evaluators [15] Regulation (EU) 2024/1689 (AI Act), Annex III, point 2. European Commission, guidelines on high-risk AI systems, updated 19 October 2026. https://digital-strategy.ec.europa.eu/en/policies/guidelines-ai-high-risk-systems [16] Open-Meteo. Historical Weather API, based on the ERA5 reanalysis. Dust from NASA POWER and the Copernicus Atmosphere Monitoring Service. https://open-meteo.com/en/docs/historical-weather-api [17] Microsoft Azure. Pricing calculator. List prices of November 2026. https://azure.microsoft.com/en-us/pricing/calculator/62Views0likes0Comments