connecting to DB2 from .net core application deployed in azure app services

2022-02-21T10:17:18.51+00:00

Hi all,

I have one .net core web api which we will deploy on azure app services.
this web api will connect DB2 database for accessing data, is there any package/service we need to enable in azure app services for accessing DB2 or Nuget package for DB2 is enough

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ajkuma 26,131 Reputation points Microsoft Employee
    2022-02-25T19:47:20.187+00:00

    @azure architect with .net expereince , We were awaiting for your response. Adding to sadomovalex 's response (as clearly pointed this out- thank you)

    As mentioned in this IBM docs – “The IBM.Data.DB.Provider is available as a NuGet package. For more information see: .NET Provider for Cloud. This package is supported on Azure App Services (Windows Web Apps for Full .NET Framework).”

    On App Service, at runtime, connection strings are available as environment variables, prefixed with the following connection types:

    SQLServer: SQLCONNSTR_
    Custom: CUSTOMCONNSTR_ [ in your case]

    -Just sharing as additional info || using Azure Logic Apps service to access IBM DB2.

    Access and manage IBM DB2 resources by using Azure Logic Apps

    • "The DB2 connector includes a Microsoft client that communicates with remote DB2 servers across a TCP/IP network.
      You can use this connector for accessing cloud databases such as IBM DB2 for Windows running in Azure virtualization. You can also access on-premises DB2 databases after you install and set up the on-premises data gateway."

    ---
    To benefit the community find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.

    0 comments No comments

  2. Takahito Iwasa 4,851 Reputation points MVP
    2022-03-19T03:02:37+00:00

    Hi. @azure architect with .net expereince

    Where are you hosting DB2?

    If you have a private Azure Virtual Machine, you'll need to enable the App Service's VNET integration feature and connect to your VNET resources. (Not required if public access is available)

    Alternatively, if you are hosting DB2 on your on-premises server, you should have a hybrid configuration.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.