Need to get the client IP's which is connecting the service bus so that I can whitelist that IP

Nithin George 0 Reputation points
2024-11-18T02:49:55.5+00:00

Hi Team,

I am looking into whitelisting the source IP's which is connecting my service Bus. For that I had enabled diagnostics in my service bus .But when i pull the logs from azure diagnostics table it shows the caller_ip address as blank and all IP address related field as blank.

My serivce bus is standard tier and I am trying to whitlist the IP's from AKS cluster.But need to know the IP address

I am trying to whitelist the IP's using the below commands

az servicebus namespace network-rule-set update --namespace-name <sbname> --resource-group <rgname> --default-action Deny --enable-trusted-service-access true --public-network-access Enabled

az servicebus namespace network-rule-set ip-rule add --resource-group <rgname> --namespace-name <sbname> --ip-rule ip-address=xxxx/32 action=Allow

But need to find the source IP's using the diagnostics logs .

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
667 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rafeeque Kudilil Ameeruddeen 0 Reputation points
    2025-02-06T15:08:33.3633333+00:00

    Answering , so that this is helpful referring to this question. Whitelist at-least one IP, then only the IP Filtering kicks in and it starts logging in the Diagnostics log. You need to wait minimum 30 mins to start seeing the logs once the IP filtering is configured initially.

    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.