Rob Sewell continues a series on the MicrosoftFabricMgmt Powershell module. First up is structured logging:
If you have ever come back to a script the next morning and thought “what on earth happened last night?”, you understand why logging matters.
Write-HostandWrite-Verboseare fine for interactive use, but in automation — scheduled tasks, CI/CD pipelines, long-running jobs — you need something more structured. Something you can query, filter, and persist across sessions, something that you can provide to your team or support or auditors.MicrosoftFabricMgmt uses PSFramework for all its internal logging, and that capability is available directly to you.
Then comes retry logic and dealing with long-running operations:
REST APIs fail. Networks are unreliable. Cloud services have rate limits. If your automation script does not account for this, it will eventually break at the worst possible moment. This is not pessimism — it is production experience.
MicrosoftFabricMgmt has a lot of error handling built in, so you do not have to write it all yourself. Today I want to show you what the module handles automatically, and how to add your own handling on top for the scenarios you care about.