azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Unable to create "CorrelationFilter" rule in ServiceBus subscription from AZ CLI - 'az servicebus topic subscription rule create'

Open gopi158 opened this issue 6 years ago • 7 comments

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.

gopi158 avatar Jul 29 '20 20:07 gopi158

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jfggdl, @axisc.

ghost avatar Jul 30 '20 01:07 ghost

Hi @gopi158 , thanks for reporting, we will look at it.

arrownj avatar Jul 30 '20 01:07 arrownj

Duplicate of https://github.com/Azure/azure-cli/issues/12369.

LayZeeDK avatar Aug 28 '20 09:08 LayZeeDK

One year without fix...

mildsar avatar Oct 25 '21 11:10 mildsar

Hi Team,

Apologies for the delay here. We have been looking into it and would get back with an update soon.

Saglodha avatar Feb 21 '22 14:02 Saglodha

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

Saglodha avatar Apr 06 '22 07:04 Saglodha

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!

ghost avatar Apr 13 '22 08:04 ghost