arm-resource-invalid-envelope-property
@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-propertyCheck for invalid resource envelope properties.
Resource envelope properties must originate from the Azure.ResourceManager namespace. Custom properties that are not part of the standard ARM resource envelope should be placed in the resource-specific property bag instead.
โ Incorrect
Section titled โโ Incorrectโ@armProviderNamespacenamespace MyService;
model FooResource is TrackedResource<{}> { ...ResourceNameParameter<FooResource>; disallowed?: string; // not valid in the resource envelope}โ Correct
Section titled โโ Correctโ@armProviderNamespacenamespace MyService;
model FooResource is TrackedResource<{}> { ...ResourceNameParameter<FooResource>; ...ManagedServiceIdentityProperty;}