Skip to content

Commit c5fb8d1

Browse files
committed
Updated warning message
1 parent 41c5d51 commit c5fb8d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/azure-cli/azure/cli/command_modules/vm/_validators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2721,4 +2721,6 @@ def _validate_image_deprecation_status(cmd, namespace):
27212721
return
27222722

27232723
if image.get('imageDeprecationStatus', {}).get('imageState') == 'ScheduledForDeprecation':
2724-
logger.warning('The selected image is scheduled for deprecation.')
2724+
logger.warning('Warning: This image {} is scheduled for deprecation and will be blocked for new deployments once enforcement begins.\n'
2725+
'VM / VMSS creation is allowed temporarily, but future deployments, redeployments, or scale‑out operations may fail.\n'
2726+
'Consider switching to a supported image now.'.format(namespace.image))

0 commit comments

Comments
 (0)