Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1891

Modify "cloud" fact to identify Azure on Windows

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: FACT 3.6.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform OS
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      The addition of a new top-level fact, cloud, intended for discovering whether a node is running on a given public cloud provider. In this first release this currently detects whether a linux-based node is running in Azure, and provides that information in the cloud.provider fact.

      No other cloud providers are currently detected.

      {code}
      "cloud": {
          "provider": "azure"
      }
      {code}
      Show
      The addition of a new top-level fact, cloud, intended for discovering whether a node is running on a given public cloud provider. In this first release this currently detects whether a linux-based node is running in Azure, and provides that information in the cloud.provider fact. No other cloud providers are currently detected. {code} "cloud": {     "provider": "azure" } {code}
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      resource limitations

      Description

      We should update the "cloud" fact to determine whether or not a VM is running in Azure.

      Fact structure:

      "cloud": {
          "provider": "azure"
      }
      

      *How to calculate whether a machine is running in Azure*

       

      Windows

      $systemEnclosure = Get-WmiObject -class Win32_SystemEnclosure -namespace root\CIMV2
       
      $computerSystemProduct = Get-WmiObject -class Win32_ComputerSystemProduct -namespace root\CIMV2
       
      'ChassisAssetTag:       "{0}"' -f $systemEnclosure.SMBIOSAssetTag
      

      Expected Results

      "7783-7084-3265-9085-8269-3286-77"
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              scott.mcclellan Scott McClellan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support