Basically we want to store backups on Azure Blob storage, yet Invoke-DbaDbLogShipping
requires a $BackupNetworkPath
. The closest I was to this was Azure File Shares but unfortunately port 445 is blocked it seems so I can't utilize that.
I'm now trying to modify the Invoke-DbaDbLogShipping function to replace the mandatory $BackupNetworkPath
with Azure Blob Storage upload backups logic but I'm running into some issues:
Write-Message : The term 'Write-Message' is not recognized as the name of a cmdlet, function, script file, or operable program.
Test-FunctionInterrupt : The term 'Test-FunctionInterrupt' is not recognized as the name of a cmdlet, function, script file, or operable program.
Stop-Function : The term 'Stop-Function' is not recognized as the name of a cmdlet, function, script file, or operable program.
The property 'StatementTimeout' cannot be found on this object. Verify that the property exists and can be set.
To circumvent these errors, I copied/pasted the functions from the dbatools internal helper functions:
but I ran into yet another issue with [Sqlcollaborative.Dbatools.dbaSystem...]
For example: Unable to find type [Sqlcollaborative.Dbatools.dbaSystem.MessageLevel].
I tried importing the module Import-Module dbatools
in the script before the Invoke-DbaDbLogShipping
and that didn't help.