### Start local server Source: https://github.com/azure/odinforazurelocal/blob/main/tools/README.md Launch the static web server required for running browser demos. ```powershell pwsh -NoProfile -File .\tests\serve.ps1 -Port 5500 ``` -------------------------------- ### Install FFmpeg Source: https://github.com/azure/odinforazurelocal/blob/main/tools/README.md Install FFmpeg via winget to enable conversion of recorded WebM files to MP4 format. ```powershell winget install --id=Gyan.FFmpeg -e ``` -------------------------------- ### Install dependencies Source: https://github.com/azure/odinforazurelocal/blob/main/tools/README.md Run these commands from the repository root to install Playwright and the required Chromium browser build. ```powershell npm install npx playwright install chromium ``` -------------------------------- ### Start Local Web Server for Offline Access Source: https://github.com/azure/odinforazurelocal/blob/main/README.md Execute this command in the repository root to launch the local web server for offline usage. ```powershell PowerShell.exe -ExecutionPolicy Bypass -File .\tests\serve.ps1 ``` -------------------------------- ### ODIN Sizer Export Structure Source: https://github.com/azure/odinforazurelocal/blob/main/docs/json-schema/README.md Example of the JSON structure for an ODIN Sizer export, including metadata and workload definitions. ```jsonc { "_meta": { "tool": "ODIN Sizer for Azure Local", "version": 4, // SIZER_VERSION — a PAYLOAD-FORMAT integer, not a release version "exportedAt": "2026-06-02T10:00:00.000Z", "url": "https://azure.github.io/odinforazurelocal/sizer/index.html" }, "data": { "clusterType": "standard", // single | standard | rack-aware | disaggregated | aldo-mgmt "nodeCount": "3", "resiliency": "3way", "workloads": [ { "id": 1, "type": "vm", "name": "Prod VMs", "vcpus": 8, "memory": 32, "storage": 256, "count": 20 }, { "id": 2, "type": "aks", "name": "AKS", "workerNodes": 4, "workerVcpus": 8, "workerMemory": 32 } ] } } ``` -------------------------------- ### Designer Export JSON Structure Source: https://github.com/azure/odinforazurelocal/blob/main/docs/json-schema/README.md Example of the JSON structure for a Designer configuration export. The state object contains the configuration fields, while version and exportedAt are metadata. ```jsonc { "version": "0.23.04", // metadata only — the producing app version; NOT validated "exportedAt": "2026-08-05T10:00:00.000Z", "state": { "scenario": "connected", // connected | disconnected | rackscale | m365local "architecture": "hyperconverged", "nodes": "3", // node count is stored as a string "witnessType": "Cloud", "storage": "switchless", "securityConfiguration": "recommended", "securitySettings": { "driftControlEnforced": true, "bitlockerBootVolume": true, "bitlockerDataVolumes": true, "wdacEnforced": true, "credentialGuardEnforced": true, "smbSigningEnforced": true, "smbClusterEncryption": true } // … many more optional fields; see the schema for the full list } } ``` -------------------------------- ### Run demo scripts Source: https://github.com/azure/odinforazurelocal/blob/main/tools/README.md Execute specific demo walkthroughs or run the PowerPoint deck generation test. ```bash npm run demo:sizer ``` ```bash npm run demo:full ``` ```bash npx playwright test --config=tools/playwright.config.js demos/generate-disagg-fc-deck.spec.js ``` -------------------------------- ### Define Registration Parameters Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Set the required environment variables for tenant, subscription, and Arc Gateway resource ID. ```powershell # Define tenant and subscription $Tenant = "YourTenantID" $Subscription = "YourSubscriptionID" $RG = "YourResourceGroupName" $Region = "eastus" # Do not use spaces or capital letters # Define Arc Gateway Resource ID from Azure Portal $ArcgwId = "/subscriptions/yourSubscriptionId/resourceGroups/yourResourceGroupName/providers/Microsoft.HybridCompute/gateways/yourArcGatewayName" ``` -------------------------------- ### POST /api/catalog/default/search? Source: https://github.com/azure/odinforazurelocal/blob/main/tests/fixtures/CATALOG_API.md Searches for Azure Local hardware platforms based on specified filters, pagination, and search criteria. ```APIDOC ## POST /api/catalog/default/search? ### Description Retrieves a list of hardware platforms from the Azure Local catalog based on the provided search criteria and filters. ### Method POST ### Endpoint https://azurelocalsolutions.azure.microsoft.com/api/catalog/default/search? ### Request Body - **resourceType** (string) - Required - The type of resource to search, e.g., "Platforms". - **searchText** (string) - Optional - Text string to filter results. - **filters** (array) - Optional - List of filter objects containing name and values. - **sortOptions** (object|null) - Optional - Sorting configuration. - **page** (integer) - Optional - The page number for pagination. - **pageSize** (integer) - Optional - The number of items per page. ### Request Example { "resourceType": "Platforms", "searchText": "", "filters": [ { "name": "lifecycleStage", "values": ["1", "2"] }, { "name": "qualificationGeneration", "values": ["Current (2026 or later)"] } ], "sortOptions": null, "page": 1, "pageSize": 100 } ``` -------------------------------- ### Invoke Registration (With Proxy) Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Registration command for connectivity through an enterprise proxy. ```powershell # Invoke registration (with proxy, no Arc Gateway) Invoke-AzStackHciArcInitialization ` -TenantId $Tenant ` -SubscriptionID $Subscription ` -ResourceGroup $RG ` -Region $Region ` -Cloud "AzureCloud" ` -Proxy $ProxyServer ` -ProxyBypass $ProxyBypassList ``` -------------------------------- ### Set Registration Parameters (With Proxy) Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Parameters for registering Azure Local nodes using an enterprise proxy server. ```powershell # Define tenant and subscription $Tenant = "YourTenantID" $Subscription = "YourSubscriptionID" $RG = "YourResourceGroupName" $Region = "eastus" # Do not use spaces or capital letters # Define proxy server address $ProxyServer = "http://proxyaddress:port" # Define bypass list (comma-separated) # Use "localhost" instead of # Use * for subnets: 192.168.1.* for /24, 192.168.*.* for /16 # Append * for domains: *.contoso.com # Include: Node IPs, Cluster IP, Infrastructure IPs, NetBIOS names, Private Endpoints $ProxyBypassList = "localhost,127.0.0.1,*.contoso.com,machine1,machine2,machine3,192.168.*.*,AzureLocal-1,mykeyvault.vault.azure.net,mystorageaccount.blob.core.windows.net,mystorageaccount.file.core.windows.net" ``` -------------------------------- ### Invoke Registration (No Proxy) Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Registration command for direct connectivity to Azure. ```powershell # Invoke registration (no proxy, no Arc Gateway) Invoke-AzStackHciArcInitialization ` -TenantId $Tenant ` -SubscriptionID $Subscription ` -ResourceGroup $RG ` -Region $Region ` -Cloud "AzureCloud" ``` -------------------------------- ### Invoke Registration with Proxy Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Execute the registration script with proxy and Arc Gateway configurations. ```powershell # Invoke registration (with proxy and Arc Gateway) Invoke-AzStackHciArcInitialization ` -TenantID $Tenant ` -SubscriptionID $Subscription ` -ResourceGroup $RG ` -Region $Region ` -Cloud "AzureCloud" ` -Proxy $ProxyServer ` -ArcGatewayID $ArcgwId ` -ProxyBypass $ProxyBypassList ``` -------------------------------- ### Add Host Overhead UI Section Source: https://github.com/azure/odinforazurelocal/blob/main/docs/module-planning/complete/issues-232-233-plan.md Static HTML markup for the collapsible section displaying host compute overhead assumptions and calculations. ```html
Physical Host Compute Overhead — Assumptions & Math
``` -------------------------------- ### Define Proxy and Arc Gateway Parameters Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Configure registration parameters including enterprise proxy server address and bypass list. ```powershell # Define tenant and subscription $Tenant = "YourTenantID" $Subscription = "YourSubscriptionID" $RG = "YourResourceGroupName" $Region = "eastus" # Do not use spaces or capital letters # Define proxy server address $ProxyServer = "http://proxyaddress:port" # Define bypass list (comma-separated) # Use "localhost" instead of # Use * for subnets: 192.168.1.* for /24, 192.168.*.* for /16 # Append * for domains: *.contoso.com # Include: Node IPs, Cluster IP, Infrastructure IPs, NetBIOS names, Private Endpoints $ProxyBypassList = "localhost,127.0.0.1,*.contoso.com,machine1,machine2,machine3,192.168.*.*,AzureLocal-1,mykeyvault.vault.azure.net,mystorageaccount.blob.core.windows.net,mystorageaccount.file.core.windows.net" # Define Arc Gateway Resource ID from Azure Portal $ArcgwId = "/subscriptions/yourSubscriptionId/resourceGroups/yourResourceGroupName/providers/Microsoft.HybridCompute/gateways/yourArcGatewayName" ``` -------------------------------- ### Define Host Overhead Helper Functions Source: https://github.com/azure/odinforazurelocal/blob/main/docs/module-planning/complete/issues-232-233-plan.md Helper functions to calculate host memory and CPU reservations based on hardware configuration and cluster type. ```javascript function getHostMemoryReservedGB(hwConfig, clusterType) { … } // S2D-aware (32/24 base) function getHostCpuReservedCores(hwConfig, clusterType) { … } ``` -------------------------------- ### Apply UI Theme Configuration Source: https://github.com/azure/odinforazurelocal/blob/main/arm/arm.html Applies a saved theme from localStorage on page load, defaulting to dark mode if no preference is set. ```javascript // Apply saved theme on load (function() { var theme = localStorage.getItem('odin-theme') || 'dark'; var root = document.documentElement; if (theme === 'light') { root.style.setProperty('--bg-dark', '#f5f5f5'); root.style.setProperty('--card-bg', '#ffffff'); root.style.setProperty('--card-bg-transparent', 'rgba(255, 255, 255, 0.95)'); root.style.setProperty('--text-primary', '#000000'); root.style.setProperty('--text-secondary', '#6b7280'); root.style.setProperty('--glass-border', 'rgba(0, 0, 0, 0.1)'); root.style.setProperty('--subtle-bg', 'rgba(0, 0, 0, 0.03)'); root.style.setProperty('--subtle-bg-hover', 'rgba(0, 0, 0, 0.06)'); root.style.setProperty('--nav-bg', 'linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.95) 100%)'); root.style.setProperty('--nav-hover-bg', 'rgba(0, 0, 0, 0.05)'); root.style.setProperty('--nav-active-bg', 'rgba(0, 120, 212, 0.12)'); document.body.style.background = '#f5f5f5'; } else { root.style.setProperty('--bg-dark', '#000000'); root.style.setProperty('--card-bg', '#111111'); root.style.setProperty('--card-bg-transparent', 'rgba(17, 17, 17, 0.95)'); root.style.setProperty('--text-primary', '#ffffff'); root.style.setProperty('--text-secondary', '#a1a1aa'); root.style.setProperty('--glass-border', 'rgba(255, 255, 255, 0.1)'); root.style.setProperty('--subtle-bg', 'rgba(255, 255, 255, 0.03)'); root.style.setProperty('--subtle-bg-hover', 'rgba(255, 255, 255, 0.06)'); root.style.setProperty('--nav-bg', 'linear-gradient(180deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.95) 100%)'); root.style.setProperty('--nav-hover-bg', 'rgba(255, 255, 255, 0.05)'); root.style.setProperty('--nav-active-bg', 'rgba(0, 120, 212, 0.15)'); document.body.style.background = '#000000'; } })(); ``` -------------------------------- ### CPU Reservation Logic Source: https://github.com/azure/odinforazurelocal/blob/main/docs/module-planning/complete/issues-232-233-plan.md Formulas for calculating CPU reservation per node based on cluster profile, implemented as a helper function. ```text Becomes a new helper `getHostCpuReservedCores(hwConfig, clusterType)` → applied in `getRecommendedNodeCount`, `autoScaleHardware` (vCPU branch), the capacity-bar block, headroom loops, and the per-VM "exceeds node" check. vCPU available per node becomes `(physicalCores − getHostCpuReservedCores(...)) × vcpuRatio`. ``` -------------------------------- ### Verify SHA-256 hash of vendored bundle Source: https://github.com/azure/odinforazurelocal/blob/main/report/vendor/README.md Use this PowerShell command to verify the integrity of the local pptxgen.bundle.js file against the documented SHA-256 hash. ```powershell (Get-FileHash report/vendor/pptxgen.bundle.js -Algorithm SHA256).Hash ``` -------------------------------- ### Set Registration Parameters (No Proxy) Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Initial parameters for registering Azure Local nodes without a proxy or Arc Gateway. ```powershell # Define tenant and subscription $Tenant = "YourTenantID" $Subscription = "YourSubscriptionID" $RG = "YourResourceGroupName" $Region = "eastus" # Do not use spaces or capital letters ``` -------------------------------- ### Refresh Catalog Snapshot Source: https://github.com/azure/odinforazurelocal/blob/main/tests/fixtures/CATALOG_API.md Executes the gap-check script in live mode to update the local catalog-snapshot.json file. ```bash node scripts/catalog-gap-check.js --live --update-snapshot ``` -------------------------------- ### Convert video format Source: https://github.com/azure/odinforazurelocal/blob/main/tools/README.md Convert recorded WebM files to MP4 for LinkedIn compatibility, or generate mobile-specific versions. ```bash npm run demo:convert ``` ```bash npm run demo:full:mobile ``` -------------------------------- ### Check Local Storage State Source: https://github.com/azure/odinforazurelocal/blob/main/README.md Use this command in the browser console to inspect the current state of the application stored in the browser. ```javascript localStorage.getItem('azureLocalWizardState') ``` -------------------------------- ### Define the module planning directory structure Source: https://github.com/azure/odinforazurelocal/blob/main/docs/module-planning/README.md Visual representation of the directory layout for planning documents. ```text docs/module-planning/ ├── README.md ← this file ├── -plan.md ← in-flight plans (one per feature / issue group) └── complete/ └── -plan.md ← plans whose work has shipped (moved here after release) ``` -------------------------------- ### Memory Reservation Formulas Source: https://github.com/azure/odinforazurelocal/blob/main/docs/module-planning/complete/issues-232-233-plan.md Formulas for calculating node memory reservation based on deployment type, including S2D-specific cache overhead and host memory scaling. ```text S2D deployment types (single, standard/Hyperconverged, low-capacity, rack-aware, aldo-mgmt): reserved = max( 32 + (isTiered ? 4 × cacheTB_per_node : 0) + aldo, ceil(0.08 × hostMemGB) ) Disaggregated Storage (external SAN — no SBL, no CSV cache, no S2D cache metadata): reserved = max( 24 + aldo, ceil(0.08 × hostMemGB) ) ``` -------------------------------- ### Define Proxy Bypass String Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Format for a comma-separated proxy bypass list including node IPs, cluster IPs, infrastructure subnets, NetBIOS names, and domain wildcards. ```text # Bypass list format (comma-separated) 192.168.1.10,192.168.1.11,192.168.1.12, # Node IPs 192.168.1.100, # Cluster IP 192.168.1.*, # Infrastructure subnet NODE1,NODE2,NODE3, # NetBIOS names CLUSTER01, # Cluster NetBIOS *.contoso.com, # Domain wildcard keyvault.vault.azure.net, # Private Link endpoints storageaccount.blob.core.windows.net ``` -------------------------------- ### Catalog API Response Schema Source: https://github.com/azure/odinforazurelocal/blob/main/tests/fixtures/CATALOG_API.md Represents the full JSON response object for platform queries, including nested configuration details and hardware capabilities. ```jsonc { "data": { "currentPage": 1, "totalPages": 1, "totalResults": 24, "resourceType": "Platforms", "platformFilters": [/* dropdown filter taxonomy used by the SPA */], "platforms": [ { "properties": { "platformId": "", "platformName": "ExampleNode V4", "vendorId": "", "vendorName": "ExampleOEM", "systemType": "PremierSolution | IntegratedSystem | ValidatedNode", "formFactor": "Rack | Rugged", "rackUnits": 2, "minimumScale": 1, "maximumScale": 16, "lastTestedVersion": "24H2", "qualificationGeneration": "Current (2026 or later)", "cpuFamily": "Intel®", // double-encoded UTF-8 — see note below "cpuModel": "6th Gen Xeon® Scalable Processor", "isGpuSupported": true, "storageDrives": ["NVMe", "SSD", "HDD"], "featuresSupported": ["SecuredCoreServer", "MicrosoftSDN"], "sdnNicDetails": { "isSdnNicSupported": true, "sdnNicVendorModels": ["Broadcom NetXtreme 575xx", "Intel® Ethernet E810", "NVIDIA ConnectX-6"] }, "configurations": [ { "configurationId": "", "configurationName": "All Flash NVMe and SSD", "isSingleNodeConfiguration": true, "architecture": "Hyperconverged | Disaggregated", "clusterSize": { "minimum": 1, "maximum": 16 }, "cpuDetails": { "minimumCores": 8, "maximumCores": 172, "totalSocketsSupported": 2, "coresPerSocket": [8, 12, 16, 24, 32, 36, 48, 64, 80, 86] }, "memoryDetails": { "minimumMemoryBytes": 34359738368, // 32 GB "maximumMemoryBytes": 8796093022208, // 8 TB "numberOfDimmSlots": 16, "isHalfDimmSlotsSupported": true, "dimmSlotSizes": "8 16 32 64 96 128 256" // GB, space-separated }, "storageDetails": { "minimumStorageBytes": 3840000000000, "storageMaxBytes": 436000000000000, "storageDrives": "NVMe SSD", "cacheDriveDetails": { "cacheDriveTypes": ["NVMe"], "minimumNumberOfCacheDrives": 2, "maximumNumberOfCacheDrives": 4, "cacheDriveSizes": [{ "amount": 960, "byteUnit": "GB" }, { "amount": 1.6, "byteUnit": "TB" }], "cacheDriveSizesBytes": [960000000000, 1600000000000] }, "capacityDriveDetails": { "capacityStorageDriveTypes": ["SSD"], "minimumNumberOfCapacityDrives": 2, "maximumNumberOfCapacityDrives": 40, "capacityDriveSizes": [{ "amount": 1.92, "byteUnit": "TB" }], "capacityDriveSizesBytes": [1920000000000] } }, "gpuDetails": { "isGpuSupported": true, "gpuMfgModel": "NVIDIA", "gpuDda": ["NVIDIA (L4, L40S, RTX Pro 6000)"], "gpuP": ["NVIDIA (L4, L40S, RTX Pro 6000)"] }, "networkingDetails": { "networkingSpeed": 100, // Gbps "nicVendorModel": "Intel® E810,NVIDIA ConnectX-6,NVIDIA ConnectX-7,Broadcom NetExtreme-E", "rdmaType": "RoCE,iWarp" }, "miscellaneousDetails": { "hbaManufacturer": "Broadcom", "hbaModel": "SAS3816" }, "solutionCapabilities": ["DisconnectedOperations", "AIWorkloads", "M365Local"] } ] } } ] }, "message": "OK", "status": 200 } ``` -------------------------------- ### Invoke Arc Registration Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Execute the registration script using the defined parameters. ```powershell # Invoke registration (no proxy, with Arc Gateway) Invoke-AzStackHciArcInitialization ` -TenantID $Tenant ` -SubscriptionID $Subscription ` -ResourceGroup $RG ` -Region $Region ` -Cloud "AzureCloud" ` -ArcGatewayID $ArcgwId ``` -------------------------------- ### Catalog Search Endpoint Source: https://github.com/azure/odinforazurelocal/blob/main/tests/fixtures/CATALOG_API.md The API requires a POST request to the specified URL. A trailing question mark is mandatory for the request to succeed. ```http POST https://azurelocalsolutions.azure.microsoft.com/api/catalog/default/search? Content-Type: application/json ``` -------------------------------- ### VS Code Schema Reference Source: https://github.com/azure/odinforazurelocal/blob/main/docs/json-schema/README.md Add a $schema reference to the top of your JSON file to enable inline validation and autocomplete in VS Code. ```jsonc { "$schema": "https://azure.github.io/odinforazurelocal/docs/json-schema/odin-design.schema.json", "version": "0.23.04", "state": { /* … */ } } ``` -------------------------------- ### Mobile Responsive Media Queries Source: https://github.com/azure/odinforazurelocal/blob/main/report/report.html Adjusts layout and font sizes for screens smaller than 768px and 480px. ```css @media (max-width: 768px) { .container { padding: 1rem !important; padding-bottom: 80px !important; } header h1 { font-size: 1.3rem !important; } header p { font-size: 0.9rem !important; } .step { padding: 1rem !important; margin-bottom: 1rem !important; } .step-header h2 { font-size: 1.1rem !important; } .info-box { padding: 0.75rem !important; font-size: 0.9rem !important; } #report-meta, #report-summary, #report-validations, #report-rationale { font-size: 0.9rem !important; } .reset-button { margin-bottom: 70px !important; } .page-header-actions { gap: 4px; } .header-action-btn { padding: 4px 8px; font-size: 11px; } .page-header-title { display: none; } } @media (max-width: 480px) { .container { padding: 0.75rem !important; } header h1 { font-size: 1.1rem !important; } .step-header h2 { font-size: 1rem !important; } .page-header-bar { height: auto; padding: 8px 12px; } .page-header-container { flex-wrap: wrap; } .page-header-actions { width: 100%; justify-content: center; margin-top: 8px; margin-left: 0; } .info-box { font-size: 0.85rem !important; } } ``` -------------------------------- ### Catalog Search Request Body Source: https://github.com/azure/odinforazurelocal/blob/main/tests/fixtures/CATALOG_API.md The request body defines the resource type, search filters, and pagination. The lifecycleStage and qualificationGeneration filters are used to narrow down hardware SKUs. ```json { "resourceType": "Platforms", "searchText": "", "filters": [ { "name": "lifecycleStage", "values": ["1", "2"] }, { "name": "qualificationGeneration", "values": ["Current (2026 or later)"] } ], "sortOptions": null, "page": 1, "pageSize": 100 } ``` -------------------------------- ### Validate Export with Python Source: https://github.com/azure/odinforazurelocal/blob/main/docs/json-schema/README.md Use the jsonschema library to validate an export against the schema in a Python environment. ```bash pip install jsonschema ``` ```python import json, jsonschema schema = json.load(open("odin-design.schema.json")) data = json.load(open("my-design.json")) jsonschema.validate(data, schema) # raises ValidationError on failure ``` -------------------------------- ### Verify Arc Agent Status Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Use the azcmagent utility to verify agent configuration and connectivity status. ```powershell # Check Arc agent configuration & "C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe" show # Expected values: # - Agent Status: Connected # - Using HTTPS Proxy: http://localhost:40343 (when Arc Gateway enabled) # - Upstream Proxy: Your enterprise proxy (if configured) # - Azure Arc Proxy: Running (when Arc Gateway enabled) # Verify connectivity & "C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe" check # All URLs should show Reachable: true # Connection.type should be "gateway" when Arc Gateway is enabled ``` -------------------------------- ### Page Header Bar Styles Source: https://github.com/azure/odinforazurelocal/blob/main/report/report.html Styles the fixed navigation header, including logo and action buttons. ```css .page-header-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--nav-bg, linear-gradient(180deg, rgba(17, 17, 17, 0.98) 0%, rgba(17, 17, 17, 0.95) 100%)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); padding: 0 24px; height: 56px; display: flex; align-items: center; } .page-header-container { max-width: 1400px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 8px; } .page-header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding-right: 24px; border-right: 1px solid var(--glass-border); margin-right: 16px; } .page-header-logo img { width: 32px; height: 32px; } .page-header-logo span { font-weight: 600; font-size: 16px; color: var(--text-primary); } .page-header-logo:hover span { color: var(--accent-blue); } .page-header-title { font-size: 14px; font-weight: 500; color: var(--text-secondary); } .page-header-actions { display: flex; gap: 8px; margin-left: auto; } .header-action-btn { padding: 6px 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: var(--text-secondary); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s ease; white-space: nowrap; } .header-action-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); border-color: var(--accent-blue); } .header-action-group { display: inline-flex; align-items: stretch; gap: 0; } .header-action-group .header-action-btn { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; } .header-action-group .header-action-select { padding: 6px 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: var(--text-secondary); border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 6px; border-bottom-right-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 500; transition: all 0.2s ease; } .header-action-group .header-action-select:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); border-color: var(--accent-blue); } body { padding-top: 56px; } ``` -------------------------------- ### Print and Modal Styles Source: https://github.com/azure/odinforazurelocal/blob/main/report/report.html Hides the header during printing and defines the backdrop for the diagram modal. ```css @media print { .page-header-bar { display: none !important; } body { padding-top: 0 !important; } } .diagram-modal-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.85); display: flex; flex-direction: column; align-items: ``` -------------------------------- ### Validate Export with Node.js Source: https://github.com/azure/odinforazurelocal/blob/main/docs/json-schema/README.md Use the ajv library to validate an export against the schema in a Node.js environment. ```bash npm install ajv ajv-formats ``` ```js import Ajv from "ajv"; import addFormats from "ajv-formats"; import design from "./odin-design.schema.json" assert { type: "json" }; import myExport from "./my-design.json" assert { type: "json" }; const ajv = new Ajv({ allErrors: true }); addFormats(ajv); const valid = ajv.validate(design, myExport); if (!valid) console.error(ajv.errors); ``` -------------------------------- ### Report Planning Aid Styles Source: https://github.com/azure/odinforazurelocal/blob/main/report/report.html Defines the appearance of the planning aid section within the report. ```css .report-planning-aid { margin-top: 0.75rem; padding-top: 0.65rem; border-top: 1px solid var(--glass-border); color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; } .report-planning-aid a, .report-planning-aid a:visited { color: var(--accent-blue); font-weight: 600; } ``` -------------------------------- ### Enable S2D Calculations Only Mode Source: https://github.com/azure/odinforazurelocal/blob/main/sizer/index.html Sets the global flag to restrict operations to S2D calculations only. ```javascript window.__S2D_CALCULATIONS_ONLY__ = true; ``` -------------------------------- ### Designer Export Envelope Structure Source: https://github.com/azure/odinforazurelocal/blob/main/docs/module-planning/complete/issue-237-json-schema-plan.md The current JSON structure used by the Designer's exportConfiguration function. ```jsonc { "version": "", "exportedAt": "", "state": { ...wizard state... } } ``` -------------------------------- ### Print-friendly CSS Styles Source: https://github.com/azure/odinforazurelocal/blob/main/report/report.html Overrides default styles to ensure the report is readable when printed, including background color adjustments and hiding non-essential elements. ```css body.print-friendly-mode { background: #ffffff !important; color: #000000 !important; } body.print-friendly-mode .background-globes { display: none !important; } body.print-friendly-mode .container { background: #ffffff !important; } body.print-friendly-mode .step { background: #ffffff !important; border-color: #cccccc !important; color: #000000 !important; } body.print-friendly-mode h1, body.print-friendly-mode h2, body.print-friendly-mode h3, body.print-friendly-mode h4, body.print-friendly-mode strong { color: #000000 !important; } body.print-friendly-mode .sizing-note-advisory { color: #b45309 !important; } body.print-friendly-mode .info-box { background: #f5f5f5 !important; border-color: #cccccc !important; color: #000000 !important; } ``` -------------------------------- ### Sizer Export JSON Envelope Source: https://github.com/azure/odinforazurelocal/blob/main/docs/module-planning/complete/issue-237-json-schema-plan.md The structure of the JSON object produced by the exportSizerJSON function. ```jsonc { "_meta": { "tool": "ODIN Sizer for Azure Local", "version": , "exportedAt": "", "url": "" }, "data": { ...sizer state... } } ``` -------------------------------- ### Validate empty catch block comments Source: https://github.com/azure/odinforazurelocal/blob/main/docs/ESLINT_CONFIG_NOTES.md Empty catch blocks must include an inline comment explaining why the error is safe to swallow. ```javascript // ✅ ok — explains why try { URL.revokeObjectURL(url); } catch (e) { /* URL may already be revoked */ } // ❌ not ok — silent swallow with no rationale try { URL.revokeObjectURL(url); } catch (e) { } ``` -------------------------------- ### Retrieve Arc Gateway Resource ID Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html Format for the Arc Gateway resource ID required for registration. ```text # In Azure Portal: # 1. Go to your Arc gateway resource # 2. On the Overview page, copy the Resource ID # Format: /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.HybridCompute/gateways/{name} ``` -------------------------------- ### Hide navigation bar in iframe Source: https://github.com/azure/odinforazurelocal/blob/main/docs/outbound-connectivity/index.html This script detects if the page is loaded within an iframe and hides the navigation bar to prevent duplicate UI elements. ```javascript (function() { try { if (window.self !== window.top) { var nav = document.getElementById('odin-nav'); if (nav) nav.style.display = 'none'; document.body.classList.add('in-iframe'); } } catch (e) { /* cross-origin iframe – leave nav visible */ } })(); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.