Skip to content

Commit 68d729a

Browse files
Fix Set-AzSqlInstance MemorySizeInGB test
1 parent b418a65 commit 68d729a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Sql/Sql.Test/ScenarioTests/ManagedInstanceCrudScenarioTests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ function Test-SetManagedInstance-FlexibleMemoryTesting
331331
{
332332
try
333333
{
334-
$defaultParams = Get-DefaultManagedInstanceParametersV3
334+
$defaultParams = Get-DefaultManagedInstanceParametersMemorySizeInGBTesting
335335
$credentials = Get-ServerCredential
336336
$managedInstanceName = "az-powershell-flexmem-testing-set"
337337
$vCore = 8
@@ -345,7 +345,7 @@ function Test-SetManagedInstance-FlexibleMemoryTesting
345345
$job = New-AzSqlInstance -ResourceGroupName $defaultParams.rg -Name $managedInstanceName `
346346
-Location $defaultParams.location -AdministratorCredential $credentials -SubnetId $defaultParams.subnet `
347347
-StorageSizeInGB $storageSizeInGB -Vcore $vCore -SkuName $skuName `
348-
-IsGeneralPurposeV2 $isGeneralPurposeV2 -StorageIOps -AsJob
348+
-IsGeneralPurposeV2 $isGeneralPurposeV2 -StorageIOps $storageIOps -AsJob
349349
$job | Wait-Job
350350
$managedInstance = $job.Output
351351

@@ -361,7 +361,7 @@ function Test-SetManagedInstance-FlexibleMemoryTesting
361361
$memorySizeInGB = 64
362362

363363
$managedInstance = Set-AzSqlInstance -ResourceGroupName $defaultParams.rg -Name $managedInstanceName `
364-
-MemorySizeInGB $memorySizeInGB -Force
364+
-Vcore $vCore -MemorySizeInGB $memorySizeInGB -IsGeneralPurposeV2 $isGeneralPurposeV2 -Force
365365

366366
Assert-AreEqual $managedInstance.ManagedInstanceName $managedInstanceName
367367
Assert-AreEqual $managedInstance.Sku.Name $skuName

src/Sql/Sql/help/Set-AzSqlInstance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ AuthenticationMetadata : Windows
448448

449449
This command updates an existing managed instance to use Windows metadata for authentication of synced users.
450450

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
452452
```powershell
453-
Set-AzSqlInstance -Name "managedinstance1" -ResourceGroupName "ResourceGroup01" -MemorySizeInGB 64
453+
Set-AzSqlInstance -Name "managedinstance1" -ResourceGroupName "ResourceGroup01" -MemorySizeInGB 64 -VCores 8
454454
```
455455

456456
```output

0 commit comments

Comments
 (0)