Private/Assert-AzCopyInstalled.ps1
|
function Assert-AzCopyInstalled { <# .SYNOPSIS Verifies that azcopy is available on PATH. .DESCRIPTION Throws with an installation hint when azcopy is not found. #> [CmdletBinding()] param() if (-not (Get-Command azcopy -ErrorAction SilentlyContinue)) { throw "azcopy is not installed or not on PATH. Install it with 'winget install azcopy'." } } |