arm-resource-duplicate-property
@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-propertyWarns when a property defined in the resource envelope is also defined in the resource-specific properties bag. Envelope properties should not be duplicated in the properties model.
โ Incorrect
Section titled โโ Incorrectโ@armProviderNamespacenamespace MyService;
model FooResource is TrackedResource<FooProperties> { ...ResourceNameParameter<FooResource>; ...ManagedServiceIdentityProperty;}
model FooProperties { name: string; // duplicate of envelope "name" identity: string; // duplicate of envelope "identity"}โ Correct
Section titled โโ Correctโ@armProviderNamespacenamespace MyService;
model FooResource is TrackedResource<FooProperties> { ...ResourceNameParameter<FooResource>; ...ManagedServiceIdentityProperty;}
model FooProperties { displayName?: string;}