Planta Viva: industrial digital twin with Microsoft Fabric Apps
From floor plan to digital twin: an interactive 3D model, built with Fabric Apps and Rayfin, that brings together layered data, predictive analysis, and climate factors in a single platform.

By Tamires Cavani, 11/18/2026
Large industrial operations generate energy, safety, production, and input consumption data in different volumes and systems. The challenge is rarely collecting this data; it is seeing it in the physical context where things happen. A table shows that an indicator is critical, but does not tell where in the factory the problem is.
The Planta Viva project addresses this gap. The idea is to reconstruct the factory layout in 3D and link each area to its corresponding operational data. The result is a digital twin: a navigable replica of the factory, where colors, legends, and parameters indicate the situation of each sector, and where the user can enter the environments to see the details.
The solution was built from the actual layout of a real case of an industrial multinational. For confidentiality reasons, all data displayed in this demonstration is fictional: it was generated solely to illustrate how the solution works, without reflecting real numbers, performance, or operations of the company.
Note on the case and data: the geometry and organization of the layout correspond to a real industrial facility of a multinational; the values, indicators, alerts, and risk scenarios presented throughout this article are fictional data, created exclusively for demonstration purposes.
The living plant concept
A living plant is a visual and interactive representation of the factory that remains updated with real operational data. Instead of flat reports, the user sees the physical space and, over it, layers of information:
- Colors by criticality: structures and areas are colored to signal the status of each situation, from normal to critical.
- Reliefs and structures: additional visual parameters highlight equipment or zones with specific characteristics.
- Legends: make it easier to quickly identify where the occurrences are.
- Internal navigation: it is possible to enter the facilities and consult the interface, parameters, and data of each environment in an interactive way.
The term "4D" is often used to describe this approach, because the 3D model receives a dynamic dimension of data that changes over time. It is worth noting that, in engineering and construction jargon, 4D BIM has a stricter meaning: the 3D model linked to the construction schedule. Therefore, in materials for a technical audience, "digital twin" or "living plant" is a safer choice.

Macro view: what the solution monitors
The goal is to offer a holistic view of the factory, covering various sectors in one place:
- energy;
- safety;
- industrial production and products;
- natural gas consumption;
- associated agricultural areas, such as vegetable cultivation.
The perspective is industrial: the focus is to support operational, risk, and efficiency decisions, not just to present indicators.
Solution architecture
The entire structure was built within Microsoft Fabric, Microsoft's unified cloud analytics platform. The database, transformations, predictive logic, and the application itself that displays the 3D plant all live in the same environment, as a Fabric App, without depending on an external interface.
Data layers: bronze, silver, and gold
The data is organized in the so-called medallion architecture, the pattern recommended by Microsoft for Fabric:
- Bronze: raw data, as it comes from the sources.
- Silver: validated and cleaned data.
- Gold: enriched, modeled, and ready-for-analysis data.
The gold layer should be modeled in a star schema and optimized for reporting, and the silver and gold layers should use Delta tables. In Fabric, the implementation can use lakehouses, a data warehouse, or a combination of both; a common arrangement is to keep bronze and silver in lakehouses and the gold layer in a warehouse, which offers T-SQL.
Update and integrations
The warehouse is parameterized and fed through an update mechanism (gateway) and integrations with external APIs. The data gateway is the component that connects the cloud service to sources that are inside the company's network, such as factory supervision systems. The 3D application reads the gold layer tables directly from Fabric, without copying the data to an external tool.
Integration with weather data
Currently, the solution consumes an open weather API, Open-Meteo, for temperature. The goal is to allow the plant to interact with risk scenarios related to weather: rain and cloudy skies, for example, reduce the energy capture from solar panels.
Open-Meteo itself offers variables more suitable for this scenario, such as solar radiation and global tilted irradiance (GTI), useful for photovoltaics. The radiation variables are averages from the previous hour, which should be considered when cross-referencing with generation data. Expanding ingestion to precipitation, cloud cover, and radiation is the natural path for the project's evolution.
An important point of attention: free use of the API is restricted to non-commercial purposes, with limits on calls per minute, hour, and day, and requires attribution (CC BY 4.0 license). For a commercial deployment, it is necessary to purchase a paid subscription or host the open source server on your own.
How the API enters the pipeline
In Fabric, the call can be made by a Data Factory pipeline (copy activity with Web connector or Web activity) or by a Python notebook. The typical flow is: schedule the call, record the raw response in the bronze layer, normalize in silver (one row per hour and per location), and expose in gold already related to the plant areas.
From blueprint to model: building the 3D model
The real floor plan of the factory was reconstructed in 3D, and the data was mapped to each field, area by area. This means the model is not illustrative: it reflects the actual geometry and organization of the facility.
The plant is displayed through a Fabric App built with Rayfin. The Fabric App is a Fabric item, in public preview, consisting of a web application running within the platform itself: it reads data from Fabric, writes its own data to a Fabric SQL database that comes with the app, and authenticates users with Microsoft Entra ID. Rayfin is an open-source CLI and SDK (MIT license) for creating and deploying these apps: the data model is defined in TypeScript, and a single command provisions the SQL database, a GraphQL API (via Data API Builder), authentication, and static hosting. The data recorded is stored in OneLake by default. As it is a complete web application, the interface is not limited to report visuals: there are public examples of 3D digital twins with Rayfin using React, Vite, and Three.js. Some technical points to note:
- each element of the 3D model needs to have an identifier that matches the key in the gold table (for example, the area or equipment code), so that criticality colors and detail panels are linked to the correct data;
- the application queries the gold layer and applies color and legend rules by criticality range;
- Fabric Apps and Rayfin are in preview, still without support for ALM (application lifecycle management), private links, or native management of multiple environments, and Fabric Apps is not available in all regions;
- performance with large models should be tested, adjusting the level of detail of the geometry.

Predictive analysis and data science
The predictive layer consumes the gold table. Since the data is already processed and modeled, it is possible to train and apply models following the conventional data science flow: reading the curated table, feature engineering, training, evaluation, and scoring, all within Fabric.
Fabric offers the complete environment for this: notebooks, experiment tracking with MLflow, AutoML (based on FLAML), and the PREDICT function, which allows you to score models in batch and write the results to tables that the 3D application then displays. A good practice is to always train on silver or gold data, never on bronze, which may contain duplicates and inconsistencies.
The value appears when data from different areas of the plant are crossed. This allows for the identification of production and safety impacts, anticipation of risks, and, in the case of climate, estimation of the effect of cloudiness and rain on solar energy generation.
Native alternative: digital twin builder
Microsoft has made available, in preview, the digital twin builder within Fabric's Real-Time Intelligence. It allows you to model an ontology of entities and relationships from IT and operational technology data, store them in OneLake, and visualize them with Power BI or Real-Time Dashboards, with alerts via Activator. It is different from the Azure Digital Twins service and requires that the data be in a lakehouse first. It does not replace the 3D rendering of the plant, but it is a way to provide semantic structure to assets and to work with real-time data.
Expected benefits
- Quick location: visually identify where critical situations are, without cross-referencing spreadsheets.
- Integrated view: energy, safety, production, and consumption in a single environment.
- Single platform: fewer integrations and fewer tools, with unified security and governance in Fabric.
- Risk anticipation: predictive models and weather data support decisions before problems occur.
- Custom interface: as a web application running on Fabric, the 3D experience can be designed according to the operation, and not just with the features of a report.
Limitations and next steps
- Expand climate variables (precipitation, clouds, radiation) and validate data coverage for the plant location.
- Define and document the predictive problem, the model, and the performance metrics.
- Resolve the commercial use license for the climate data source.
- Monitor the evolution of Fabric Apps (in preview) and test the performance of the 3D renderer with large models.
- Consider preview features (Fabric Apps, digital twin builder, AutoML) with caution in production.
- Evolve to real-time data when telemetry sources are available.
Conclusion
Planta Viva shows that an industrial digital twin does not require a fragmented technology stack. With the medallion architecture, a warehouse in Fabric, integration with external APIs, predictive models on the gold layer, and a 3D model of the real plant, it is possible to give physical context to the data and transform the operation into something that can be seen, explored, and anticipated.
