6

Is there a simple (documented?) way to detect the actually installed version of Azure SDK in automation script? I am going to define conditional behavior depending on this version.

Currently, I just look into the C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\ folder and review its content. But I find it not reliable and not automatable.

moudrick
  • 2,148
  • 1
  • 22
  • 34

4 Answers4

3

Here's the tip that helped me: http://www.robblackwell.org.uk/2011/05/29/determining-the-windows-azure-sdk-version-at-runtime.html

Vyas Bharghava
  • 6,372
  • 9
  • 39
  • 59
2

If you used the Windows Platform Installer to install the SDK (which I believe is the standard way to do it now), you can use webpicmd.exe to determine which SDK is installed. For example:

webpicmd /List /ListOption:Installed

See more at http://msdn.microsoft.com/en-us/library/azure/gg433092.aspx

Alex Dresko
  • 5,179
  • 3
  • 37
  • 57
2

For those who are still looking for this, you can do so by using Azure powershell cmdlets.

Get-AzureDeployment -ServiceName "<service name>" -slot "<Production or Staging>" | Where-Object -Property SdkVersion | select SdkVersion
0

Navigate to

C:\Program Files\Microsoft SDKs\Azure\.NET SDK

The version will be the folder name contained within this directory.

https://i.imgur.com/mZAELvy.png

Nick Painter
  • 720
  • 10
  • 13