Skip to content

Commit 5235875

Browse files
author
Anil Kumar Yelam
committed
Small fix to get the existing tests work
1 parent 4032ca8 commit 5235875

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/SqlIaaSExtensionTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function Test-SetAzureRmVMSqlServerAKVExtension
8181
# 1) Installs the SqlIaaS extension by calling Set-AzureRmVMSqlServerExtension cmdlet on a VM.
8282

8383
$securepfxpwd = ConvertTo-SecureString –String "Amu6y/RzJcc7JBzdAdRVv6mk=" –AsPlainText –Force;
84-
$aps_akv = New-AzureVMSqlServerKeyVaultCredentialConfig -ResourceGroupName $rgname -Enable -CredentialName "CredentialTesting" -AzureKeyVaultUrl "https://Testkeyvault.vault.azure.net/" -ServicePrincipalName "0326921f-bf005595337c" -ServicePrincipalSecret $securepfxpwd;
84+
$aps_akv = New-AzureRmVMSqlServerKeyVaultCredentialConfig -ResourceGroupName $rgname -Enable -CredentialName "CredentialTesting" -AzureKeyVaultUrl "https://Testkeyvault.vault.azure.net/" -ServicePrincipalName "0326921f-bf005595337c" -ServicePrincipalSecret $securepfxpwd;
8585
Set-AzureRmVMSqlServerExtension -KeyVaultCredentialSettings $aps_akv -ResourceGroupName $rgname -VMName $vmname -Version "1.2" -Verbose;
8686

8787
# 2) Calls Get-AzureRmVMSqlServerExtension cmdlet to check the status of the extension installation.
@@ -93,7 +93,7 @@ function Test-SetAzureRmVMSqlServerAKVExtension
9393

9494
# 4) Update extension values
9595

96-
$aps_akv = New-AzureVMSqlServerKeyVaultCredentialConfig -ResourceGroupName $rgname -Enable -CredentialName "CredentialTest" -AzureKeyVaultUrl "https://Testkeyvault.vault.azure.net/" -ServicePrincipalName "0326921f-82af-4ab3-9d46-bf005595337c" -ServicePrincipalSecret $securepfxpwd;
96+
$aps_akv = New-AzureRmVMSqlServerKeyVaultCredentialConfig -ResourceGroupName $rgname -Enable -CredentialName "CredentialTest" -AzureKeyVaultUrl "https://Testkeyvault.vault.azure.net/" -ServicePrincipalName "0326921f-82af-4ab3-9d46-bf005595337c" -ServicePrincipalSecret $securepfxpwd;
9797
Set-AzureRmVMSqlServerExtension -KeyVaultCredentialSettings $aps_akv -ResourceGroupName $rgname -VMName $vmname -Version "1.2" -Verbose;
9898

9999
# 5) Verify changes
@@ -186,7 +186,7 @@ function Test-SetAzureRmVMSqlServerExtension
186186
$extensionName = "Microsoft.SqlServer.Management.SqlIaaSAgent";
187187

188188
# 1) Installs the SqlIaaS extension by calling Set-AzureRmVMSqlServerExtension cmdlet on a VM.
189-
$aps = New-AzureVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Thursday" -MaintenanceWindowStartingHour 20 -MaintenanceWindowDuration 120 -PatchCategory "Important"
189+
$aps = New-AzureRmVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Thursday" -MaintenanceWindowStartingHour 20 -MaintenanceWindowDuration 120 -PatchCategory "Important"
190190
Set-AzureRmVMSqlServerExtension -AutoPatchingSettings $aps -ResourceGroupName $rgname -VMName $vmname -Version "1.2" -Verbose -Name $extensionName;
191191

192192
# 2) Calls Get-AzureRmVMSqlServerExtension cmdlet to check the status of the extension installation.
@@ -199,7 +199,7 @@ function Test-SetAzureRmVMSqlServerExtension
199199
Assert-AreEqual $extension.AutoPatchingSettings.PatchCategory "Important"
200200

201201
# 4) Update extension values
202-
$aps = New-AzureVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Monday" -MaintenanceWindowStartingHour 20 -MaintenanceWindowDuration 120 -PatchCategory "Important"
202+
$aps = New-AzureRmVMSqlServerAutoPatchingConfig -Enable -DayOfWeek "Monday" -MaintenanceWindowStartingHour 20 -MaintenanceWindowDuration 120 -PatchCategory "Important"
203203
Set-AzureRmVMSqlServerExtension -AutoPatchingSettings $aps -ResourceGroupName $rgname -VMName $vmname -Version "1.2" -Verbose -Name $extensionName;
204204

205205
# 5) Verify changes

src/ResourceManager/Compute/Commands.Compute/Common/ConstantStringTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static class ProfileNouns
128128
public const string VirtualMachineSqlServerExtension = "AzureRmVMSqlServerExtension";
129129
public const string VirtualMachineSqlServerAutoBackupConfig = "AzureRmVMSqlServerAutoBackupConfig";
130130
public const string VirtualMachineSqlServerAutoPatchingConfig = "AzureRmVMSqlServerAutoPatchingConfig";
131-
public const string VirtualMachineSqlServerKeyVaultCredentialConfig = "AzureVMSqlServerKeyVaultCredentialConfig";
131+
public const string VirtualMachineSqlServerKeyVaultCredentialConfig = "AzureRmVMSqlServerKeyVaultCredentialConfig";
132132

133133
//AzureDiskEncryption
134134
public const string AzureDiskEncryptionExtension = "AzureRmVMDiskEncryptionExtension";

0 commit comments

Comments
 (0)