Public/Get-RingConfigurationTemplate.ps1
|
<#
.SYNOPSIS Returns a template for ring configuration JSON .DESCRIPTION Returns a template object that can be converted to JSON for ring-based deployment configuration .OUTPUTS PSCustomObject with ring configuration template .EXAMPLE Get-RingConfigurationTemplate | ConvertTo-Json -Depth 10 | Set-Content -Path "ring-configuration.json" #> function Get-RingConfigurationTemplate { [CmdletBinding()] param() $template = @{ Version = "1.0" Description = "NLBaseline Ring Deployment Configuration" LastUpdated = (Get-Date -Format "yyyy-MM-dd HH:mm:ss") Ring0 = @{ Name = "Ring 0 - Pilot/Test" Description = "Early adopter ring for testing new policies" Assignments = @( # Use group GUIDs or "AllDevices" for all devices # Example: "12345678-1234-1234-1234-123456789012" # Or: "AllDevices" ) } Ring1 = @{ Name = "Ring 1 - Early Production" Description = "First production ring for broader deployment" Assignments = @( # Use group GUIDs or "AllDevices" ) } Ring2 = @{ Name = "Ring 2 - Full Production" Description = "Full production deployment to all devices" Assignments = @( # Use group GUIDs or "AllDevices" # "AllDevices" ) } } return $template } |