且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Azure导出SQL数据库示例

更新时间: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.

重要提示:

  1. 对于$serverAdmin$serverPassword,它们的值应该用单引号而不是双引号使脚本起作用
  2. 检查您的AzureRm.Sql模块的版本.经过矿山测试的工作是 2.5.0
  3. 尝试在New-AzureRmSqlDatabaseExport命令行中使用 -Debug 来查看详细信息
  1. For $serverAdmin and $serverPassword, their values should be single-quoted instead of double-quoted for the script to work
  2. Check the version of your AzureRm.Sql module. Mine tested working is 2.5.0
  3. Try to use -Debug for your New-AzureRmSqlDatabaseExport command line to see the details