resource-name
@azure-tools/typespec-azure-resource-manager/resource-nameCheck the resource name. ARM resource model names must contain only alphanumeric characters (starting with an uppercase letter), and the name property must be a read-only @path parameter.
❌ Incorrect
Section titled “❌ Incorrect”Missing @path decorator on name:
model FooResource is TrackedResource<{}> { @key("foo") @segment("foo") name: string;}❌ Incorrect
Section titled “❌ Incorrect”Underscore in model name:
model Foo_Resource is TrackedResource<{}> { ...ResourceNameParameter<Foo_Resource>;}✅ Correct
Section titled “✅ Correct”model FooResource is TrackedResource<{}> { ...ResourceNameParameter<FooResource>;}Reviewer advice
Section titled “Reviewer advice”Impacts the API and generated SDKs: invalid characters in a resource name violate RPC guidance and can produce invalid client parameter names that block SDK generation. Ask the author to use only valid characters in the resource name. Treat suppressions like any invalid resource name and do not accept them lightly.