Skip to content

Latest commit

 

History

History
148 lines (117 loc) · 3.98 KB

SqlEndpoints.adoc

File metadata and controls

148 lines (117 loc) · 3.98 KB

DSC Resource 'SqlEndpoints'

The SqlEndpoints DSC resource is used to create an endpoint. 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

Requirements
  • Target machine must be running Windows Server 2012 or later.

  • Target machine must be running SQL Server Database Engine 2012 or later.

Table 1. Attributes of category 'SqlEndpoints'
Parameter Attribute DataType Description Allowed Values

Values

Mandatory

Hashtable[]

List of SQL endpoints.

Table 2. Attributes of category 'SqlEndpoints'
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.

DatabaseMirroring, ServiceBroker

Enure

String

Determines whether the alias should be added ('Present') or removed ('Absent'). Default value is 'Present'.

Present, Absent

Port

UInt16

The network port the endpoint is listening on. Default value is 5022, but default value is only used during endpoint creation, it is not enforce.

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 '0.0.0.0' which means listen on any valid IP address. The default value is only used during endpoint creation, it is not enforce.

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.

Started, Stopped, Disabled

Example
SqlEndpoints:
Values:
    - EndpointName: HADR
      EndpointType: DatabaseMirroring
      Port: 5022
      ServerName: SQL1
      InstanceName: MSSQLSERVER
    - EndpointName: HADR
      EndpointType: DatabaseMirroring
      Port: 5023
      ServerName: SQL2
      InstanceName: MSSQLSERVER