Azure: How to move databases into Elastic Pool

后端 未结 5 866
孤街浪徒
孤街浪徒 2021-02-05 04:17

We have a few databases in Pricing Tier: Basic, S0... like below picture:

These databases were created before a new Elastic Pool is cr

5条回答
  •  渐次进展
    2021-02-05 05:03

    Via a CLI shell

    echo "Creating $database in $pool..."
    az sql db create --resource-group $resource --server $server --name $database --elastic-pool $pool
    
    echo "Moving $database to $poolSecondary..." # create command updates an existing datatabase
    az sql db create --resource-group $resource --server $server --name $database --elastic-pool $poolSecondary
    

提交回复
热议问题