diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 64f73d41772..aa6c02a6484 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -1019,7 +1019,7 @@ def load_arguments(self, _): with self.argument_context(scope) as c: c.argument('identity_role', options_list=['--role'], arg_group='Managed Service Identity', help='Role name or id the system assigned identity will have. ' - 'Please note that the default value "Contributor" will be removed in the future, ' + 'Please note that the default value "Contributor" will be removed in the future version 2.35.0, ' "so please specify '--role' and '--scope' at the same time when assigning a role to the managed identity") for scope in ['vm identity assign', 'vmss identity assign']: diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index d239a68f4bb..fdc9722e579 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1234,7 +1234,7 @@ def _validate_vm_vmss_msi(cmd, namespace, from_set_command=False): # at the same time to reduce the impact of breaking change if not from_set_command and namespace.identity_scope and getattr(namespace.identity_role, 'is_default', None): logger.warning( - "Please note that the default value of parameter '--role' will be removed in the future. " + "Please note that the default value of parameter '--role' will be removed in the future version 2.35.0. " "So specify '--role' and '--scope' at the same time when assigning a role to the managed identity " "to avoid breaking your automation script when the default value of '--role' is removed." )