Prompt user

read-host

$GroupName = Read-Host -Prompt "Please enter group name"

Any key to continue

Write-Host -NoNewLine 'Press any key to continue...';
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');

Choose

function Get-Site
{
	$site=Read-Host "Choose a site code"
	Switch ($site)
	{
		L {$Chosensite="London"}
		H {$Chosensite="Hong Kong"}
		N {$Chosensite="New York"}
		}
    return $Chosensite
}

Get-Site

Last modified January 27, 2025: Delete cloud-adoption-framework.md (1a91b0a)