Skip to content

Commit 9c9d750

Browse files
committed
Gather logs cleanup
Call correct function Textual updates for summary and button
1 parent cb8afb5 commit 9c9d750

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Deployment/asdk-installer.ps1

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ $Text_Rerun.Mode_LeftContent_Logs = "Gather the Azure Stack deployment log files
7979
$Text_Rerun.Summary_Title = "Rerun"
8080
$Text_Rerun.Summary_Content = "Click Rerun to resume the current Microsoft Azure Stack Developement Kit deployment from where it failed"
8181
$Text_Rerun.Summary_Title_Logs = "Gather Logs"
82-
$Text_Rerun.Summary_Content_Logs = "Click Run to gather the Azure Stack log files in c:\AzureStackLogs"
82+
$Text_Rerun.Summary_Content_Logs = "Gather the Azure Stack log files and save to c:\AzureStackLogs"
8383

8484
$Text_Completed = @{}
8585
$Text_Completed.Mode_Title = "Installation completed"
8686
$Text_Completed.Mode_LeftTitle = "Gather Logs"
8787
$Text_Completed.Mode_LeftContent = "Gather the Azure Stack deployment log files"
8888
$Text_Completed.Summary_Title = "Gather Logs"
89-
$Text_Completed.Summary_Content = "Click Run to gather the Azure Stack log files in c:\AzureStackLogs"
89+
$Text_Completed.Summary_Content = "Gather the Azure Stack log files and save to c:\AzureStackLogs"
9090
#endregion Text
9191

9292
#region XAML
@@ -1783,6 +1783,7 @@ Function F_Rerun {
17831783
}
17841784

17851785
Function F_GetAzureStackLogs {
1786+
Write-Host "Starting Get-AzureStackLog. This can take a moment. Please wait.." -ForegroundColor Cyan
17861787
#region Logs
17871788
Set-Location C:\CloudDeployment\AzureStackDiagnostics\Microsoft.AzureStack.Diagnostics.DataCollection
17881789
Import-Module .\Microsoft.AzureStack.Diagnostics.DataCollection.psd1
@@ -1796,7 +1797,11 @@ Function F_GetAzureStackLogs {
17961797
#region Events Mode
17971798
$syncHash.Control_Mode_Btn_Left.Add_Click({
17981799
$syncHash.Control_Mode_Stp.Visibility = "Collapsed"
1799-
if ($Script:Initialized -eq "CloudBuilder_Install") {
1800+
if ($Script:Initialized -eq "SafeOS") {
1801+
$syncHash.Control_Prepare_Stp.Visibility = "Visible"
1802+
$syncHash.Control_Header_Tbl_Title.Text = $Text_SafeOS.Prepare_Title
1803+
}
1804+
elseif ($Script:Initialized -eq "CloudBuilder_Install") {
18001805
$syncHash.Control_Creds_Stp.Visibility = "Visible"
18011806
$syncHash.Control_Header_Tbl_Title.Text = $Text_Install.Credentials_Title
18021807
}
@@ -1810,17 +1815,15 @@ elseif ($Script:Initialized -eq "CloudBuilder_Rerun_GatherLogs") {
18101815
$syncHash.Control_Summary_Stp.Visibility = "Visible"
18111816
$syncHash.Control_Header_Tbl_Title.Text = $Text_Rerun.Summary_Title_Logs
18121817
$syncHash.Control_Summary_Tbl_Header1.Text = $Text_Rerun.Summary_Content_Logs
1818+
$syncHash.Control_Summary_Btn_Next.Content = "Gather Logs"
18131819
}
18141820
elseif ($Script:Initialized -eq "CloudBuilder_Completed_GatherLogs") {
18151821
$syncHash.Control_Summary_Stp.Visibility = "Visible"
18161822
$syncHash.Control_Header_Tbl_Title.Text = $Text_Completed.Summary_Title
18171823
$syncHash.Control_Summary_Tbl_Header1.Text = $Text_Completed.Summary_Content
1818-
$syncHash.Control_Summary_Btn_Next.Content = "Run"
1824+
$syncHash.Control_Summary_Btn_Next.Content = "Gather Logs"
18191825
}
1820-
elseif ($Script:Initialized -eq "SafeOS") {
1821-
$syncHash.Control_Prepare_Stp.Visibility = "Visible"
1822-
$syncHash.Control_Header_Tbl_Title.Text = $Text_SafeOS.Prepare_Title
1823-
}
1826+
18241827
})
18251828

18261829
$syncHash.Control_Mode_Btn_Right.Add_Click({
@@ -2264,7 +2267,7 @@ F_Rerun
22642267
}
22652268
ElseIf ($Script:Initialized -eq "CloudBuilder_Rerun_GatherLogs"){
22662269
$Form.Close()
2267-
F_Rerun
2270+
F_GetAzureStackLogs
22682271
}
22692272
ElseIf ($Script:Initialized -eq "CloudBuilder_Completed_GatherLogs"){
22702273
$Form.Close()

0 commit comments

Comments
 (0)