Skip to content

New-FabricSQLDatabase should provide progress and maybe a -NoWait option #123

Open
@SQLDBAWithABeard

Description

@SQLDBAWithABeard

Problem description

The function creates a Fabric SQL Database. It takes a significant amount of time to return and also the Fabric SQL Database is available in the workspace before the function completes

Suggest a progress return and also maybe a no wait switch

Image

Verbose logs

PS > New-FabricSQLDatabase -WorkspaceId 9e52da3e-8c56-42dd-ad44-d4452114c0b3 -Name test3 -Description yep  -Verbose
VERBOSE: Check if session is established and token not expired.
VERBOSE: Show current session object
VERBOSE: Show current session object
VERBOSE: Performing the operation "Create SQL Database" on target "https://api.fabric.microsoft.com/v1/workspaces/9e52da3e-8c56-42dd-ad44-d4452114c0b3/sqldatabases".
VERBOSE: Requested HTTP/1.1 POST with 55-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
[2025-06-14 11:04:32] [Info] SQL Database 'test3' creation accepted. Provisioning in progress!
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8

id          : e0052ed9-2f65-431f-8746-ed60121e79cc
type        : SQLDatabase
displayName : test3
description : yep
workspaceId : 9e52da3e-8c56-42dd-ad44-d4452114c0b3

Module Version

pre-release

Suggested solution

add a nowait switch and a progress

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

🏗️ In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions