Import-Module ServerManager $instancetype = Invoke-RestMethod http://169.254.169.254/latest/meta-data/instance-type $instanceid= Invoke-RestMethod http://169.254.169.254/latest/meta-data/instance-id $az= Invoke-RestMethod http://169.254.169.254/latest/meta-data/placement/availability-zone $computername = $env:computername $h1 = "

Hello from " + $computername + " instanceid: " + $instanceid + "

I am running on " + $instancetype + " in availability zone " + $az Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName 'IIS-WebServerRole', 'IIS-WebServer', 'IIS-ManagementConsole' "

Hello Win306 Reinvent 2021!!

Showing data for key:

$h1
" | Out-File -FilePath C:\inetpub\wwwroot\index.html