@@ -309,7 +309,7 @@ private AzureOperationResponse<VirtualMachine> UpdateVmEncryptionSettings()
309
309
parameters ) . GetAwaiter ( ) . GetResult ( ) ;
310
310
}
311
311
312
- private string GetExtensionPublicSettings ( )
312
+ private Hashtable GetExtensionPublicSettings ( )
313
313
{
314
314
Hashtable publicSettings = new Hashtable ( ) ;
315
315
publicSettings . Add ( aadClientIDKey , AadClientID ?? String . Empty ) ;
@@ -321,24 +321,24 @@ private string GetExtensionPublicSettings()
321
321
publicSettings . Add ( encryptionOperationKey , enableEncryptionOperation ) ;
322
322
publicSettings . Add ( sequenceVersionKey , SequenceVersion ?? String . Empty ) ;
323
323
324
- return JsonConvert . SerializeObject ( publicSettings ) ;
324
+ return publicSettings ;
325
325
}
326
326
327
- private string GetExtensionProtectedSettings ( )
327
+ private Hashtable GetExtensionProtectedSettings ( )
328
328
{
329
329
Hashtable protectedSettings = new Hashtable ( ) ;
330
330
protectedSettings . Add ( aadClientSecretKey , AadClientSecret ?? String . Empty ) ;
331
331
if ( string . Equals ( this . currentOSType , "Linux" ) )
332
332
{
333
333
protectedSettings . Add ( passphraseKey , Passphrase ?? null ) ;
334
334
}
335
- return JsonConvert . SerializeObject ( protectedSettings ) ;
335
+ return protectedSettings ;
336
336
}
337
337
338
338
private VirtualMachineExtension GetVmExtensionParameters ( VirtualMachine vmParameters )
339
339
{
340
- string SettingString = GetExtensionPublicSettings ( ) ;
341
- string ProtectedSettingString = GetExtensionProtectedSettings ( ) ;
340
+ Hashtable SettingString = GetExtensionPublicSettings ( ) ;
341
+ Hashtable ProtectedSettingString = GetExtensionProtectedSettings ( ) ;
342
342
343
343
if ( vmParameters == null )
344
344
{
0 commit comments