{
  "version": "2.0",
  "extensions": {
    "serviceBus": {
      "transportType": "amqpWebSockets",
      "webProxy": "http://proxy.example:8080"
    }
  }
}

આને હાલની Functions host ગોઠવણીમાં ભેળવો. બાઇન્ડિંગ એક્સ્ટેન્શન ટ્રિગરનું ક્લાયન્ટ બનાવે છે; ફંક્શન કોડમાં અલગથી બનાવેલું ક્લાયન્ટ તેને બદલતું નથી.

એક્સ્ટેન્શન 5.x webProxy ને amqpWebSockets સાથે સમર્થન આપે છે, amqpTcp સાથે નહીં. namespace/authentication હાલની Service Bus કનેક્શન સેટિંગમાં રાખો. જાહેર મધ્યસ્થીઓને મંજૂરી હોય તેવા જાહેર Service Bus namespace માટે, HTTP પ્રોક્સી સૂચિ એકાઉન્ટ વગરના webProxy URL માટે ઉમેદવારો આપે છે.

એપ્લિકેશન-સેટિંગ સમકક્ષો આ છે:

AzureFunctionsJobHost__extensions__serviceBus__transportType=amqpWebSockets
AzureFunctionsJobHost__extensions__serviceBus__webProxy=http://proxy.example:8080

એ ડબલ-અંડરસ્કોર શ્રેણીને environment સેટિંગ્સમાં વાપરો, અથવા સ્થાનિક વિકાસના local.settings.json હેઠળ Values માં એન્ટ્રીઓ. આ host સેટિંગ્સ છે, connection-string ફીલ્ડ નથી.

સ્થાપિત એક્સ્ટેન્શન જનરેશન સાથે મેળ કરો. આઇસોલેટેડ workerના સ્વતંત્ર HTTP અથવા Service Bus ક્લાયન્ટને હજી પણ પોતાનો રૂટ જોઈએ.

સંબંધિત લેખો