diff --git a/autorest/codegen/__init__.py b/autorest/codegen/__init__.py index 3f369ca2dbd..e7e6a6da03c 100644 --- a/autorest/codegen/__init__.py +++ b/autorest/codegen/__init__.py @@ -148,8 +148,8 @@ def _get_credential_param(self, azure_arm, credential, credential_default_policy # If add-credential is specified, we still want to add a credential_scopes variable. # Will make it an empty list so we can differentiate between this case and None _LOGGER.warning( - "You have used the --add-credential flag but not the --credential-scopes flag " - "while generating non-management plane code. " + "You have default credential policy BearerTokenCredentialPolicy" + "but not the --credential-scopes flag set while generating non-management plane code. " "This is not recommend because it forces the customer to pass credential scopes " "through kwargs if they want to authenticate." )