Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimal Gateway Routing Resource Farm Property problem #55

Closed
shaun-avenell opened this issue Oct 17, 2023 · 2 comments
Closed

Optimal Gateway Routing Resource Farm Property problem #55

shaun-avenell opened this issue Oct 17, 2023 · 2 comments

Comments

@shaun-avenell
Copy link

In Visual Code the ‘Farm’ property in configuration was showing error as not valid

                XD7StoreFrontOptimalGateway "AddOptimalGatewayRoute$Storenumber$OGRNumber"
                {
                    
                        GatewayName = $OptimalGWRoute.OGRGatewayName
                        ResourcesVirtualPath = $StoreFrontConfig.VirtualPathRoot + $StoreName
                        Hostnames = $OptimalGWRoute.OGRHostnames
                        StaUrls = $OptimalGWRoute.OGRGatewayNameStaUrls
                        StasUseLoadBalancing = $OptimalGWRoute.OGRGatewayNameStasUseLoadBalancing
                        StasBypassDuration = $OptimalGWRoute.OGRGatewayNameStasBypassDuration
                        Zones = $OptimalGWRoute.OGRZones
                        Farms = $OptimalGWRoute.OGRFarms         ###This was flagged as invalid property
                        Ensure = 'Present'
                        DependsOn = "[XD7StoreFrontWebReceiverPluginAssistant]SFConfigRcvrPlugin$StoreNumber"
                }
            }

The mof file “VE_XD7StoreFrontOptimalGateway.schema.mof” from within the Xendesktop7 module, was showing the Farm parameter as Read Only, all others were Write.

I updated the file as below to switch Farms property from Read to Write , which then fixed the problem. This property is certainly writeable via the Citrix Powershell SDK so I think this is valid.

[ClassVersion("1.0.0.0"), FriendlyName("XD7StoreFrontOptimalGateway")]
class VE_XD7StoreFrontOptimalGateway : OMI_BaseResource
{
[Key, Description("StoreFront gateway name")] String GatewayName;
[Write, Description("Site Id")] UInt64 SiteId;
[Required, Description("Resources Virtual Path")] String ResourcesVirtualPath;
[Required, Description("Hostnames")] String Hostnames[];
[Required, Description("Secure Ticket Authority server Urls")] String StaUrls[];
[Write, Description("Load balance between the configured STA servers")] Boolean StasUseLoadBalancing;
[Write, Description("Time before retrying a failed STA server")] String StasBypassDuration;
[Write, Description("Enable session reliability")] Boolean EnableSessionReliability;
[Write, Description("Request STA tickets from two STA servers")] Boolean UseTwoTickets;
[Write, Description("Farms")] String Farms[]; ##changed from Read to Write
[Write, Description("Zones")] String Zones[];
[Write, Description("Enabled On Direct Access")] Boolean EnabledOnDirectAccess;
[Write, Description("Ensure"), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
};

This was referenced Nov 1, 2023
@iainbrighton
Copy link
Contributor

@shaun-avenell The change has been published to the PSGallery, but I have no way to confirm whether it's fixed.

@shaun-avenell
Copy link
Author

shaun-avenell commented Nov 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants