File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ function Test-SetManagedInstance-FlexibleMemoryTesting
331
331
{
332
332
try
333
333
{
334
- $defaultParams = Get-DefaultManagedInstanceParametersV3
334
+ $defaultParams = Get-DefaultManagedInstanceParametersMemorySizeInGBTesting
335
335
$credentials = Get-ServerCredential
336
336
$managedInstanceName = " az-powershell-flexmem-testing-set"
337
337
$vCore = 8
@@ -345,7 +345,7 @@ function Test-SetManagedInstance-FlexibleMemoryTesting
345
345
$job = New-AzSqlInstance - ResourceGroupName $defaultParams.rg - Name $managedInstanceName `
346
346
- Location $defaultParams.location - AdministratorCredential $credentials - SubnetId $defaultParams.subnet `
347
347
- StorageSizeInGB $storageSizeInGB - Vcore $vCore - SkuName $skuName `
348
- - IsGeneralPurposeV2 $isGeneralPurposeV2 - StorageIOps - AsJob
348
+ - IsGeneralPurposeV2 $isGeneralPurposeV2 - StorageIOps $storageIOps - AsJob
349
349
$job | Wait-Job
350
350
$managedInstance = $job.Output
351
351
@@ -361,7 +361,7 @@ function Test-SetManagedInstance-FlexibleMemoryTesting
361
361
$memorySizeInGB = 64
362
362
363
363
$managedInstance = Set-AzSqlInstance - ResourceGroupName $defaultParams.rg - Name $managedInstanceName `
364
- - MemorySizeInGB $memorySizeInGB - Force
364
+ - Vcore $vCore - MemorySizeInGB $memorySizeInGB - IsGeneralPurposeV2 $isGeneralPurposeV2 - Force
365
365
366
366
Assert-AreEqual $managedInstance.ManagedInstanceName $managedInstanceName
367
367
Assert-AreEqual $managedInstance.Sku.Name $skuName
Original file line number Diff line number Diff line change @@ -448,9 +448,9 @@ AuthenticationMetadata : Windows
448
448
449
449
This command updates an existing managed instance to use Windows metadata for authentication of synced users.
450
450
451
- ### Example 12: Change existing instance by setting new value to MemorySizeInGB
451
+ ### Example 12: Change existing instance by setting new value to MemorySizeInGB and keeping current or setting new value for VCores
452
452
``` powershell
453
- Set-AzSqlInstance -Name "managedinstance1" -ResourceGroupName "ResourceGroup01" -MemorySizeInGB 64
453
+ Set-AzSqlInstance -Name "managedinstance1" -ResourceGroupName "ResourceGroup01" -MemorySizeInGB 64 -VCores 8
454
454
```
455
455
456
456
``` output
You can’t perform that action at this time.
0 commit comments