Skip to main content

MismatchingResourceSegments: The resource name and type don't match

Azure couldn't pair the segments of the resource's name and type. For example, a child declared outside its parent may need the parent's name as part of the full name.

What to check​

  1. Compare the resolved name and type with the template reference for that resource, including the parent and child parts.
  2. Use the name and type syntax for the declaration style you chose. Don't include the full parent path when the syntax already supplies it.

Official reference​

Microsoft Learn: Resolve errors for resource name and type