While following the Microsoft Documentation to create Azure Service Bus,
and Trying to send some msg from the Azure function (HTTP Trigger SendMsg_HttpTrigger ) getting the below error:
Executed 'SendMsg_HttpTrigger' (Failed, Id=37c685cb-51b5-41ca-9d58-786508099c9b, Duration=78ms)
[2023-12-18T01:14:24.257Z] System.Private.CoreLib: Exception while executing function: SendMsg_HttpTrigger. System.Net.WebSockets.Client: Unable to connect to the remote server. System.Net.Http: The requested name is valid, but no data of the requested type was found. (alz-csp-sbus.servicebus.windows.net:443). System.Net.Sockets: The requested name is valid, but no data of the requested type was found.
Following the Q&A section (Troubling shooting) https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-troubleshooting-guide
But not help for me.
Any help would be great.
The below code for an Azure Functions HTTP trigger written in C# that sends a message to an Azure Service Bus queue.
Azure: