你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
az sql db-arc
Note
This reference is part of the arcdata extension for the Azure CLI (version 2.3.1 or higher). The extension will automatically install the first time you run an az sql db-arc command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage databases for Azure Arc-enabled SQL Server instance.
Commands
Name | Description | Type | Status |
---|---|---|---|
az sql db-arc backups-policy |
Manage backups policy. |
Extension | Preview |
az sql db-arc backups-policy delete |
Delete your current backups policy. |
Extension | Preview |
az sql db-arc backups-policy set |
Set your backups policy. |
Extension | Preview |
az sql db-arc backups-policy show |
See your current backups policy. |
Extension | Preview |
az sql db-arc restore |
Restore a database from the built-in automatic backups. |
Extension | Preview |
az sql db-arc restore
Command group 'sql db-arc' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Restore a database from the built-in automatic backups.
az sql db-arc restore --dest-name
--name
--resource-group
--server
[--time]
Examples
Ex 1 - Restoring a database
az sql db-arc restore --server myInstance --resource-group myResourceGroup --name mySourceDb --dest-name myNewDb --time "2021-10-20T05:34:22Z"
Required Parameters
Name of the database that will be created as the restore destination.
Name of the source database from where the backups should be retrieved.
Name of the resource group where the Arc-enabled SQL Server instance is located.
Name of the Arc-enabled SQL Server instance.
Optional Parameters
The point in time of the source database that will be restored to create the new database. Must be more recent than or equal to the source database's earliest restore date/time value. Time should be in following format: YYYY-MM-DDTHH:MM:SSZ . The given time value must be in UTC. If no time is provided, the most recent backup will be restored. The given time value must be in UTC.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.