Azure Export SQL database example

前端 未结 4 810
我在风中等你
我在风中等你 2021-01-12 09:24

Given Microsoft is deprecating the previous method of exporting a SQL DB they have put up a suggested example here:

$subscriptionId = \"YOUR AZURE SUBSCRIPT         


        
4条回答
  •  长情又很酷
    2021-01-12 09:50

    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.

    Important Note:

    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

提交回复
热议问题