diff --git a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs
index ff38cd31f7cb..6427d5473905 100644
--- a/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs
+++ b/sdk/resourcemanager/Azure.ResourceManager.Core/src/Resources/WritableSubResource.cs
@@ -28,7 +28,7 @@ protected internal WritableSubResource(string id) : base(id) { }
///
/// A class representing a sub-resource that contains only the read-only ID.
///
- [ReferenceType]
+ [ReferenceType(typeof(ResourceIdentifier))]
[System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:File may only contain a single type", Justification = "Types differ by type argument only")]
public partial class WritableSubResource : IEquatable>, IEquatable,
IComparable>, IComparable