SqlEndpoints creates SQL Server endpoints for database mirroring or service broker communication.
Use this resource when you need to create database mirroring endpoints (required for Always On Availability Groups) or service broker endpoints. Mirroring endpoints must be configured on all replicas before creating Availability Groups with SqlAGs.
Currently it only supports creating a database mirror and a service broker endpoint. A database mirror endpoint can be used by AlwaysOn.
The endpoint will be started after creation, but will not be enforced unless the the parameter State is specified.
To set connect permission to the endpoint, please use the resource SqlEndpointPermission.
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.
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
DefaultInstanceName |
String |
Default SQL InstanceName |
Default: |
|
Mandatory |
Hashtable[] |
List of SQL endpoints. |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
EndpointName |
Key |
String |
The name of the endpoint. |
|
InstanceName |
Key |
String |
The name of the SQL Server instance to be configured. |
|
EndpointType |
Required |
String |
Specifies the type of endpoint. Currently the only types that are supported are the Database Mirroring and the Service Broker type. |
|
Ensure |
String |
Determines whether the endpoint should be added ( |
|
|
Port |
UInt16 |
The network port the endpoint is listening on. Default value is |
Default: |
|
ServerName |
String |
The host name of the SQL Server to be configured. Default value is the current computer name. |
||
IpAddress |
String |
The network IP address the endpoint is listening on. Default value is |
Default: |
|
Owner |
String |
The owner of the endpoint. Default is the login used for the creation. |
||
IsMessageForwardingEnabled |
Bool |
Specifies whether messages received by this endpoint that are for services located elsewhere will be forwarded. |
|
|
MessageForwardingSize |
UInt32 |
Specifies the maximum amount of storage in megabytes to allocate for the endpoint to use when storing messages that are to be forwarded. |
||
State |
String |
Specifies the state of the endpoint. When an endpoint is created and the state is not specified then the endpoint will be started after it is created. The state will not be enforced unless the parameter is specified. |
|
SqlEndpoints:
Values:
- EndpointName: HADR
EndpointType: DatabaseMirroring
Port: 5022
ServerName: SQL1
InstanceName: MSSQLSERVER
- EndpointName: HADR
EndpointType: DatabaseMirroring
Port: 5023
ServerName: SQL2
InstanceName: MSSQLSERVER