You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
az k8s-extension show --name $ExtensionName--cluster-name $KubernetesClusterName--resource-group $resourcegroup--cluster-type connectedClusters |ConvertFrom-Json
Copy file name to clipboardExpand all lines: Scenarios/AzSHCI and Kubernetes/readme.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,16 +21,19 @@ https://aka.ms/AKSonHCI-Docs
21
21
Note: please download latest [WSLab](https://aka.ms/wslab/download) as there is new VMProcessorCount value Max, that will configure maximum available LP to VMs.
Copy file name to clipboardExpand all lines: Scripts/2_CreateParentDisks.ps1
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1120,7 +1120,13 @@ If (-not $isAdmin) {
1120
1120
<# 0 #>New-Object System.Management.Automation.Host.ChoiceDescription "&Yes","Cleanup .\Temp\ 1_Prereq.ps1 2_CreateParentDisks.ps1 and rename 3_deploy.ps1 to just deploy.ps1"
1121
1121
<# 1 #>New-Object System.Management.Automation.Host.ChoiceDescription "&No","Keep files (in case DC was not created sucessfully)"
1122
1122
)
1123
-
$response=$host.UI.PromptForChoice("Unnecessary files cleanup","Do you want to cleanup unnecessary files and folders?",$options,0<#default option#>)
1123
+
1124
+
If (!$LabConfig.AutoCleanUp) {
1125
+
$response=$host.UI.PromptForChoice("Unnecessary files cleanup","Do you want to cleanup unnecessary files and folders?",$options,0<#default option#>)
1126
+
}
1127
+
else {
1128
+
$response=0
1129
+
}
1124
1130
1125
1131
If ($response-eq1){
1126
1132
$renamed=$false
@@ -1201,8 +1207,11 @@ If (-not $isAdmin) {
1201
1207
Send-TelemetryEvents-Events $events|Out-Null
1202
1208
}
1203
1209
1204
-
Stop-Transcript
1210
+
Stop-Transcript
1211
+
1212
+
If (!$LabConfig.AutoClosePSWindows) {
1205
1213
WriteSuccess "Job Done. Press enter to continue..."
Linux=$false; # (Optional) If set to $true, required prerequisities for building Linux images with Packer will be configured.
47
47
LinuxAdminName="linuxadmin"; # (Optional) If set, local user account with that name will be created in Linux image. If not, DomainAdminName will be used as a local account.
48
48
SshKeyPath="$($env:USERPROFILE)\.ssh\id_rsa" # (Optional) If set, specified SSH key will be used to build and access Linux images.
49
+
AutoClosePSWindows=$false; # (Optional) If set, the PowerShell console windows will automatically close once the script has completed successfully. Best suited for use in automated deployments.
50
+
AutoCleanUp=$false; # (Optional) If set, after creating initial parent disks, files that are no longer necessary will be cleaned up. Best suited for use in automated deployments.
49
51
AdditionalNetworksConfig=@(); # Just empty array for config below
If configured, existing SSH key will be used for building and connecting to Linux images. If not, 0_Prereq.ps1 will generate a new SSH key pair and store it locally in LAB folder.
211
+
212
+
AutoStartAfterDeploy (optional)
213
+
Example: AutoClosePSWindows=$true
214
+
If set to true, the PowerShell console windows will automatically close once the script has completed successfully. Best suited for use in automated deployments.
215
+
216
+
AutoCleanup (optional)
217
+
Example: AutoCleanUp=$true
218
+
If set to true, after creating initial parent disks, files that are no longer necessary will be cleaned up. Best suited for use in automated deployments.
Copy file name to clipboardExpand all lines: Tools/DownloadLatestCUs.ps1
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,10 +43,11 @@ $Products+=@{Product="Azure Stack HCI 21H2 and Windows Server 2022" ;SearchStrin
43
43
$Products+=@{Product="Azure Stack HCI 20H2" ;SearchString="Cumulative Update for Azure Stack HCI, version 20H2" ;SSUSearchString="Servicing Stack Update for Azure Stack HCI, version 20H2 for x64-based Systems" ; ID="Azure Stack HCI"}
44
44
$Products+=@{Product="Windows Server 2019" ;SearchString="Cumulative Update for Windows Server 2019 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows Server 2019 for x64-based Systems" ; ID="Windows Server 2019"}
45
45
$Products+=@{Product="Windows Server 2016" ;SearchString="Cumulative Update for Windows Server 2016 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows Server 2016 for x64-based Systems" ; ID="Windows Server 2016"}
46
-
$Products+=@{Product="Windows 10 21H1" ;SearchString="Cumulative Update for Windows 10 Version 21H1 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 21H1 for x64-based Systems" ; ID="Windows 10, version 1903 and later"}
47
-
$Products+=@{Product="Windows 10 20H2" ;SearchString="Cumulative Update for Windows 10 Version 20H2 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 20H2 for x64-based Systems" ; ID="Windows 10, version 1903 and later"}
48
-
$Products+=@{Product="Windows 10 2004" ;SearchString="Cumulative Update for Windows 10 Version 2004 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 2004 for x64-based Systems" ; ID="Windows 10, version 1903 and later"}
49
-
$Products+=@{Product="Windows 10 1909" ;SearchString="Cumulative Update for Windows 10 Version 1909 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 1909 for x64-based Systems" ; ID="Windows 10, version 1903 and later"}
46
+
$Products+=@{Product="Windows 11 22H2" ;SearchString="Cumulative Update for Windows 11 Version 22H2 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 11 Version 22H2 for x64-based Systems" ; ID="Windows 11"}
47
+
$Products+=@{Product="Windows 10 21H2" ;SearchString="Cumulative Update for Windows 10 Version 21H2 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 21H2 for x64-based Systems" ; ID="Windows 10, version 1903 and later, Windows 10 LTSB"}
48
+
$Products+=@{Product="Windows 10 20H2" ;SearchString="Cumulative Update for Windows 10 Version 20H2 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 20H2 for x64-based Systems" ; ID="Windows 10, version 1903 and later"}
49
+
$Products+=@{Product="Windows 10 2004" ;SearchString="Cumulative Update for Windows 10 Version 2004 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 2004 for x64-based Systems" ; ID="Windows 10, version 1903 and later"}
50
+
$Products+=@{Product="Windows 10 1909" ;SearchString="Cumulative Update for Windows 10 Version 1909 for x64-based Systems" ;SSUSearchString="Servicing Stack Update for Windows 10 Version 1909 for x64-based Systems" ; ID="Windows 10, version 1903 and later"}
50
51
51
52
#grab folder to download to
52
53
$folder=Read-Host-Prompt "Please type path to download. For example `"c:\temp`" (if nothing specified, $PSScriptRoot is used)"
0 commit comments