arm-resource-path-segment-invalid-chars
@azure-tools/typespec-azure-resource-manager/arm-resource-path-segment-invalid-charsArm resource name must contain only alphanumeric characters.
ARM resource path segments must contain only alphanumeric characters or dashes, starting with a lowercase letter.
Impact
Section titled “Impact”- Area: API, SDK
Invalid characters in a path segment produce an invalid ARM API and invalid parameter names.
❌ Incorrect
Section titled “❌ Incorrect”model FooResource is TrackedResource<{}> { ...ResourceNameParameter<FooResource, SegmentName = "/foo/bar">;}✅ Correct
Section titled “✅ Correct”model FooResource is TrackedResource<{}> { ...ResourceNameParameter<FooResource>;}Suppression
Section titled “Suppression”Treat like any invalid path segment and require a fix. Use only valid characters in the @key for the path segment.