resolveArmResources API is at https://github.com/Azure/typespec-azure/blob/77e7ea23e694af2ef44d2885bf8db75d77c47bfe/packages/typespec-azure-resource-manager/src/resource.ts#L447 We need to replace the logic in https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts with resolveArmResources API