更新时间:2022-11-25 11:13:10
上面问题中的PowerShell脚本示例已经过测试,符合我的预期.
The PowerShell script example in your question above is tested working as expected for me.
但是,即使尝试使用不存在的资源组,数据库服务器或数据库,我也无法重现与您相同的错误消息.
However, I am not able to reproduce the same error message as yours even try to use non-existent resource group, database server or database.
重要提示:
$serverAdmin
和$serverPassword
,它们的值应该用单引号而不是双引号使脚本起作用AzureRm.Sql
模块的版本.经过矿山测试的工作是 2.5.0 New-AzureRmSqlDatabaseExport
命令行中使用 -Debug 来查看详细信息$serverAdmin
and $serverPassword
, their values should be single-quoted instead of double-quoted for the script to workAzureRm.Sql
module. Mine tested working is 2.5.0
New-AzureRmSqlDatabaseExport
command line to see the details