question

MaliAkshay-5811 avatar image
0 Votes"
MaliAkshay-5811 asked MayankBargali-MSFT edited

InvalidApiVersionParameter error using Microsoft.Azure.Management.ServiceBus 2.1.0

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

<Posting as Answer due to comment limit>

Hi @MaliAkshay-5811

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


image.png (26.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.