@@ -615,14 +615,11 @@ def create_application(cmd, client, display_name, identifier_uris=None,
615615 raise CLIError ("More than one application have the same display name '{}': (id) {}, please remove "
616616 'them first.' .format (display_name , ', ' .join ([x [ID ] for x in existing_apps ])))
617617 if len (existing_apps ) == 1 :
618- logger .warning ("IMPORTANT: The \" az %s\" command can modify an existing application or service principal "
619- "if another object shares the same display name. "
620- "Display names aren't unique and can change, "
618+ logger .warning ("Found an existing application instance: (id) %s." , existing_apps [0 ][ID ])
619+ logger .warning ("Please notice that display names aren't unique, "
621620 "which could result in credential loss or incorrect RBAC assignments. "
622- "Use a unique object ID or app ID instead. For more details, "
623- "see https://go.microsoft.com/fwlink/?linkid=2342455." , cmd .name )
624- logger .warning ("Found an existing application instance: (id) %s. We will patch it." ,
625- existing_apps [0 ][ID ])
621+ "To create a new application, use a unique display name instead. For more details, "
622+ "see https://go.microsoft.com/fwlink/?linkid=2342455." )
626623 body = update_application (
627624 existing_apps [0 ], display_name = display_name , identifier_uris = identifier_uris ,
628625 is_fallback_public_client = is_fallback_public_client ,
0 commit comments