Problem description
Time to fix & adopt this function and make it great again :)
It's also a good opportunity to fix the function, as it doesn't work (log below).
Verbose logs
VERBOSE: Method: POST
VERBOSE: URI: /v1/rest/query
VERBOSE: Body of request: {
"db": "EH-SQLDay2025",
"csl": "let x = range x from 1 to 10 step 1; x | summarize count() by x\r\n"
}
VERBOSE: ContentType: application/json
Invoke-RestMethod: Invalid URI: The hostname could not be parsed.
VERBOSE: Result of the Query API: null
InvalidOperation: Cannot index into a null array.
Module Version
develop (0.30)
Suggested solution
- Use
Invoke-FabricRestMethod and call it only once
- One of these parameters should be mandatory:
KQLDatabaseName or KQLDatabaseId
- Fix misspelled names like
$isManamgentCommand
- Remove Revision History
- Fix the bug
Problem description
Time to fix & adopt this function and make it great again :)
It's also a good opportunity to fix the function, as it doesn't work (log below).
Verbose logs
Module Version
develop (0.30)
Suggested solution
Invoke-FabricRestMethodand call it only onceKQLDatabaseNameorKQLDatabaseId$isManamgentCommand