Skip to content

arm-custom-resource-usage-discourage

Full name
@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage

Avoid using the @customAzureResource decorator. It doesn’t provide validation for ARM resources, and its usage should be limited to brownfield services migration.

@Azure.ResourceManager.Legacy.customAzureResource
model Person {
name: string;
}

Use standard ARM resource types:

model Employee is TrackedResource<EmployeeProperties> {
...ResourceNameParameter<Employee>;
}