Public/Sync-AnyStackConfiguration.ps1
|
function Sync-AnyStackConfiguration { <# .SYNOPSIS Sync-AnyStackConfiguration - A specialized AnyStack Enterprise tool. .DESCRIPTION Autogenerated production cmdlet for AnyStack.ConfigurationAsCode. #> [CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter(Mandatory=$true)] [string]$Server ) process { $ErrorActionPreference = 'Stop' if ($PSCmdlet.ShouldProcess($Server, "Sync-AnyStackConfiguration")) { try { Write-Host "[ANYSTACK] Running Sync-AnyStackConfiguration on server $Server" -ForegroundColor Cyan } catch { Write-Error "Failed to execute Sync-AnyStackConfiguration: $$($_.Exception.Message)" } } } } |