InvalidApiVersionParameter error using Microsoft.Azure.Management.ServiceBus 2.1.0

Mali, Akshay 96 Reputation points
2021-06-14T14:44:56.243+00:00

I was able to use Microsoft.Azure.Management.ServiceBus 2.1.0 to create and manage service bus namespace earlier. But now I am getting this error:

"code": "InvalidApiVersionParameter",
"message": "The api-version '2017-04-01' is invalid.
The supported versions are...".

Also I am not able to set ApiVersion property in ServiceBusManagementClient since it is read only.

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
548 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,641 Reputation points
    2021-06-15T05:21:21.943+00:00

    <Posting as Answer due to comment limit>

    Hi @Mali, Akshay

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Can you provide more details what operation you are performing when you have observed the error. I couldn't observe the issue (version 2.1.0) when I have created the namespace, creating/updating entities. Please provide the exact request parameters value that you have passed on that operation (method called) for which you have observed the InvalidApiVersionParameter exception.

    Yes you cannot set the apiversion as this is the read only property (ServiceBusManagementClient.ApiVersion) and the SDK does it for you but we need to know the operation and parameters that were passed so I repro the issue and engage my team to assist further.

    105655-image.png

    0 comments No comments