@@ -501,10 +501,6 @@ def flexible_server_update_custom_func(cmd, client, instance,
501501 if instance .storage .type == "PremiumV2_LRS" :
502502 instance .storage .tier = None
503503
504- if sku_name or storage_gb :
505- logger .warning ("You are changing the compute and/or storage size of the server. "
506- "The server will be restarted for this operation and you will see a short downtime." )
507-
508504 if iops :
509505 instance .storage .iops = iops
510506
@@ -629,16 +625,12 @@ def _confirm_restart_server(instance, sku_name, storage_gb, yes):
629625 show_confirmation = True
630626
631627 # check if requested storage growth is crossing the 4096 threshold
632- if storage_gb and storage_gb > 4096 and instance .storage .storage_size_gb <= 4096 and instance .storage .type == "" :
633- show_confirmation = True
634-
635- # check if storage_gb changed for PremiumV2_LRS
636- if storage_gb and instance .storage .type == "PremiumV2_LRS" and instance .storage .storage_size_gb != storage_gb :
628+ if storage_gb and storage_gb > 4096 and instance .storage .storage_size_gb <= 4096 and instance .storage .type != "PremiumV2_LRS" :
637629 show_confirmation = True
638630
639631 if not yes and show_confirmation :
640- user_confirmation (" You are trying to change the compute or the size of storage assigned to your server in a way that \
641- requires a server restart. During the restart, you'll experience some downtime of the server. Do you want to proceed?" , yes = yes )
632+ user_confirmation (' You are trying to update the compute or storage size assigned to your server in a way that '
633+ ' requires a server restart. During the restart, you\ ' ll experience some downtime of the server. Do you want to proceed?' , yes = yes )
642634
643635
644636def flexible_server_delete (cmd , client , resource_group_name , server_name , yes = False ):
0 commit comments