Thursday, April 30, 2020

Purge Azure Durable Functions Orchestration History

In this post, I will show how can you clear the orchestration history which is being stored while the function is being executed.

This will help you in the development / debugging process because you dont want to have those activities started while you working on your current problem.

Before you do that, you need to do followings:
  1. Install Function CLI tools (see link below)
  2. Check what Task Hub Name your function is using.

Run the command from Command Prompt (Administrator mode) by setting source as your project folder where host.json files live, usually root folder of the project.

The command is :
func  durable delete-task-hub  --task-hub-name  myfunctionDemoHub

By default, the function uses "TestHubName" if not one set. 

To set your own "Hub Name", you would need to edit host.json as below:
{
  "version": "2.0",
  "extensions": {
    "durableTask": {
      "hubName": "myfunctionDemoHub"
    }
  }
}

To see the hub used by the function, you can that on console:

This link has usage has many commands that can be useful.

HTH

Thursday, April 16, 2020

How to see MSMQ in Windows10?

If you have MSMQ component installed, then to go to MSMQ, you would do following:

  1. Click Start 
  2. Start typing Computer Management
  3. This will open a MMC window 
  4. Under Services and Applications -> Message Queuing