Skip to content

Commit 41a8dfc

Browse files
authored
Merge pull request #105606 from urosmil/patch-1
MI update hard gen + Gen4 decommission
2 parents 918d738 + 9f8a96f commit 41a8dfc

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

articles/sql-database/sql-database-service-tiers-vcore.md

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -149,46 +149,28 @@ On the **Pricing tier** page you will be able to change hardware generation as d
149149
Use the following PowerShell script:
150150

151151
```powershell-interactive
152-
$subscriptionId = "**************"
153-
Select-AzSubscription -Subscription $subscriptionId
154-
155-
$instanceName = "********"
156-
$resourceGroup = "****"
157-
158-
# THIS IS IMPORTANT PARAMETER:
159-
$sku = @{name = "GP_Gen5" }
160-
161-
# NOTE: These properties are not necessary, but it would be good to set them to the current values:
162-
# You might want to change vCores or storage with hardware generation
163-
# $admin_login = "******"
164-
# $admin_pass = "******"
165-
# $location = "***** # for example: ""northeurope"
166-
# $vCores = 8
167-
# $maxStorage = 1024
168-
# $license = "BasePrice"
169-
# $subnetId = "/subscriptions/****/subnets/*******"
170-
171-
## NOTE: Uncomment some of the properties below if you have set them.
172-
$properties = New-Object System.Object
173-
# $properties | Add-Member -type NoteProperty -name subnetId -Value $subnetId
174-
# $properties | Add-Member -type NoteProperty -name administratorLogin -Value $admin_login
175-
# $properties | Add-Member -type NoteProperty -name administratorLoginPassword -Value $admin_pass
176-
# $properties | Add-Member -type NoteProperty -name vCores -Value $vCores
177-
# $properties | Add-Member -type NoteProperty -name storageSizeInGB -Value $maxStorage
178-
# $properties | Add-Member -type NoteProperty -name licenseType -Value $license
179-
180-
Set-AzResource -Properties $properties -ResourceName $instanceName -ResourceType "Microsoft.SQL/managedInstances" -Sku $sku -ResourceGroupName $resourceGroup -Force -ApiVersion "2015-05-01-preview"
152+
Set-AzSqlInstance -Name "managedinstance1" -ResourceGroupName "ResourceGroup01" -ComputeGeneration Gen5
181153
```
182154

183-
Make sure to enter your subscription ID, name, and resource group of the managed instance.
155+
For more details check [Set-AzSqlInstance](https://docs.microsoft.com/powershell/module/az.sql/set-azsqlinstance) command.
156+
157+
# [Azure CLI](#tab/azure-cli)
158+
159+
Use the following CLI command:
160+
161+
```azurecli-interactive
162+
az sql mi update -g mygroup -n myinstance --family Gen5
163+
```
164+
165+
For more details check [az sql mi update](https://docs.microsoft.com/cli/azure/sql/mi#az-sql-mi-update) command.
184166

185167
---
186168

187169
### Hardware availability
188170

189171
#### <a name="gen4gen5-1"></a> Gen4/Gen5
190172

191-
New Gen4 databases are no longer supported in the Australia East or Brazil South regions.
173+
Gen4 hardware is [being phased out](https://azure.microsoft.com/updates/gen-4-hardware-on-azure-sql-database-approaching-end-of-life-in-2020/) and is not available anymore for the new deployments. All new databases must be deployed on Gen5 hardware.
192174

193175
Gen5 is available in most regions worldwide.
194176

0 commit comments

Comments
 (0)