I'm using Azure Service Bus Explorer in managing subscriptions for existing Azure Service Bus topics. Now we have a new Topic that will receive messages from multiple source systems. Based on the source system i need to create different subscriptions. Below are the sample messages that we recieve
Message1:
{
"entity": {
"id": "20190501",
"source": "system1",
"body": "{\r\n \"Addressid\": \"74C9\",\r\n \"Start\": \"2016-07-17T21:06:10.983\",\r\n \"OrgID\": \"7204055\",\r\n \"Email\": \"test@gmail.com\",\r\n \"DeptID\": 998\r\n}",
"createDate": "2019-05-16T12:47:52.4658011Z",
"isDeleted": false
},
"operation": "POST"
}
Message2:
{
"entity": {
"id": "20190501",
"source": "system2",
"body": "{\r\n \"AC_ID\": \"74C9\",\r\n \"Name\": \"Name1\",\r\n \"InventoryID\": \"4055\",\r\n \"OtherID\": 998\r\n}",
"createDate": "2019-05-16T12:47:52.4658011Z",
"isDeleted": false
},
"operation": "POST"
}
I need to create two subscriptions with filter condition
Subscription1: with filter as "source": "system1"
Subscription2: with filter as "source": "system2"
Please help with me correct filter expression for the above service bus subscriptions that i need to create using service bus explorer.