Skip to content

Latest commit

 

History

History
162 lines (130 loc) · 4.71 KB

File metadata and controls

162 lines (130 loc) · 4.71 KB

DSC Resource 'DscPullServerSql'

DscPullServerSql sets up a DSC Pull Server with a SQL Server backend and firewall configuration.

When to use 'DscPullServerSql'

Use this resource when you need a DSC Pull Server that uses SQL Server for its backend database instead of the default EDB/MDB file. The SQL backend provides better performance and scalability for large environments with many managed nodes. It also configures necessary firewall rules.

Source

DSC Resource

Documentation

Note

The IIS ApplicationPool PSWS to use for the Pull Server will be created.

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

EndpointName

String

The desired web service name.

The EndpointName is the name of the IIS website.

The URL to access the Pullserver webservice is always http(s)://<servername>:<port>/PSDSCPullServer.svc. These values are currently hard coded in xDscWebService.

Default: PSDSCPullServer

Port

Uint16

The port number of the DSC Pull Server IIS Endpoint.

Default: 8080

CertificateThumbPrint

String

The thumbprint of the Certificate in CERT:\LocalMachine\MY\ for creating the Pull Server HTTPS endpoint.
Use AllowUnencryptedTraffic for setting up a non SSL based endpoint.

Default: AllowUnencryptedTraffic

RegistrationKey

Mandatory

String

DSC pull server registration key
The key is stored in key file $env:PROGRAMFILES\WindowsPowerShell\DscService\RegistrationKeys.txt
This should be a string with enough entropy (randomness) to protect the registration of clients to the pull server. Using a GUID is recommended.

SqlServer

Mandatory

String

Name of the SQL Server to host the DSC database

Default: localhost

DatabaseName

Mandatory

String

Name of the SQL Database for the Pull Server

Default: DSC

UseSecurityBestPractices

Boolean

This property will ensure that the Pull Server is created with the most secure practices.

  • False (default)

  • True

ConfigureFirewall

Boolean

This property will ensure that a Firewall rule is created for Pull Server TCP Port.

  • False (default)

  • True

AcceptSelfSignedCertificates

Boolean

Accept self-signed certificates for the Pull Server endpoint.

  • False (default)

  • True

PhysicalPath

String

The physical path for the IIS Endpoint on the machine (usually under inetpub).

Default: $env:SystemDrive\inetpub\PSDSCPullServer

ModulePath

String

The location on the disk where the Modules are stored.

Default: $env:PROGRAMFILES\WindowsPowerShell\DscService\Modules

ConfigurationPath

String

The location on the disk where the Configuration is stored.

Default: $env:PROGRAMFILES\WindowsPowerShell\DscService\Configuration

Example
DscPullServerSql:
  CertificateThumbPrint: AllowUnencryptedTraffic
  Port: 8080
  RegistrationKey: SomePass1
  SqlServer: SQL01
  DatabaseName: DSC
  EndpointName: PSDSCPullServer
  PhysicalPath: C:\inetpub\PSDSCPullServer
  ModulePath: C:\Program Files\WindowsPowerShell\DscService\Modules
  ConfigurationPath: C:\Program Files\WindowsPowerShell\DscService\Configuration
  UseSecurityBestPractices: True
  ConfigureFirewall: True