cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

On-premise gateway and dynamic host

Hi,

 

Sorry if this question has been asked before but I couldn't find any similar posts. I'm trying to make 1 connector to connect to a service for which the URL differs based on your company name. So for instance the company "Company A" would get the URL "companya.someservice.com". 

 

The service that I'm trying to connect to, limits access using IP filtering. So we have an on-premise gateway from a server that has an IP that is allowed to connect to 5 different companies. If I hard-code the host-url, the connection works perfectly (so via the on-premise gateway) but if I use the "Set Host URL" via a policy, the connection times out which seems to indicate that it skips the on-premise gateway.

 

Is this a bug or am I making a mistake here?

 

CDRPepijn_0-1644487027042.png

 

Thanks,

 

Pepijn

 

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Hi,
I have a similar question so just will add here:
If i use static host - 127.0.0.1:3000 - with on-premises gateway it works as expected.

But using a policy template as: http://@queryParameters('portalUrl')

Returns:

{
"error": {
"code": 500,
"message": "No connection could be made because the target machine actively refused it 127.0.0.1:3000",
"source": "msmanaged-na.azure-apim.net",
"path": "forward-request",
"policyId": "",
"clientRequestId": "1234"
}
}

 

Syndicate_Admin
Administrator
Administrator

We have the same problem, any news here?

Syndicate_Admin
Administrator
Administrator

Unfortunately, no. As a workaround I have created multiple connectors, one per subdomain. Not pretty but it works for now until there is a solution for this issue.

Syndicate_Admin
Administrator
Administrator

Please upvote https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Enable-quot-Set-Host-URL-quot-Policy-support-on.... Maybe this issue gets fixed if enough people vote up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,140)