How do I know if my code that uses Azure Storage is to be affected by upcoming API versions removal in December 2015? [duplicate]

北城余情 提交于 2020-01-04 05:59:10

问题


I've got an email from Microsoft saying lower versions of Storage Service are going to be removed in December 2015.

Our applications use Azure SDK 1.8 and 2.0.

How do we check for sure if we're impacted by this change?


回答1:


I'm not sure how to interpret the details in that letter (not clear if the lowest required SDK version is 2.0 or 2.1), so the best bet is to validate it yourself. Start Fiddler and run the code in question and see which x-ms-version headers are attached to the request.

For example, you might try CloudBlob.DownloadToFile(). Fiddler will show a request like this:

GET /path/to/specific/blob/here?timeout=600 HTTP/1.1

and among the request headers you might see this (if you use SDK 1.8)

x-ms-version: 2011-08-18

which means that the code targets API version 2011-08-18. Since the earliest API version that will be kept is 2012-02-12 that would mean you're affected.

I'm not sure about SDK 2.0 but you can easily check it yourself using the same technique.



来源:https://stackoverflow.com/questions/27441391/how-do-i-know-if-my-code-that-uses-azure-storage-is-to-be-affected-by-upcoming-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!