I need create and download backup sql database. I installed Azure powershell. But my script does not work.
$dt = Get-Date -Format yyyyMMddHHmmss
$dbname = 'AnimalTranslate'
Backup-SqlDatabase $dbname "C:\drops" "XXX.database.windows.net" "login" "password"
I see error:
Backup-Database : The term 'Backup-Database' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
How it's fixed?
Backup-Database
but you useBackup-SqlDatabase
. Do you use that error when usingBackup-SqlDatabase
? - Tom