-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
OperationalInsights - Unsupported API version #24369
Comments
Until this is fixed, you can work around as follows. this.managementClient.pipeline.addPolicy({ name: "API Version",
sendRequest: (request: PipelineRequest, next: SendRequest) => {
let url = new URL(request.url);
url.searchParams.set("api-version", "2022-10-01");
request.url = url.toString();
return next(request);
}}, { phase: "Serialize" }); |
@aarononeal Thanks for the reporting! I will take a look at this issue. |
@aarononeal I could re-produce in my local. For short-term solution I would suggest you to have a try with our latest For long-term We would suggest the service team to refresh our package with the latest one @kazrael2119 Could you try to release the package with latest tag? |
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! |
The pr is ready #24512, but considering there is breaking change so we are confirming with service team. |
Offline confirmed with service team we could release with latest change |
@azure/arm-operationalinsights
Describe the bug
Calls with OperationalInsightsManagementClient fail due to unsupported API version.
To Reproduce
Exception: No registered resource provider found for location '{location}' and API version '2021-06-01' for type 'workspaces/tables'. The supported api-versions are '2017-04-26-preview, 2020-03-01-preview, 2020-08-01, 2021-12-01-preview, 2022-10-01'.
Expected behavior
Call should succeed without API version error.
Screenshots
N/A
Additional context
Not sure why the supported service versions were changed without updating the SDK but this appears to be out of sync. Perhaps there should be a way to override the API version used by the client.
The text was updated successfully, but these errors were encountered: