Sourav Das
Sourav Das

Reputation: 1008

How to host an OData V4 Web API on Azure

I have an OData V4 Web API( .NET Framework 4.6.1) hosted on On-Prem IIS. Instead of making it Internet Facing, I want to host it on Azure. What are my options here? What are the best practices to host it? Do I have to create a new Web API Project inside Azure? What Services do I need to subscribe to?

This web service will be consumed by Virtual Entities under MS CRM https://learn.microsoft.com/en-us/dynamics365/customer-engagement/customize/virtual-entity-walkthrough-using-odata-provider

Upvotes: 0

Views: 564

Answers (2)

Haitham Shaddad
Haitham Shaddad

Reputation: 4456

Deploy it to Azure App Service, The web app type should not make a difference but Web API should be the most correct.

If you don't want to expose it to everyone, you can use Access Restrictions on your azure web app by adding a rule that allows specific IP range to access the API URL

enter image description here

Upvotes: 1

Arunprasath
Arunprasath

Reputation: 331

You have two options

  1. using Azure Relay service - Hybrid connection (Relay Service link)

  2. S2S VPN - Another option, which helps to expose the service to a particular Azure Virtual Network. (Reference link)

Can you tell me what are the services going to consume the service, so that I can provide accurate solution

Upvotes: 0

Related Questions