Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
[DSCLocalConfigurationManager()]
configuration SQLServerDSCSettings
{
Node localhost
{
Settings
{
ConfigurationModeFrequencyMins = 30
}
ConfigurationRepositoryWeb OSConfigServer
{
ServerURL = "https://corp.contoso.com/OSConfigServer/PSDSCPullServer.svc"
}
ConfigurationRepositoryWeb SQLConfigServer
{
ServerURL = "https://corp.contoso.com/SQLConfigServer/PSDSCPullServer.svc"
}
PartialConfiguration OSConfig
{
Description = 'Configuration for the Base OS'
ExclusiveResources = 'PSDesiredStateConfiguration\*'
ConfigurationSource = '[ConfigurationRepositoryWeb]OSConfigServer'
}
PartialConfiguration SQLConfig
{
Description = 'Configuration for the SQL Server'
ConfigurationSource = '[ConfigurationRepositoryWeb]SQLConfigServer'
DependsOn = '[PartialConfiguration]OSConfig'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment