I am trying to create a filter SQL expression for Azure Service Bus Topics via Azure CLI. My filter expression has a special character (':'). When using the cli to create the filter I always receive a BadRequest response. The documentation for Service Bus mentions that the special characters need to be put into double quotes "
. Therefore I try this:
az servicebus topic subscription rule create --resource-group resourceGroup --namespace-name servicebus --topic-name myTopic --subscription-name mySubscription --name filterName --filter-sql-expression "cloudEvents:type"='typeName:v1'
The error response I receive: BadRequestError: BadRequest: There was an error parsing the SQL expression. [Token line=1, column=11, Token in error= :, Additional details= Unrecognized character. ':']
I've tried to use it without the quotes, I tried to put everything in double quotes. I don't get it to work. Does anyone know how to fix that or is it simply not supported?