Closed simongottschlag closed 2 years ago
Thank you for your feedback. This has been routed to the support team for assistance.
Need service team to check why 2020-05-01
not work for locks
API (defined in: https://github.com/Azure/azure-rest-api-specs/blob/80065490402157d0df0dd37ab347c651b22eb576/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json#L5).
@simongottschlag Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.
@simongottschlag I am able to reproduce the issue at my end. I tried to invoke this REST API using api-versions 2016-09-01 and 2017-04-01 and it worked. However, the api-version='2020-05-01'
is failing while we invoke the Get the management lock of a resource rest api. I am doing some more research on this and I will update this GitHub thread once I have more details.
@simongottschlag I had reached out to the Product owners in the background and we’ve run into similar issues in the past where the API version listed as being supported in the resource provider’s manifest doesn’t align to what’s in swagger (or vice versa). We are now tracking this issue in our backlog, but we can’t yet commit to when it will be fixed. In the meantime if you have any follow-up questions, feel free to ask.
Thanks @navba-MSFT!
I have a workaround and mostly created the issue to make sure others who hit the same issue doesn't have to figure it out themselves as well as making sure it's resolved in the end. 😊👍
@simongottschlag I am glad that you are unblocked for now. Thanks for reporting this issue and providing the feedback. Please let us know have any follow-up questions, feel free to ask.
@simongottschlag No ETA for the fix release just yet. We have got the workitem details too internally to keep a track on this Bug. So proceeding with archival of this thread.
@simongottschlag As an update, we’ve determined that the api-version ‘2020-05-01’ isn’t valid and was wrongly incremented. We are updating the related documentation and Swagger so that the lock docs reflect the appropriate version.
Bug Report
Hi!
I'm using armlocks (
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlocks
) versionv1.0.0
in the following way:I get the following error:
I am able to work around the issue by doing the following:
There seems to be some kind of issue with the default version being used. I've specifically seen the issue with locks on storageAccounts.