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
104104 $response = Invoke-FabricRestMethod - Uri $uri
105105
106106 # 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"
108108
109109 $response = $response.value
110110 if ($SQLDatabaseName )
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ function New-FabricSQLDatabase
7676 $response = Invoke-FabricRestMethod - Uri $apiEndpointUrl - Method Post - Body $bodyJson
7777 }
7878 # 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+
8081 Write-Message - Message " SQL Database '$Name ' created successfully!" - Level Info
8182 }
8283 catch
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ function Remove-FabricSQLDatabase
5252 }
5353
5454 # 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"
5656
5757 Write-Message - Message " SQL Database '$SQLDatabaseId ' deleted successfully!" - Level Info
5858 }
You can’t perform that action at this time.
0 commit comments