Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6a055a

Browse files
Changing version to AzureSQLDatabase based on DatabaseEngineType
1 parent 1db5e4e commit b6a055a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎functions/Invoke-DbaDiagnosticQuery.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ function Invoke-DbaDiagnosticQuery {
254254
$version = "2016SP2"
255255
}
256256

257+
if ($server.DatabaseEngineType -eq "SqlAzureDatabase") {
258+
$version = "AzureSQLDatabase"
259+
}
260+
257261
if (!$instanceOnly) {
258262
if (-not $Database) {
259263
$databases = (Get-DbaDatabase -SqlInstance $server -ExcludeAllSystemDb -ExcludeDatabase $ExcludeDatabase).Name

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /