Forum Discussion

Ian Geiser's avatar
Ian Geiser
Copper Contributor
Aug 19, 2021

Issue creating farm

I am writing a https://docs.microsoft.com/en-us/windows/win32/api/sbtsv/nn-sbtsv-itssbplugin to interface with a custom connection broker.  I have gotten everything working but I am stuck trying to create a "Farm" that the https://docs.microsoft.com/en-us/windows/win32/api/sbtsv/nf-sbtsv-itssbtarget-put_farmname can associate with.  From what I can tell this is created when you add a new RD Session Host or RD Virtualization Host.  The issue I have is that there doesn't seem to be an API to create one of those that is not a Windows Server or HyperV server.  My understanding is that https://docs.microsoft.com/en-us/windows/win32/api/sbtsv/nf-sbtsv-itssbresourcepluginstore-enumeratefarms can do this, but I cannot see it being called, or added to the UI.  Is there a reference as to how "Farms" are created and managed?