arm-custom-resource-usage-discourage
@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourageAvoid using the @customAzureResource decorator. It doesn’t provide validation for ARM resources, and its usage should be limited to brownfield services migration.
❌ Incorrect
Section titled “❌ Incorrect”@Azure.ResourceManager.Legacy.customAzureResourcemodel Person { name: string;}✅ Correct
Section titled “✅ Correct”Use standard ARM resource types:
model Employee is TrackedResource<EmployeeProperties> { ...ResourceNameParameter<Employee>;}Reviewer advice
Section titled “Reviewer advice”Impacts the API: custom resources do not use ARM common types. Ask the author to use TrackedResource, ProxyResource, or ExtensionResource instead. Treat suppressions like any other resource not using common types.