Unable to create "CorrelationFilter" rule in ServiceBus subscription from AZ CLI - 'az servicebus topic subscription rule create'
Hello,
I am able to create ServiceBus subscription rules/filters through the Azure portal, but I am not able to create the same subscription rule/filter through AZ CLI.
while creating through az-cli, I am getting below error. az servicebus topic subscription rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name mytopic --subscription-name mysubscription --name myrule --label myvalue --debug
msrest.http_logger : 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' msrest.http_logger : 'X-Content-Type-Options': 'nosniff' msrest.http_logger : 'Date': 'Wed, 29 Jul 2020 20:12:52 GMT' msrest.http_logger : Response content: msrest.http_logger : {"error":{"message":"Value cannot be null.\r\nParameter name: sqlExpression CorrelationId: 449c0b40-baf6-4830-9c4b-2a19c0d01ad3","code":"BadRequest"}} msrest.exceptions : Operation returned an invalid status code 'Bad Request' cli.azure.cli.core.util : BadRequest - Value cannot be null. Parameter name: sqlExpression CorrelationId: 449c0b40-baf6-4830-9c4b-2a19c0d01ad3 BadRequest - Value cannot be null. Parameter name: sqlExpression CorrelationId: 449c0b40-baf6-4830-9c4b-2a19c0d01ad3 az_command_data_logger : exit code: 1
I don't see any option to pass the filterType=CorrelationFilter parameter in the below command. az servicebus topic subscription rule create
I see the filterType parameter is available in ServiceBus Template template too.
Please let me if I am using any wrong command for this or do we have any other az-cli command.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 6fd5960a-ea47-7542-6837-3e4e49e95d0a
- Version Independent ID: c8a9f5b6-2a2f-4820-3be4-c87e3896a6b7
- Content: az servicebus topic subscription rule
- Content Source: src/azure-cli/azure/cli/command_modules/servicebus/_help.py
- Service: service-bus
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jfggdl, @axisc.
Hi @gopi158 , thanks for reporting, we will look at it.
Duplicate of https://github.com/Azure/azure-cli/issues/12369.
One year without fix...
Hi Team,
Apologies for the delay here. We have been looking into it and would get back with an update soon.
Our latest release fixes this issue: https://docs.microsoft.com/en-us/cli/azure/release-notes-azure-cli?view=azure-cli-latest#service-bus.
Please retry the operation and let us know in case of any discrepancy. Thanks
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!