Skip to content

Commit 7181abd

Browse files
Az.StorageSync | Reverting Registry path constants (#25495)
* Onboard Az.StorageSync 2022-09-01 * missing file * Update ChangeLog.md * Update Az.StorageSync.psd1 * Update powershell generated sdk * Update ChangeLog.md * Revert Registry Path configuration --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 10f5842 commit 7181abd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/StorageSync/StorageSync/Common/StorageSyncConstants.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ public class StorageSyncConstants
112112
/// <summary>
113113
/// The afs agent registry key
114114
/// </summary>
115-
public const string AfsAgentRegistryKey = @"SOFTWARE\Microsoft\Azure\StorageSync";
115+
public const string AfsAgentRegistryKey = @"SOFTWARE\Microsoft\Azure\StorageSync\Agent";
116+
/// <summary>
117+
/// The afs registry key
118+
/// </summary>
119+
public const string AfsRegistryKey = @"SOFTWARE\Microsoft\Azure\StorageSync";
116120
/// <summary>
117121
/// The afs agent installer path registry key value name
118122
/// </summary>

src/StorageSync/StorageSync/Interop/Clients/SyncServerRegistrationClientBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public RegisteredServer Register(
178178

179179
// Set the registry key for ServerAuthType
180180
RegistryUtility.WriteValue(StorageSyncConstants.ServerAuthRegistryKeyName,
181-
StorageSyncConstants.AfsAgentRegistryKey,
181+
StorageSyncConstants.AfsRegistryKey,
182182
(isCertificateRegistration ? RegisteredServerAuthType.Certificate : RegisteredServerAuthType.ManagedIdentity).ToString(),
183183
RegistryValueKind.String,
184184
true);

0 commit comments

Comments
 (0)