Skip to content

Commit 364fd40

Browse files
committed
formatting
1 parent 7cdc1de commit 364fd40

File tree

1 file changed

+13
-28
lines changed

1 file changed

+13
-28
lines changed

articles/virtual-machines/windows/sql/virtual-machines-windows-sql-workgroup-availability-group.md

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ For reference, the following parameters are used in this article, but can be mod
4242
| **Work group name** | AGWorkgroup |
4343
|   |   |
4444

45-
## 1 - Set DNS suffix
45+
## Set DNS suffix
4646

4747
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`.
4848

@@ -67,7 +67,7 @@ To configure the DNS suffix, follow these steps:
6767
1. Reboot the server when you are prompted to do so.
6868
1. Repeat these steps on any other nodes to be used for the availability group.
6969

70-
## 2 - Edit host file
70+
## Edit host file
7171

7272
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.
7373

@@ -87,7 +87,7 @@ To edit the host file, follow these steps:
8787

8888
![Add entries for the IP address, cluster, and listener to the host file](media/virtual-machines-windows-sql-workgroup-availability-group/4-host-file.png)
8989

90-
## 3 - Set permissions
90+
## Set permissions
9191

9292
Since there is no Active Directory to manage permissions, you need to manually allow a non-builtin local administrator account to create the cluster.
9393

@@ -98,12 +98,12 @@ To do so, run the following PowerShell cmdlet in an administrative PowerShell se
9898
new-itemproperty -path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name LocalAccountTokenFilterPolicy -Value 1
9999
```
100100

101-
## 4 - Create the failover cluster
101+
## Create the failover cluster
102102

103103
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).
104104

105105
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.
107107
- When adding the nodes to the cluster, add the fully qualified name, such as:
108108
- `AGNode1.ag.wgcluster.example.com`
109109
- `AGNode2.ag.wgcluster.example.com`
@@ -124,15 +124,15 @@ Once the cluster has been created, assign a static Cluster IP address. To do so,
124124

125125
![Verify cluster properties](media/virtual-machines-windows-sql-workgroup-availability-group/7-verify-cluster-properties.png)
126126

127-
## 5 - Create a cloud witness
127+
## Create a cloud witness
128128

129129
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).
130130

131-
## 6 - Enable availability group feature
131+
## Enable availability group feature
132132

133133
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).
134134

135-
## 7 - Create keys and certificate
135+
## Create keys and certificate
136136

137137
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`.
138138

@@ -221,7 +221,7 @@ To configure the second node, follow these steps:
221221

222222
If there are any other nodes in the cluster, repeat these steps there also, modifying the respective certificate names.
223223

224-
## 8 - Create logins
224+
## Create logins
225225

226226
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.
227227

@@ -273,35 +273,20 @@ GO
273273

274274
If there are any other nodes in the cluster, repeat these steps there also, modifying the respective certificate and user names.
275275

276-
## 9 - Configure availability group
276+
## Configure availability group
277277

278278
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.
279279

280280
> [!NOTE]
281281
> 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.
282282
283-
## 10 - Configure load balancer
283+
## Configure load balancer
284284

285285
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)
286286

287-
## 11 - Configure health probe
288287

289-
In this step, configure the health probe on both nodes with a single PowerShell command:
288+
## Next Steps
290289

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
298-
299-
Import-Module FailoverClusters
300-
301-
Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$ILBIP";"ProbePort"="59999";"SubnetMask"="255.255.255.255";"Network"="$ClusterNetworkName";"EnableDhcp"=0}
302-
```
303-
304-
### Other resources
305-
* [Configure an availability group with Az SQL VM CLI](virtual-machines-windows-sql-availability-group-cli.md)
290+
You can also use [Az SQL VM CLI](virtual-machines-windows-sql-availability-group-cli.md) to configure an availability group.
306291

307292

0 commit comments

Comments
 (0)