Skip to content

Commit be45576

Browse files
Merge pull request #289900 from anaharris-ms/migrate-sql-110524
Reliability: Migrate SQL updates
2 parents bd0a943 + be15c28 commit be45576

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

articles/reliability/migrate-sql-database.md

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -197,66 +197,76 @@ To create a geo-replica of the database:
197197

198198
## Disable zone-redundancy
199199

200-
To disable zone-redundancy for a single database or an elastic pool, you can use the portal or ARM API.
200+
To disable zone-redundancy for a single database or an elastic pool, you can use the portal, ARM API, PowerShell, or CLI.
201201

202-
To disable zone-redundancy for Hyperscale service tier, you can reverse the steps documented in [Redeployment (Hyperscale)](#redeployment-hyperscale).
202+
### Disable zone-redundancy for a single database
203203

204-
# [Elastic pool](#tab/pool)
205204

206-
**To disable zone-redundancy with Azure portal:**
205+
# [Portal](#tab/portal)
207206

208-
1. Go to the [Azure portal](https://portal.azure.com) to find and select the elastic pool that you no longer want to be zone-redundant.
207+
1. Go to the [Azure portal](https://portal.azure.com) to find and select the database that you no longer want to be zone-redundant.
209208

210209
1. Select **Settings**, and then select **Configure**.
211210

212-
1. Select **No** for **Would you like to make this elastic pool zone redundant?**.
211+
1. Select **No** for **Would you like to make this database zone redundant?**
213212

214213
1. Select **Save**.
215214

216-
**To disable zone-redundancy with PowerShell:**
215+
# [PowerShell](#tab/powershell)
217216

218217
```powershell
219-
Set-AzSqlElasticpool -ResourceGroupName "RSETLEM-AzureSQLDB" -ServerName "rs-az-testserver1" -ElasticPoolName "testep10" -ZoneRedundant:$false
218+
set-azsqlDatabase -ResourceGroupName "<Resource-Group-Name>" -DatabaseName "<Database-Name>" -ServerName "<Server-Name>" -ZoneRedundant:$false
220219
```
221220

222-
**To disable zone-redundancy with Azure CLI:**
221+
# [CLI](#tab/cli)
223222

224223
```azurecli
225-
az sql elastic-pool update --resource-group "RSETLEM-AzureSQLDB" --server "rs-az-testserver1" --name "testep10" --zone-redundant false
224+
az sql db update --resource-group "RSETLEM-AzureSQLDB" --server "rs-az-testserver1" --name "TestDB1" --zone-redundant false
226225
```
227226

228-
**To disable zone-redundancy with ARM,** see [Databases - Create Or Update in ARM](/rest/api/sql/elastic-pools/create-or-update?tabs=HTTP) and use the `properties.zoneRedundant` property.
227+
# [ARM](#tab/arm)
228+
229+
See [Databases - Create Or Update in ARM](/rest/api/sql/2022-05-01-preview/databases/create-or-update?tabs=HTTP) and use the `properties.zoneRedundant` property.
229230

230-
# [Single database](#tab/single)
231+
---
231232

233+
### Disable zone-redundancy for an elastic pool
232234

233-
**To disable zone-redundancy with Azure portal:**
235+
# [Portal](#tab/portal)
234236

235-
1. Go to the [Azure portal](https://portal.azure.com) to find and select the database that you no longer want to be zone-redundant.
237+
1. Go to the [Azure portal](https://portal.azure.com) to find and select the elastic pool that you no longer want to be zone-redundant.
236238

237239
1. Select **Settings**, and then select **Configure**.
238240

239-
1. Select **No** for **Would you like to make this database zone redundant?**
241+
1. Select **No** for **Would you like to make this elastic pool zone redundant?**.
240242

241243
1. Select **Save**.
242244

243-
**To disable zone-redundancy with PowerShell:**
245+
# [PowerShell](#tab/powershell)
244246

245247
```powershell
246-
set-azsqlDatabase -ResourceGroupName "RSETLEM-AzureSQLDB" -DatabaseName "TestDB1" -ServerName "rs-az-testserver1" -ZoneRedundant:$false
248+
Set-AzSqlElasticpool -ResourceGroupName "<Resource-Group-Name>" -ServerName "<Server-Name>" -ElasticPoolName "<Elastic-Pool-Name>" -ZoneRedundant:$false
247249
```
248250

249-
**To disable zone-redundancy with Azure CLI:**
251+
# [CLI](#tab/cli)
250252

251253
```azurecli
252-
az sql db update --resource-group "RSETLEM-AzureSQLDB" --server "rs-az-testserver1" --name "TestDB1" --zone-redundant false
254+
az sql elastic-pool update --resource-group "RSETLEM-AzureSQLDB" --server "rs-az-testserver1" --name "testep10" --zone-redundant false
253255
```
254256

255-
**To disable zone-redundancy with ARM,** see [Databases - Create Or Update in ARM](/rest/api/sql/2022-05-01-preview/databases/create-or-update?tabs=HTTP) and use the `properties.zoneRedundant` property.
257+
258+
# [ARM](#tab/arm)
259+
260+
See [Databases - Create Or Update in ARM](/rest/api/sql/elastic-pools/create-or-update?tabs=HTTP) and use the `properties.zoneRedundant` property.
261+
262+
263+
256264

257265

258266
---
259267

268+
To disable zone-redundancy for Hyperscale service tier, you can reverse the steps documented in [Redeployment (Hyperscale)](#redeployment-hyperscale).
269+
260270

261271
## Next steps
262272

0 commit comments

Comments
 (0)