Skip to content

Commit f501433

Browse files
marcvaneijkknithinc
authored andcommitted
SafeOS requirements (ws2016 or w10) (#460)
1 parent edffc8b commit f501433

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Deployment/asdk-installer.ps1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The Azure Stack Development Kit installer UI provides a UI with the following fe
1818
To install the Azure Stack Development Kit you require
1919
2020
- A physical server that meets the requirements
21+
- The SafeOS must be running Windows Server 2016 or Windows 10
2122
- The latest cloudbuilder.vhdx
2223
- The installer UI script
2324
@@ -28,7 +29,7 @@ The Azure Stack Development Kit installer UI script is based on PowerShell and t
2829

2930
#region Text
3031
$Text_Generic = @{}
31-
$Text_Generic.Version = "1.0.11"
32+
$Text_Generic.Version = "1.0.12"
3233
$Text_Generic.Password_NotMatch = "Passwords do not match"
3334
$Text_Generic.Regex_Fqdn = "<yourtenant.onmicrosoft.com> can only contain A-Z, a-z, 0-9, dots and a hyphen"
3435
$Text_Generic.Regex_Computername = "Computername must be 15 characters or less and can only contain A-Z, a-z, 0-9 and a hyphen"
@@ -53,6 +54,7 @@ $Text_SafeOS.NetConfig_Title = "Azure Stack host IP configuration"
5354
$Text_SafeOS.Job_Title = "Preparing the environment"
5455
$Text_SafeOS.Summary_Content = "The cloudbuilder vhdx is prepared succesfully. Please reboot. The server will boot from the CloudBuilder VHD and you can start the installation after signing in as the administrator."
5556
$Text_SafeOS.Mode_RightLink = "https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-run-powershell-script"
57+
$Text_SafeOS.OS_Version = "The SafeOS must be running Windows Server 2016 or Windows 10 to use the ASDK Installer. Consider upgrading the SafeOS or use PowerShell to install the ASDK https://docs.microsoft.com/en-us/azure/azure-stack/asdk/asdk-deploy-powershell"
5658

5759
$Text_Install = @{}
5860
$Text_Install.Mode_Title = "Installation"
@@ -1842,6 +1844,15 @@ Function F_Initialize {
18421844

18431845
# Booted in the SafeOS
18441846
else {
1847+
1848+
# Verify SafeOS is Windows 2016 or Windows 10
1849+
if([int](Get-CimInstance -ClassName Win32_OperatingSystem).version.split('.')[0] -lt 10){
1850+
Write-Host ""
1851+
Write-Error $Text_SafeOS.OS_Version
1852+
Start-Sleep -seconds 3
1853+
Break
1854+
}
1855+
18451856
$Script:Initialized="SafeOS"
18461857
$syncHash.Control_Header_Tbl_Title.Text = $Text_SafeOS.Mode_Title
18471858
$syncHash.Control_Mode_Tbl_LeftTitle.Text = $Text_SafeOS.Mode_LeftTitle

0 commit comments

Comments
 (0)