Created
June 13, 2023 21:17
-
-
Save Bemesko/d596c874e68c86b74add9df6141d2b6f to your computer and use it in GitHub Desktop.
Clone a template database in Azure using the Azure CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$resourceGroupName = "poc-database-script-rg" | |
$serverName = "berb-database-poc" | |
$databaseName = "source-database" | |
$newDatabaseName = "copy-database-cli" | |
az sql db copy ` | |
--dest-name $newDatabaseName ` | |
--dest-resource-group $resourceGroupName ` | |
--dest-server $serverName ` | |
--name $databaseName ` | |
--resource-group $resourceGroupName ` | |
--server $serverName ` | |
--debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment