I am curently testing an AlwaysOn SQL Server 2019 environment and I want to check some things before we go live.
For example, I want to drop/recreate the listener. After this, I want to revert the settings to the one our provider used. So I searched for an "export AlwaysOn settings to T-SQL" script, but I couldn't fine one.
Does anyone have such a script?