Not sure the best way to title this thread but 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 cant utilize that.
Im now trying to modify the Invoke-DbaDbLogShipping function to replace the mandatory $BackupNetworkPath
with Azure Blob Storage upload backups logic but Im 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 them from the dbatools internal helper functions:
Write-Message
Stop-Function
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 didnt help...