How do I know if my code that uses Azure Storage i

2019-07-19 18:28发布

问题:

This question already has an answer here:

  • Microsoft Azure Storage Service APIs removal on december 2015 2 answers

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.