SqlAlwaysOnServices enables or disables SQL Server Always On high availability and disaster recovery (Always On HADR) for a SQL Server instance.
Source |
|
DSC Resource |
|
Documentation |
-
Target machine must be running Windows Server 2012 or later.
-
Target machine must be running SQL Server Database Engine 2012 or later.
-
Target machine must be a member of a Windows Server Failover Cluster.
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
InstanceName |
Key |
String |
The name of the SQL Server instance to be configured. |
|
Enure |
Required |
String |
Determines whether the alias should be added ( |
|
ServerName |
String |
The host name of the SQL Server to be configured. Default value is the current computer name. |
||
RestartTimeout |
UInt32 |
The length of time, in seconds, to wait for the service to restart. |
Default: |
|
CompatibilityLevel |
String |
Specifies the version of the SQL Database Compatibility Level to use for the specified database. |
|
|
IsHadrEnabled |
Bool |
Returns the status of AlwaysOn High Availability and Disaster Recovery (HADR). |
|
SqlAlwaysOnServices:
ServerName: SQL1
SqlInstanceName: MSSQLSERVER
RestartTimeout: 120