Skip to content

Commit

Permalink
Changes to SqlServerDsc
Browse files Browse the repository at this point in the history
- The examples in the root of the Examples folder are obsolete. Those examples
  now have a note saying so, in the comment-based help, until they can be replaced (issue dsccommunity#904).
  • Loading branch information
johlju committed Nov 30, 2017
1 parent 99ad8a2 commit 183a566
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
- Impact to all resources
- Changes to CONTRIBUTING.md
- Added details to the naming convention used in SqlServerDsc.
- Changes to SqlServerDsc
- The examples in the root of the Examples folder are obsolete. Those examples
now have a note saying so, in the comment-based help, until they can be replaced
([issue #904](https://github.com/PowerShell/SqlServerDsc/issues/904)).
- Changes to SqlAGDatabase
- Changed the Get-MatchingDatabaseNames function to be case insensitive when
matching database names. ([issue #912](https://github.com/PowerShell/SqlServerDsc/issues/912))
matching database names. ([issue #912](https://github.com/PowerShell/SqlServerDsc/issues/912))

## 9.0.0.0

Expand Down
14 changes: 13 additions & 1 deletion Examples/DSCClusterSqlBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes to the resource modules
(this and other modules) over the last few months this example has not
been updated to reflect those changes.
Please refer to the examples in each individual resource example folder
for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples/Resources
There is an issue open to replace this example, please see issue
https://github.com/PowerShell/SqlServerDsc/issues/462
#>

$StartTime = [System.Diagnostics.Stopwatch]::StartNew()
Function check-even($num){[bool]!($num%2)}

Expand Down
14 changes: 13 additions & 1 deletion Examples/DSCFCISqlBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes to the resource modules
(this and other modules) over the last few months this example has not
been updated to reflect those changes.
Please refer to the examples in each individual resource example folder
for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples/Resources
There is an issue open to replace this example, please see issue
https://github.com/PowerShell/SqlServerDsc/issues/462
#>

$computers = 'OHSQL9034N1','OHSQL9034N2','OHSQL9034N3'
$OutputPath = 'F:\DSCConfig'

Expand Down
13 changes: 12 additions & 1 deletion Examples/DSCSQLBuildEncrypted.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes to the resource modules
(this and other modules) over the last few months this example has not
been updated to reflect those changes.
Please refer to the examples in each individual resource example folder
for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples/Resources
There is an issue open to replace this example, please see issue
https://github.com/PowerShell/SqlServerDsc/issues/462
#>
$StartTime = [System.Diagnostics.Stopwatch]::StartNew()

$computers = 'OHSQL9012'
Expand Down
13 changes: 12 additions & 1 deletion Examples/DSCSqlBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes to the resource modules
(this and other modules) over the last few months this example has not
been updated to reflect those changes.
Please refer to the examples in each individual resource example folder
for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples/Resources
There is an issue open to replace this example, please see issue
https://github.com/PowerShell/SqlServerDsc/issues/462
#>
$StartTime = [System.Diagnostics.Stopwatch]::StartNew()

$computers = 'OHSQL9015'
Expand Down
14 changes: 12 additions & 2 deletions Examples/SQL-ClusterDB.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#requires -Version 5

<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes to the resource modules
(this and other modules) over the last few months this example has not
been updated to reflect those changes.
Please refer to the examples in each individual resource example folder
for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples/Resources
There is an issue open to replace this example, please see issue
https://github.com/PowerShell/SqlServerDsc/issues/462
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param ()

Expand Down
14 changes: 12 additions & 2 deletions Examples/SQL-Standalone.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#requires -Version 5

<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes to the resource modules
(this and other modules) over the last few months this example has not
been updated to reflect those changes.
Please refer to the examples in each individual resource example folder
for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples/Resources
There is an issue open to replace this example, please see issue
https://github.com/PowerShell/SqlServerDsc/issues/462
#>
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param ()

Expand Down
13 changes: 12 additions & 1 deletion Examples/SQLPush_SingleServer.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes to the resource modules
(this and other modules) over the last few months this example has not
been updated to reflect those changes.
Please refer to the examples in each individual resource example folder
for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples/Resources
There is an issue open to replace this example, please see issue
https://github.com/PowerShell/SqlServerDsc/issues/462
#>
$computers = 'OHSQL1016'
$OutputPath = 'D:\DSCLocal'
$cim = New-CimSession -ComputerName $computers
Expand Down

0 comments on commit 183a566

Please sign in to comment.