@Nikita Pandey , Firstly, apologies for the delayed response.
Could you please share the doc that you're referring to for the steps? What is the complete error message you receive?
As you have posted the question on azure-signalr-service -Since a hub instance is created for each connection, you can't create an instance of a hub in your code yourself. To call methods on a hub from outside the hub itself, you may call client methods and manage groups from outside the Hub class and obtain a reference to the hub context.
When you're using Azure SignalR Service, some APIs and features of ASP.NET SignalR aren't supported (see this list).
Discussion - Self-Host or Emulate Azure SignalR Service for serverless local development #969