Creating an Availability Group listener
In this recipe, we will create an Availability Group listener for an Availability Group.
Getting ready
We will use the following information for this recipe. You will need to change these values based on your environment configuration:
Configuration |
Value |
---|---|
Availability Group (AG) Name |
|
Primary Replica Instance |
|
AG Listener Name |
|
AG Listener IP Address |
|
AG Listener Subnet Mask |
|
AG Listener Port Number |
|
How to do it...
Perform the following steps to create and configure an Availability Group listener:
- Open PowerShell ISE as an administrator.
- Add the following script and run it:
Import-Module SQLPS -DisableNameChecking ...
Get SQL Server 2014 with PowerShell v5 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.