Skip to content

Commit 2d98eb7

Browse files
Merge pull request #997 from dataplat/instancecheckscontinued
so we have a demo [no ci]
2 parents 10b7d26 + d758125 commit 2d98eb7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

developing/Oslo Demo.ps1

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Oslo Demo
2+
3+
./build.ps1 -tasks build
4+
5+
#region setup
6+
$containers = $SQLInstances = $dbachecks1, $dbachecks2, $dbachecks3 = 'dbachecks1', 'dbachecks2', 'dbachecks3'
7+
$password = ConvertTo-SecureString "dbatools.IO" -AsPlainText -Force
8+
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "sqladmin", $password
9+
$show = 'All'
10+
#endregion
11+
12+
# lets run a couple of tests
13+
14+
Invoke-DbcCheck -SqlInstance $Sqlinstances -SqlCredential $cred -Check InstanceConnection, DatabaseStatus -legacy $true -Show $show
15+
16+
# that failed but shouldnt have - set config
17+
Set-DbcConfig -Name policy.connection.authscheme -Value SQL
18+
19+
# run again
20+
21+
# what about skips?
22+
Set-DbcConfig -Name skip.connection.remoting -Value $true
23+
24+
# run again
25+
26+
# ok now in v5 mode
27+
Invoke-DbcCheck -SqlInstance $Sqlinstances -SqlCredential $cred -Check InstanceConnection, DatabaseStatus -legacy $false -Show $show
28+
29+
# So much quicker !!!
30+
31+
# show our perf test ????
32+
33+
$Checks = 'ErrorLogCount', 'XESessionExists', 'XESessionStopped', 'XpCmdShellDisabled', 'WhoIsActiveInstalled', 'CLREnabled', 'TwoDigitYearCutoff', 'MaxDopInstance', 'ErrorLogCount', 'ModelDbGrowth', 'DefaultBackupCompression', 'SaExist', 'SaDisabled', 'SaRenamed', 'DefaultFilePath', 'AdHocDistributedQueriesEnabled', 'AdHocWorkload', 'DefaultTrace', 'OleAutomationProceduresDisabled', 'CrossDBOwnershipChaining', 'ScanForStartupProceduresDisabled', 'RemoteAccessDisabled', 'SQLMailXPsDisabled', 'DAC', 'OLEAutomation', 'ServerNameMatch', 'OrphanedFile', 'MaxMemory', 'NetworkLatency', 'PublicPermission'
34+
35+
Invoke-PerfAndValidateCheck -Checks $Checks
36+
37+
# question turn off a container adn talk about hte fails?

0 commit comments

Comments
 (0)