Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 超规模数据库上新AzSqlDatabaseCopy的替代方案_Azure_Powershell_Azure Sql Database_Azure Automation - Fatal编程技术网

Azure 超规模数据库上新AzSqlDatabaseCopy的替代方案

Azure 超规模数据库上新AzSqlDatabaseCopy的替代方案,azure,powershell,azure-sql-database,azure-automation,Azure,Powershell,Azure Sql Database,Azure Automation,我正在Microsoft Azure上工作,其中我有一组用于测试环境和生产环境的资源,在这两个环境中我都有一个Azure SQL数据库服务器及其各自的数据库。 我正在另一个Microsoft Azure帐户(重要说明)中的Powershell中创建自动化帐户运行手册,该帐户负责将生产数据库“复制”到测试。我知道有新的AzSqlDatabaseCopy命令,但是,这个命令不适用于超规模数据库。 在“超比例”中是否有替代此命令的方法?或者在第二个帐户中,可以创建一个。Bacpac远程使用Azure

我正在Microsoft Azure上工作,其中我有一组用于测试环境和生产环境的资源,在这两个环境中我都有一个Azure SQL数据库服务器及其各自的数据库。 我正在另一个Microsoft Azure帐户(重要说明)中的Powershell中创建自动化帐户运行手册,该帐户负责将生产数据库“复制”到测试。我知道有
新的AzSqlDatabaseCopy
命令,但是,这个命令不适用于超规模数据库。 在“超比例”中是否有替代此命令的方法?或者在第二个帐户中,可以创建一个。Bacpac远程使用Azure Powershell命令,我所看到的只是在同一个帐户上工作,但由于工作速率的原因,数据库帐户与自动化帐户不同。 提前感谢您的帮助和意见


我已经尝试使用
New AzureRmSqlDatabaseExport
命令,但它似乎只在同一Azure帐户中工作,并且我无法指定“Azure帐户用于备份”和“Azure帐户用于存储”。我说得对吗?

目前不适用于Azure SQL Hyperscale,但您可能会在几个月后的公开预览中看到它。

目前不适用于Azure SQL Hyperscale,但您可能会在几个月后的公开预览中看到它。

正如Alberto Morillo在其评论
新AZSQL数据库副本中所说,它目前不可用对于Azure SQL超规模。至少在回答这个问题的时候

因此,我尝试对2个Azure帐户使用
New AzureRmSqlDatabaseExport
,这完全可能,您需要使用源数据库的Azure帐户登录
Connect AzureRmAccount
,然后需要使用以下参数调用
New AzureRmSqlDatabaseExport
命令

New-AzureRmSqlDatabaseExport 
    -ResourceGroupName          $RGName # Resource group of the source database
    -ServerName                 $Server # Server name of the source database
    -DatabaseName               $Database # Name of the source database 
    -AdministratorLogin         $User # Administrator user of the source database
    -AdministratorLoginPassword $Pwd # Password of the source database
    -StorageKeytype             "StorageAccessKey" # Key type of the destination storage account (The one of the another azure account)
    -StorageKey                 $StorageKey # Key of the destination storage account(The one of the another azure account)
    -StorageUri                 $StorageFileFullURI # The full file uri of the destination storage (The one of the another azure account)
# The format of the URI file is the following:
# https://contosostorageaccount.blob.core.windows.net/backupscontainer/backupdatabasefile.bacpac
不幸的是,此命令没有为hyperscale启用,因此我收到以下错误消息:

新AzureRmSqlDatabaseExport:40822:此功能不适用于所选数据库的版本(超比例)

我对一个不是超规模的数据库使用了相同的命令,它工作得非常好


最后,我想我必须执行手动过程至少几个月,让Microsoft为HyperScale启动更新,就像Alberto Morillo在他的评论中所说的那样,它目前不适用于Azure SQL HyperScale。至少在回答这个问题的时候

因此,我尝试对2个Azure帐户使用
New AzureRmSqlDatabaseExport
,这完全可能,您需要使用源数据库的Azure帐户登录
Connect AzureRmAccount
,然后需要使用以下参数调用
New AzureRmSqlDatabaseExport
命令

New-AzureRmSqlDatabaseExport 
    -ResourceGroupName          $RGName # Resource group of the source database
    -ServerName                 $Server # Server name of the source database
    -DatabaseName               $Database # Name of the source database 
    -AdministratorLogin         $User # Administrator user of the source database
    -AdministratorLoginPassword $Pwd # Password of the source database
    -StorageKeytype             "StorageAccessKey" # Key type of the destination storage account (The one of the another azure account)
    -StorageKey                 $StorageKey # Key of the destination storage account(The one of the another azure account)
    -StorageUri                 $StorageFileFullURI # The full file uri of the destination storage (The one of the another azure account)
# The format of the URI file is the following:
# https://contosostorageaccount.blob.core.windows.net/backupscontainer/backupdatabasefile.bacpac
不幸的是,此命令没有为hyperscale启用,因此我收到以下错误消息:

新AzureRmSqlDatabaseExport:40822:此功能不适用于所选数据库的版本(超比例)

我对一个不是超规模的数据库使用了相同的命令,它工作得非常好


最后,我想我必须执行手动过程至少几个月,让Microsoft启动HyperScale更新

您的sql server和存储帐户是否在不同的Azure租户和Azure订阅中?此外,您能告诉我什么是“Azure备份帐户”和“Azure存储帐户”?对于您的第一个问题,是的,有两种不同的Azure Tentant和Azure订阅。在“Azure帐户备份”中,我问在这个comand中,是否可以为数据库指定一个Azure帐户,为存储指定另一个Azure帐户?根据我的研究,他的命令
New AzureRmSqlDatabaseExport
不能这样做。根据您的需要,我建议您在两个Azure广告租户中加入一个Azure广告帐户,并使该帐户成为两个订阅的所有者。然后,您可以使用命令
Select AzureRmSubscription
选择您使用的订阅。这是您在不同Azure租户和Azure订阅中的sql server和存储帐户吗?此外,您能告诉我什么是“Azure备份帐户”和“Azure存储帐户”?对于您的第一个问题,是的,有两种不同的Azure Tentant和Azure订阅。在“Azure帐户备份”中,我问在这个comand中,是否可以为数据库指定一个Azure帐户,为存储指定另一个Azure帐户?根据我的研究,他的命令
New AzureRmSqlDatabaseExport
不能这样做。根据您的需要,我建议您在两个Azure广告租户中加入一个Azure广告帐户,并使该帐户成为两个订阅的所有者。然后,您可以使用命令
Select AzureRmSubscription
选择您使用的订阅。您可以告诉我该信息的来源,因为我可以同时“手动”完成该工作。您可以告诉我该信息的来源,因为我可以同时“手动”完成该工作。