Skip to content

Remove-FabricWarehouse returns successful message even if delete fails #145

Open
@NowinskiK

Description

@NowinskiK

I noticed that the function Remove-FabricWarehouse doesn't handle errors from API correctly.

Example:
You can try to delete Warehouse that doesn't exist:

$w = Get-FabricWorkspace -WorkspaceName "test"
Remove-FabricWarehouse -WorkspaceId $w.Id -WarehouseId "8352f9b5-fae0-4dae-83a5-dd8e219f82e8" -Verbose

and it returns a message & error from the API:

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions