# microsoft/nvidia-omniverse-azure-operations-twin architecture

> Architecture diagram of the GitHub repository microsoft/nvidia-omniverse-azure-operations-twin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microsoft/nvidia-omniverse-azure-operations-twin
- Repository: https://github.com/microsoft/nvidia-omniverse-azure-operations-twin

## Overview

##### Main components
- Infrastructure Provisioning and Networking:
– Bicep templates for creating Azure resource groups, virtual networks, subnets and NAT/NSG rule sets.
– DNS and certificate configuration (both self-signed and Let’s Encrypt options).
- Cloud Services and Edge Components:
– Azure IoT Services, Event Hubs, and Azure Data Explorer feeding telemetry.
– API Management service deployed in a dedicated subnet.
– Application Gateway with Web Application Firewall that fronts the API management and streaming endpoints.
- Kubernetes Cluster (AKS) and associated node pools:
– General purpose/compute nodes in the main “agentpool” (for base services including Flux, ingress controllers, and standard applications).
– Memory-optimized nodes (“cachepool”) running memcached (to improve shader caching and streaming session performance).
– NVIDIA GPU nodes (“gpupool”) dedicated to the Omniverse Kit Streaming pods.
- Helm-Managed Services on AKS:
– Kit App Streaming Manager, Kit App Streaming Applications, and RMCP (Resource Management Control Plane) deployed via Helm charts.
– Supplementary services such as Flux (for GitOps) and External DNS (for dynamic DNS updates).
- ISV Custom Omniverse Kit Application:
– The kit-app-source directory contains sample modules (USD viewer, messaging, and setup) for customizing the Kit application.
– Instructions in the README describe how to containerize a kit app (with premake scripts and custom configuration).
- Web-based Front End:
– The web-app folder contains a complete React application that integrates several partitions:
- A 3D Viewport component which receives and displays the lower-latency Omniverse streaming session (with USD content).
- Components for embedding and interacting with a Power BI report (using Redux to synchronize state between the dashboard and 3D viewport).
- Additional debug and state management tools.
– The web app deployment also includes configuration for Azure Static Web Apps and integration with authentication (as seen in the authConfig template).

##### Relationships and interactions
- IoT devices send real-time telemetry data into Azure IoT Operations. That data streams via Event Hubs and Azure Data Explorer to update Power BI reports.
- Power BI is integrated into the web-app. In the UI, selection in the report (or events coming from Event Hub) update a Redux global state, which then synchronizes with the 3D Omniverse streaming viewport.
- The Omniverse Kit streaming service is deployed on the AKS cluster. It automates cloud rendering by dynamically provisioning kit app streaming sessions with GPU nodes.
- API Management (APIM) and Application Gateway sit in front of the internal services. They provide a secure, managed access layer (with custom domains and certificates) to both the streaming services and the web APIs.
- The control flow for deployments is managed by Helm charts and GitOps through Flux, using detailed Kubernetes manifests (found under the k8s/templates directories).
- Scripts and bicep modules automate Azure resource provisioning and configuration (and certificate generation) ensuring that the infrastructure is aligned with the network and security requirements.

##### Architectural patterns and design principles
- Microservices/Modular design: Each service—from the Omniverse Kit Application streaming components to Power BI integration—is developed, containerized, and deployed as an independent module.
- Infrastructure-as-Code: Bicep scripts, Helm charts, and Kubernetes manifests ensure repeatable deployments.
- Cloud-Native/Container Orchestration: AKS is used with multiple node pools (segregated by workload types) to isolate GPU-intensive workloads from others.
- GitOps and Declarative Configuration: Flux is deployed to maintain configuration state in Git and push out changes automatically.
- Secure and Scalable Networking: Azure’s API Management, Application Gateway with WAF, and DNS configuration (internal and external) provide secure exposure of the services.
- State Synchronization and Event-Driven Updates: The React web client, through Redux and event hubs, forms a bi-directional communication channel between the 3D viewport and Power BI.

##### Relevant technologies and frameworks
- Azure Cloud Services (AKS, API Management, Application Gateway, Azure DNS, Azure Container Registry)
- NVIDIA Omniverse Kit App Streaming technology, using container images sourced via NVIDIA NGC.
- Kubernetes as an orchestration layer with Helm for deployments.
- Infrastructure-as-Code tools (Bicep) for resource provisioning.
- GitOps using Flux.
- React (with Typescript), Redux, and associated tooling (Vite/Webpack) for the web client.
- Integration with external services such as Power BI and Event Hubs.

- Clear labels on all major components:
– “Azure Infrastructure” (highlighting Resource Group, Virtual Network and Subnets)
– “AKS Cluster” with subcomponents: Agent Pool (Compute), Cache Pool (Memcached), GPU Pool (Omniverse Streaming)
– “Helm/Flux Managed Services” showing Kit App Streaming Manager, Applications, RMCP, GPU Operator, Memcached, and Ingress Controllers
– “API Exposure Layer” showing API Management and Application Gateway with custom domains and certificates
– “Web Front End” with React App integrating Power BI and a 3D Viewport
– “External Services” – Azure IoT Edge, Event Hubs, Power BI, etc.
- Annotations to explain special patterns, such as “GitOps – Flux Controller,” “Infrastructure as Code – Bicep templates,” and “Service Segregation – Multiple Node Pools.”

##### Importance of detail
- Be meticulous by labeling sub-components such as “Ingress Controller (Nginx – internal)” within the AKS layer.
- Presence of automated pipelines (via Helm charts and Flux) and the security layers (NSGs, certificates, API management configuration).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Infrastructure Provisioning and Networking
    subgraph "Azure Infrastructure"
        INFRA["Azure Infrastructure\n(Resource Group, VNet, Subnets)"]:::infra
        BICEP1["Bicep Template 1"]:::infraSmall
        BICEP2["Bicep Template 2"]:::infraSmall
        BICEP_PARAMS["Bicep Parameters"]:::infraSmall
        INFRA --> BICEP1
        INFRA --> BICEP2
        INFRA --> BICEP_PARAMS
    end

    %% Cloud Services and Edge Components
    subgraph "Cloud & Edge Services"
        CLOUD["Cloud Services\n(IoT, Event Hubs, ADX)"]:::cloud
        EXT_DNS["External DNS Config"]:::infraSmall
        CLOUD --> EXT_DNS
    end

    %% API Exposure Layer
    subgraph "API Exposure Layer"
        API["API Exposure\n(API Management, App Gateway+WAF)"]:::api
        CERTS["Certificate Scripts"]:::api
        AUTH["Auth Config"]:::api
        API --> CERTS
        API --> AUTH
    end

    %% AKS Cluster Tier
    subgraph "AKS Cluster"
        AKS["AKS Cluster"]:::aks
        subgraph "Agent Pool (Compute)"
            AGENT["Compute Nodes\n(Flux, Ingress, Base Services)"]:::aks
            INGRESS["Ingress Controller (Nginx)"]:::aks
        end
        subgraph "Cache Pool"
            CACHE["Cache Nodes\n(Memcached)"]:::aks
        end
        subgraph "GPU Pool"
            GPU["GPU Nodes\n(Omniverse Streaming)"]:::aks
        end
    end

    %% Helm/Flux Managed Services on AKS
    subgraph "Helm/Flux Managed Services"
        HELM["Helm Managed Services"]:::helm
        MANAGER["Streaming Manager"]:::helm
        APPS["Streaming Applications"]:::helm
        RMCP["Resource Management (RMCP)"]:::helm
        FLUX["Flux Controller"]:::helm
        MEMCACHED["Memcached Service"]:::helm
        OMNIVERSE["NVIDIA Omniverse Config"]:::helm
        HELM --> MANAGER
        HELM --> APPS
        HELM --> RMCP
        HELM --> FLUX
        HELM --> MEMCACHED
        HELM --> OMNIVERSE
    end

    %% ISV Custom Omniverse Kit Application
    subgraph "Custom Kit Application"
        ISV["Custom Kit Application"]:::isv
        APPS_DIR["Application Modules"]:::isv
        EXT_DIR["Extension Modules"]:::isv
        ISV --> APPS_DIR
        ISV --> EXT_DIR
    end

    %% Web Front End
    subgraph "Web Front End"
        WEB["Web Front End\n(React, Redux, 3D Viewport, Power BI)"]:::web
        REACT_APP["React Application"]:::web
        APP_TSX["App.tsx"]:::web
        INDEX_CSS["index.css"]:::web
        PKG["Package Config"]:::web
        VITE["Vite Config"]:::web
        WEB --> REACT_APP
        WEB --> APP_TSX
        WEB --> INDEX_CSS
        WEB --> PKG
        WEB --> VITE
    end

    %% External Services
    subgraph "External Services"
        IOT["IoT Devices/Edge"]:::external
        EVHUB["Event Hubs & ADX"]:::external
        POWERBI["Power BI"]:::external
        IOT -->|"Telemetry"| EVHUB
        EVHUB -->|"Feeds"| POWERBI
    end

    %% Interconnections
    BICEP1 --- INFRA
    BICEP2 --- INFRA
    BICEP_PARAMS --- INFRA
    INFRA --> CLOUD
    CLOUD --> API
    API --> AKS
    AKS --> HELM
    MANAGER --- GPU
    APPS --- WEB
    RMCP --- WEB
    INGRESS --- WEB
    FLUX --- AKS
    APPS --- ISV
    GPU --- WEB
    POWERBI --- WEB
    WEB --- POWERBI

    %% Click Events for Infrastructure Provisioning and Networking
    click BICEP1 "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/bicep/step-1.bicep"
    click BICEP2 "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/bicep/step-2.bicep"
    click BICEP_PARAMS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/tree/main/bicep/parameters/contoso/"

    %% Click Events for Cloud Services and Edge Components
    click EXT_DNS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/external-dns/azure.json"
    click EXT_DNS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/external-dns/manifest.yaml"

    %% Click Events for AKS Cluster (Kubernetes Manifests)
    click AKS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/tree/main/k8s/templates/"
    click INGRESS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/nginx-ingress-controller/values-internal.yaml"
    click INGRESS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/nginx-service/manifest.yaml"

    %% Click Events for Helm-Managed Services
    click MANAGER "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/kit-appstreaming-manager/values.yaml"
    click APPS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/kit-appstreaming-applications/values.yaml"
    click RMCP "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/kit-appstreaming-rmcp/values.yaml"
    click FLUX "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/flux2/values.yaml"
    click MEMCACHED "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/memcached/values.yaml"
    click OMNIVERSE "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/k8s/templates/ngc-omniverse.yaml"

    %% Click Events for ISV Custom Omniverse Kit Application
    click ISV "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/tree/main/kit-app-source/"
    click APPS_DIR "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/tree/main/kit-app-source/source/apps"
    click EXT_DIR "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/tree/main/kit-app-source/source/extensions"

    %% Click Events for Web Front End
    click REACT_APP "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/tree/main/web-app/"
    click APP_TSX "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/web-app/src/App.tsx"
    click INDEX_CSS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/web-app/src/index.css"
    click PKG "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/web-app/package.json"
    click VITE "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/web-app/vite.config.ts"
    
    %% Click Events for API Exposure Layer
    click CERTS "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/scripts/00-create-and-upload-certificates.sh"
    click AUTH "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/scripts/authConfig.tsx.template"
    click AUTH "https://github.com/microsoft/nvidia-omniverse-azure-operations-twin/blob/main/web-app/src/authConfig.tsx"

    %% Style Definitions
    classDef infra fill:#F8B195,stroke:#D62929,stroke-width:2px;
    classDef infraSmall fill:#FAD7A0,stroke:#D35400,stroke-width:2px;
    classDef cloud fill:#C06C84,stroke:#8B1E3F,stroke-width:2px;
    classDef api fill:#355C7D,stroke:#2A363B,stroke-width:2px;
    classDef aks fill:#6C5B7B,stroke:#355C7D,stroke-width:2px;
    classDef helm fill:#F67280,stroke:#C06C84,stroke-width:2px;
    classDef isv fill:#99B898,stroke:#5D8AA8,stroke-width:2px;
    classDef web fill:#C7CEEA,stroke:#52616B,stroke-width:2px;
    classDef external fill:#F8C471,stroke:#DC7633,stroke-width:2px;
```
