arm-resource-name-pattern
@azure-tools/typespec-azure-resource-manager/arm-resource-name-patternThe resource name parameter should be defined with a ‘pattern’ restriction.
Resource names must specify a pattern string using @pattern, providing a regular expression that the name must match.
❌ Incorrect
Section titled “❌ Incorrect”model Employee is ProxyResource<{}> { @key("employeeName") @path @segment("employees") name: string;}✅ Correct
Section titled “✅ Correct”model Employee is ProxyResource<{}> { ...ResourceNameParameter<Employee>;}