Skip to content

Updating the warning message to match that of portal UI #7711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Licensed under the MIT License. See License.txt in the project root for license

# ReleaseNotes of this module
ReleaseNotes = '## 2018.12
* Added a warning to recommend running Test-AzureStack before Install-AzsUpdate
* Added a warning to recommend running Test-AzureStack before Install-AzsUpdate, supported with 1811 update
'

} # End of PSData hashtable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ function Install-AzsUpdate {
$Name = Get-ResourceNameSuffix -ResourceName $Name
}

Write-Warning -Message 'It is strongly recommended to run Test-AzureStack(https://aka.ms/testazurestack) before applying update.'
Write-Warning -Message 'Run Test-AzureStack -Group UpdateReadiness to validate the status of your Azure Stack and then resolve any operational issues found, including all warnings and failures.'

if ($PsCmdlet.ShouldProcess($Name, "Install the update")) {
if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("It is strongly recommended to Test-AzureStack before applying update. Are you sure you want to continue?", "Performing Update $Name")) {
if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Run Test-AzureStack -Group UpdateReadiness to validate the status of your Azure Stack and then resolve any operational issues found, including all warnings and failures. Are you sure you want to continue?", "Performing Update $Name")) {

$NewServiceClient_params = @{
FullClientTypeName = 'Microsoft.AzureStack.Management.Update.Admin.UpdateAdminClient'
Expand Down