Issue creating farm

%3CLINGO-SUB%20id%3D%22lingo-sub-2665336%22%20slang%3D%22en-US%22%3EIssue%20creating%20farm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2665336%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20writing%26nbsp%3Ba%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fsbtsv%2Fnn-sbtsv-itssbplugin%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EITsSbPlugin%3C%2FA%3E%20to%20interface%20with%20a%20custom%20connection%20broker.%26nbsp%3B%20I%20have%20gotten%20everything%20working%20but%20I%20am%20stuck%20trying%20to%20create%20a%20%22Farm%22%20that%20the%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fsbtsv%2Fnf-sbtsv-itssbtarget-put_farmname%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EITsSbTarget%3A%3Aput_FarmName%3C%2FA%3E%26nbsp%3Bcan%20associate%20with.%26nbsp%3B%20From%20what%20I%20can%20tell%20this%20is%20created%20when%20you%20add%20a%20new%20RD%20Session%20Host%20or%20RD%20Virtualization%20Host.%26nbsp%3B%20The%20issue%20I%20have%20is%20that%20there%20doesn't%20seem%20to%20be%20an%20API%20to%20create%20one%20of%20those%20that%20is%20not%20a%20Windows%20Server%20or%20HyperV%20server.%26nbsp%3B%20My%20understanding%20is%20that%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fsbtsv%2Fnf-sbtsv-itssbresourcepluginstore-enumeratefarms%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EITsSbResourcePluginStore%3A%3AEnumerateFarms%3C%2FA%3E%26nbsp%3Bcan%20do%20this%2C%20but%20I%20cannot%20see%20it%20being%20called%2C%20or%20added%20to%20the%20UI.%26nbsp%3B%20Is%20there%20a%20reference%20as%20to%20how%20%22Farms%22%20are%20created%20and%20managed%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2674790%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20creating%20farm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2674790%22%20slang%3D%22en-US%22%3EYou%20have%20posted%20on%20the%20board%20for%20Microsoft%20Learn%20and%20certification%20exams.%20You%20would%20more%20likely%20get%20an%20answer%20in%20the%20Windows%20board%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fwindows%2Fct-p%2FWindows10%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fwindows%2Fct-p%2FWindows10%3C%2FA%3E%3C%2FLINGO-BODY%3E
Frequent Visitor

I am writing a ITsSbPlugin to interface with a custom connection broker.  I have gotten everything working but I am stuck trying to create a "Farm" that the 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 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?

1 Reply
You have posted on the board for Microsoft Learn and certification exams. You would more likely get an answer in the Windows board https://techcommunity.microsoft.com/t5/windows/ct-p/Windows10