According to Azure service definition schema LocalStorage
element can be present either in <WebRole><LocalResources>
(this location is used in samples found everywhere) or right in <开发者_StackOverflow社区;WebRole>
itself (which is not used in samples).
Why is it listed on two different levels of the XML schema? What happens if I define a local storage in each level?
Probably just backward compatibility. (The location presumably changed and we kept the old syntax as an option so existing service definition files could still work.)
精彩评论