Skip to content

Commit

Permalink
SqlServerDsc: Adding note to obsolete examples (dsccommunity#920)
Browse files Browse the repository at this point in the history
- Changes to SqlServerDsc
  - The examples in the root of the Examples folder are obsolete. A note was
    added to the comment-based help in each example stating it is obsolete.
    This is a temporary measure until they are replaced (issue dsccommunity#904).
  • Loading branch information
johlju authored Nov 30, 2017
1 parent 99ad8a2 commit 9a1080c
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 10 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
- 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. A note was
added to the comment-based help in each example stating it is obsolete.
This is a temporary measure until they are 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
12 changes: 11 additions & 1 deletion Examples/DSCClusterSqlBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes in the resource modules
over the last several versions, this example has not been updated to reflect
those changes.
Please refer to the resource example folder for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/master/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
12 changes: 11 additions & 1 deletion Examples/DSCFCISqlBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes in the resource modules
over the last several versions, this example has not been updated to reflect
those changes.
Please refer to the resource example folder for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/master/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
12 changes: 11 additions & 1 deletion Examples/DSCSQLBuildEncrypted.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes in the resource modules
over the last several versions, this example has not been updated to reflect
those changes.
Please refer to the resource example folder for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/master/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
12 changes: 11 additions & 1 deletion Examples/DSCSqlBuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes in the resource modules
over the last several versions, this example has not been updated to reflect
those changes.
Please refer to the resource example folder for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/master/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
13 changes: 11 additions & 2 deletions Examples/SQL-ClusterDB.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#requires -Version 5

<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes in the resource modules
over the last several versions, this example has not been updated to reflect
those changes.
Please refer to the resource example folder for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/master/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: 11 additions & 2 deletions Examples/SQL-Standalone.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#requires -Version 5

<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes in the resource modules
over the last several versions, this example has not been updated to reflect
those changes.
Please refer to the resource example folder for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/master/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
12 changes: 11 additions & 1 deletion Examples/SQLPush_SingleServer.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#requires -Version 5
<#
.NOTES
THIS EXAMPLE IS OBSOLETE. Due to major changes in the resource modules
over the last several versions, this example has not been updated to reflect
those changes.
Please refer to the resource example folder for updated examples.
https://github.com/PowerShell/SqlServerDsc/tree/master/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 9a1080c

Please sign in to comment.