File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
source/Public/SQL Database Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ function Get-FabricSQLDatabase
104
104
$response = Invoke-FabricRestMethod - Uri $uri
105
105
106
106
# Step: Validate the response code
107
- Test-FabricApiResponse - response $response - Name $SQLDatabaseId - typeName " SQL Database"
107
+ Test-FabricApiResponse - Response $response - ObjectIdOrName $SQLDatabaseId - TypeName " SQL Database"
108
108
109
109
$response = $response.value
110
110
if ($SQLDatabaseName )
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ function New-FabricSQLDatabase
76
76
$response = Invoke-FabricRestMethod - Uri $apiEndpointUrl - Method Post - Body $bodyJson
77
77
}
78
78
# Step 5: Handle and log the response
79
- Test-FabricApiResponse - response $response - Name $Name - TypeName ' SQL Database' - NoWait:$NoWait
79
+ Test-FabricApiResponse - Response $response - ObjectIdOrName $Name - TypeName ' SQL Database' - NoWait:$NoWait
80
+
80
81
Write-Message - Message " SQL Database '$Name ' created successfully!" - Level Info
81
82
}
82
83
catch
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ function Remove-FabricSQLDatabase
52
52
}
53
53
54
54
# Step 4: Validate the response code
55
- Test-FabricApiResponse - response $response - Name $SQLDatabaseId - typeName " SQL Database"
55
+ Test-FabricApiResponse - Response $response - ObjectIdOrName $SQLDatabaseId - TypeName " SQL Database"
56
56
57
57
Write-Message - Message " SQL Database '$SQLDatabaseId ' deleted successfully!" - Level Info
58
58
}
You can’t perform that action at this time.
0 commit comments