-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of ContainerServiceManagedCluster failed because the SDK client replaces the api-version in LRO #2571
Creation of ContainerServiceManagedCluster failed because the SDK client replaces the api-version in LRO #2571
Comments
Lets first discover where those versions are coming from. Is there a model that is defined in those versions that is returned as the interim status payload for the LRO? If so I would like to discover how we can represent that as this would affect the rehydration case as well. |
Hitting the same issue. Exact same error. In my case, I'm passing in location using: Setting up a bunch of managed cluster parameters into this data instance:
|
2022-08-17T00:34:24.8494453Z Request failed! The resource type 'locations/operations' could not be found in the namespace 'Microsoft.ContainerService' for api version '2022-04-01'. The supported api-versions are '2016-03-30,2017-08-31'. |
Service Team wants to work on a fix with no ETA: Azure/azure-sdk-for-js#22423 (comment) The |
I'm using the dotnet sdk. Is there a workaround I can use? How is this working in the JS SDK? Are they simply not passing the api version? |
@jallirs you can use a policy to override the api version in the request to query LRO operation status. Refer to the Policy here: Add the policy in |
Tried the above workaround, it works :). Thanks everyone! |
Issue fixed and the custom policy is no longer needed with |
With this PR: #1841 (required by Azure/azure-sdk#3817), the SDK client replaces the
api-version
fornextRequestUri
even if service returns theapi-version
in it.This caused a failure when creating the
ContainerServiceManagedClusterResource
:The resource type 'locations/operations' could not be found in the namespace 'Microsoft.ContainerService' for api version '2022-04-01'. The supported api-versions are '2016-03-30,2017-08-31'
.The nextRequestUri returned from service looks like this:
https://management.azure.com/subscriptions/8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8/providers/Microsoft.ContainerService/locations/westus2/operations/6112cdd3-47cb-4b46-9d7c-7531b9fe64b5?api-version=2016-03-30
There's a similar issue in JS SDK: Azure/azure-sdk-for-js#22522
The text was updated successfully, but these errors were encountered: