Search code examples
windows-server-2016azure-service-fabric

How to test which version of Service Fabric Runtime is installed


Anyone know how to test that the right version of service fabric is installed.

I want to add a section to my build server configuration to ensure that the service fabric cmdlets are installed and can be used by our build processes.

I want to get this exe installed https://download.microsoft.com/dow nload/1/A/A/1AA062F9-0E1D-40E9- BD4F6F12ABB71083/MicrosoftServiceFabri c.6.3.176.9494.exe on windows 2016 boxes if it is not already there.

I have had a look at

get-wmiObject -class Win32_Product

But it doesn't seem to be showing up there, is it a windows update or something?


Solution

  • There are a few ways to identify the Current installed version:

    1. Registry entry

      • Open the Registry Editor (regedit)
      • Navigate to: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Service Fabric
      • Find the key: FabricVersion
      • You can also do it via powershell: Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric\' -Name FabricVersion
    2. Binaries Version

      • Go to the runtime installation folder, something like this: C:\Program Files\Microsoft Service Fabric\bin\
      • Find the application FabricHost.exe and click properties, go to the tab details, the version will be listed there
    3. Installed applications

      • Goto Control Panel > Programs > Programs and Features
      • Search in the List for 'Fabric' and select 'Microsoft Azure Service Fabric'
      • In the details will show the app version
    4. Service Fabric Explorer

      • Open the service fabric explorer
      • Go to the list of node and select one
      • Navigate to the tab Details
      • Find the attribute Code Version
      • You can also to this approach via:
        • System > fabric:/System/ClusterManagerService > Details > Manifest Version