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.
-
'NT SERVICE\ClusSvc' or 'NT AUTHORITY\SYSTEM' must have the 'Connect SQL', 'Alter Any Availability Group', and 'View Server State' permissions.
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Mandatory |
Hashtable[] |
List of SQL availability groups. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name |
Key |
String |
Specifies the name of the availability group. |
|
InstanceName |
Key |
String |
The name of the SQL Server instance to be configured. |
|
ServerName |
Required |
String |
The host name of the SQL Server to be configured. Default value is the current computer name. |
|
Enure |
String |
Determines whether the alias should be added ( |
|
|
AutomatedBackupPreference |
String |
Specifies the automated backup preference for the availability group. When creating a group the default is |
|
|
AvailabilityMode |
String |
Specifies the replica availability mode. When creating a group the default is |
|
|
BackupPriority |
UInt32 |
Specifies the desired priority of the replicas in performing backups. The acceptable values for this parameter are: integers from 0 through 100. Of the set of replicas which are online and available, the replica that has the highest priority performs the backup. When creating a group the default is |
||
BasicAvailabilityGroup |
Bool |
Specifies the type of availability group is Basic. This is only available is SQL Server 2016 and later and is ignored when applied to previous versions. |
||
DatabaseHealthTrigger |
Bool |
Specifies if the option Database Level Health Detection is enabled. This is only available is SQL Server 2016 and later and is ignored when applied to previous versions. |
||
DtcSupportEnabled |
Bool |
Specifies if the option Database DTC Support is enabled. This is only available is SQL Server 2016 and later and is ignored when applied to previous versions. This can not be altered once the availability group is created and is ignored if it is the case. |
||
ConnectionModeInPrimaryRole |
String |
Specifies how the availability replica handles connections when in the primary role. |
|
|
ConnectionModeInSecondaryRole |
String |
Specifies how the availability replica handles connections when in the secondary role. |
|
|
EndpointHostName |
String |
Specifies the hostname or IP address of the availability group replica endpoint. When creating a group the default is the instance network name. |
||
FailureConditionLevel |
String |
Specifies the automatic failover behavior of the availability group. |
|
|
FailoverMode |
String |
Specifies the failover mode. When creating a group the default is |
|
|
HealthCheckTimeout |
UInt32 |
Specifies the length of time, in milliseconds, after which AlwaysOn Availability Groups declare an unresponsive server to be unhealthy. When creating a group the default is |
||
ProcessOnlyOnActiveNode |
Bool |
Specifies that the resource will only determine if a change is needed if the target node is the active host of the SQL Server instance. |
||
EndpointUrl |
String |
Returns the URL of the availability group replica endpoint. |
||
EndpointPort |
UInt32 |
Returns the port the database mirroring endpoint is listening on. |
||
Version |
UInt32 |
Returns the major version of the SQL Server instance. |
||
IsActiveNode |
Bool |
Returns if the current node is actively hosting the SQL Server instance. |
SqlAGs:
Values:
- Name: AGTest
InstanceName: INSTANCE1
ServerName: SQL1
AvailabilityMode: SynchronousCommit
FailoverMode: Automatic
- Name: AGTest
InstanceName: INSTANCE2
ServerName: SQL1
AvailabilityMode: SynchronousCommit
FailoverMode: Automatic