You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_SqlAGDatabase/DSC_SqlAGDatabase.psm1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ function Get-TargetResource
159
159
#>
160
160
functionSet-TargetResource
161
161
{
162
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('AvoidThrowOutsideOfTry','', Justification='Because the code throws based on an prior expression')]
162
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('AvoidThrowOutsideOfTry','', Justification='Because the code throws based on an prior expression')]
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_SqlAgentAlert/DSC_SqlAgentAlert.psm1
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -297,7 +297,7 @@ function Set-TargetResource
297
297
298
298
functionTest-TargetResource
299
299
{
300
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
300
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
301
301
[CmdletBinding()]
302
302
[OutputType([System.Boolean])]
303
303
param
@@ -347,15 +347,18 @@ function Test-TargetResource
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_SqlAgentFailsafe/DSC_SqlAgentFailsafe.psm1
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -228,7 +228,7 @@ function Set-TargetResource
228
228
#>
229
229
functionTest-TargetResource
230
230
{
231
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
231
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
232
232
[CmdletBinding()]
233
233
[OutputType([System.Boolean])]
234
234
param
@@ -275,14 +275,17 @@ function Test-TargetResource
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_SqlAgentOperator/DSC_SqlAgentOperator.psm1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -257,7 +257,7 @@ function Set-TargetResource
257
257
#>
258
258
functionTest-TargetResource
259
259
{
260
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
260
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='Neither command is needed for this resource since the resource modifies registry')]
18
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='Neither command is needed for this resource since the resource modifies registry')]
19
19
[CmdletBinding()]
20
20
[OutputType([System.Collections.Hashtable])]
21
21
param
@@ -133,7 +133,7 @@ function Get-TargetResource
133
133
#>
134
134
functionSet-TargetResource
135
135
{
136
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='Neither command is needed for this resource since the resource modifies registry')]
136
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='Neither command is needed for this resource since the resource modifies registry')]
137
137
[CmdletBinding()]
138
138
param
139
139
(
@@ -265,7 +265,7 @@ function Set-TargetResource
265
265
#>
266
266
functionTest-TargetResource
267
267
{
268
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='Neither command is needed for this resource since the resource modifies registry')]
268
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='Neither command is needed for this resource since the resource modifies registry')]
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_SqlAlwaysOnService/DSC_SqlAlwaysOnService.psm1
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ function Set-TargetResource
128
128
)
129
129
130
130
# Build the instance name to allow the Enable/Disable-Always On to connect to the instance
131
-
if ($InstanceName-eq"MSSQLSERVER")
131
+
if ($InstanceName-eq'MSSQLSERVER')
132
132
{
133
133
$serverInstance=$ServerName
134
134
}
@@ -206,7 +206,7 @@ function Set-TargetResource
206
206
#>
207
207
functionTest-TargetResource
208
208
{
209
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
209
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_SqlConfiguration/DSC_SqlConfiguration.psm1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ function Set-TargetResource
219
219
#>
220
220
functionTest-TargetResource
221
221
{
222
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
222
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO','', Justification='The command Connect-Sql is called when Get-TargetResource is called')]
0 commit comments