Skip to content

Commit e386913

Browse files
committed
Adding a warning before starting on update operation
1 parent bf0dd26 commit e386913

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/StackAdmin/Azs.Update.Admin/Module/Azs.Update.Admin/Azs.Update.Admin.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Licensed under the MIT License. See License.txt in the project root for license
1717
RootModule = 'Azs.Update.Admin.psm1'
1818

1919
# Version number of this module.
20-
ModuleVersion = '0.2.0'
20+
ModuleVersion = '0.3.0'
2121

2222
# Supported PSEditions
2323
# CompatiblePSEditions = @()

src/StackAdmin/Azs.Update.Admin/Module/Azs.Update.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Install-AzsUpdate.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ function Install-AzsUpdate {
9595
$Name = Get-ResourceNameSuffix -ResourceName $Name
9696
}
9797

98+
Write-Warning -Message 'It is strongly recommended to run Test-AzureStack(https://aka.ms/testazurestack) before applying update.'
99+
98100
if ($PsCmdlet.ShouldProcess($Name, "Install the update")) {
99-
if ($Force.IsPresent -or $PsCmdlet.ShouldContinue("Install the update?", "Performing operation ApplyWithHttpMessagesAsync on $Name")) {
101+
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")) {
100102

101103
$NewServiceClient_params = @{
102104
FullClientTypeName = 'Microsoft.AzureStack.Management.Update.Admin.UpdateAdminClient'

src/StackAdmin/AzureStack/AzureStack.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
@{ModuleName = 'Azs.Storage.Admin'; RequiredVersion = '0.2.0'; },
6666
@{ModuleName = 'Azs.Subscriptions'; RequiredVersion = '0.2.0'; },
6767
@{ModuleName = 'Azs.Subscriptions.Admin'; RequiredVersion = '0.3.0'; },
68-
@{ModuleName = 'Azs.Update.Admin'; RequiredVersion = '0.2.0'; })
68+
@{ModuleName = 'Azs.Update.Admin'; RequiredVersion = '0.3.0'; })
6969

7070
# Assemblies that must be loaded prior to importing this module
7171
# RequiredAssemblies = @()

0 commit comments

Comments
 (0)