You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/windows/sql/virtual-machines-windows-sql-workgroup-availability-group.md
+13-28Lines changed: 13 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ For reference, the following parameters are used in this article, but can be mod
42
42
|**Work group name**| AGWorkgroup |
43
43
| | |
44
44
45
-
## 1 - Set DNS suffix
45
+
## Set DNS suffix
46
46
47
47
In this step, configure the DNS suffix for both servers. For example, `ag.wgcluster.example.com`. This allows you to use the name of the object you want to connect to as a fully qualified address within your network, such as `AGNode1.ag.wgcluster.example.com`.
48
48
@@ -67,7 +67,7 @@ To configure the DNS suffix, follow these steps:
67
67
1. Reboot the server when you are prompted to do so.
68
68
1. Repeat these steps on any other nodes to be used for the availability group.
69
69
70
-
## 2 - Edit host file
70
+
## Edit host file
71
71
72
72
Since there is no active directory, there is no way to authenticate windows connections. As such, assign trust by editing the host file with a text editor.
73
73
@@ -87,7 +87,7 @@ To edit the host file, follow these steps:
87
87
88
88

89
89
90
-
## 3 - Set permissions
90
+
## Set permissions
91
91
92
92
Since there is no Active Directory to manage permissions, you need to manually allow a non-builtin local administrator account to create the cluster.
93
93
@@ -98,12 +98,12 @@ To do so, run the following PowerShell cmdlet in an administrative PowerShell se
In this step, you will create the failover cluster. If you're unfamiliar with these steps, you can follow them from the [failover cluster tutorial](virtual-machines-windows-portal-sql-create-failover-cluster.md#step-2-configure-the-windows-server-failover-cluster-with-storage-spaces-direct).
104
104
105
105
Notable differences between the tutorial and what should be done for a workgroup cluster:
106
-
- Uncheck **Storage Spaces Direct** when running the cluster validation.
106
+
- Uncheck **Storage**, and **Storage Spaces Direct** when running the cluster validation.
107
107
- When adding the nodes to the cluster, add the fully qualified name, such as:
108
108
-`AGNode1.ag.wgcluster.example.com`
109
109
-`AGNode2.ag.wgcluster.example.com`
@@ -124,15 +124,15 @@ Once the cluster has been created, assign a static Cluster IP address. To do so,
In this step, configure a cloud share witness. If you're unfamiliar with the steps, see the [failover cluster tutorial](virtual-machines-windows-portal-sql-create-failover-cluster.md#create-a-cloud-witness).
130
130
131
-
## 6 - Enable availability group feature
131
+
## Enable availability group feature
132
132
133
133
In this step, enable the availability group feature. If you're unfamiliar with the steps, see the [availability group tutorial](virtual-machines-windows-portal-sql-availability-group-tutorial.md#enable-availability-groups).
134
134
135
-
## 7 - Create keys and certificate
135
+
## Create keys and certificate
136
136
137
137
In this step, create certificates that a SQL login uses on the encrypted endpoint. Create a folder on each node to hold the certificate backups, such as `c:\certs`.
138
138
@@ -221,7 +221,7 @@ To configure the second node, follow these steps:
221
221
222
222
If there are any other nodes in the cluster, repeat these steps there also, modifying the respective certificate names.
223
223
224
-
## 8 - Create logins
224
+
## Create logins
225
225
226
226
Certificate authentication is used to synchronize data across nodes. To allow this, create a login for the other node, create a user for the login, create a certificate for the login to use the backed-up certificate, and then grant connect on the mirroring endpoint.
227
227
@@ -273,35 +273,20 @@ GO
273
273
274
274
If there are any other nodes in the cluster, repeat these steps there also, modifying the respective certificate and user names.
275
275
276
-
## 9 - Configure availability group
276
+
## Configure availability group
277
277
278
278
In this step, configure your availability group, and add your databases to it. Do not create a listener at this time. If you're not familiar with the steps, see the [availability group tutorial](virtual-machines-windows-portal-sql-availability-group-tutorial.md#create-the-availability-group). Be sure to initiate a failover and failback to verify that everything is working as it should be.
279
279
280
280
> [!NOTE]
281
281
> If there is a failure during the synchronization process, you may need to grant `NT AUTHORITY\SYSTEM` sysadmin rights to create cluster resources on the first node, such as `AGNode1` temporarily.
282
282
283
-
## 10 - Configure load balancer
283
+
## Configure load balancer
284
284
285
285
In this final step, configure the load balancer using either the [Azure portal](virtual-machines-windows-portal-sql-alwayson-int-listener.md) or [PowerShell](virtual-machines-windows-portal-sql-ps-alwayson-int-listener.md)
286
286
287
-
## 11 - Configure health probe
288
287
289
-
In this step, configure the health probe on both nodes with a single PowerShell command:
288
+
## Next Steps
290
289
291
-
```PowerShell
292
-
# Define variables
293
-
$ClusterNetworkName = "Cluster Network 1" # the cluster network name (Use Get-ClusterNetwork on Windows Server 2012 of higher to find the name)
294
-
295
-
$IPResourceName = "AGListenerIP_10.0.0.7"# the IP Address resource name
296
-
297
-
$ILBIP = “10.0.0.7” # the IP Address of the Internal Load Balancer (ILB)/Listener
0 commit comments