I'm trying to create a servicebus client using the following code:
ServiceBusClient sbClient = new ServiceBusClient("xxxx.servicebus.windows.net", new DefaultAzureCredential());
However, when I try to do anything with it, i.e. create a sender and send a message, I get the following error: "claim is empty or token is invalid"
I'm also getting a similar issue when I do the same thing with a QueueClient(), however, the error message is:
"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature"