go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers/os/id/azcompute/testdata/metadata_linux.toml (about)

     1  [commands."uname -s"]
     2  stdout = "Linux"
     3  
     4  [commands."uname -m"]
     5  stdout = "x86_64"
     6  
     7  [commands."uname -r"]
     8  stdout = "4.9.125-linuxkit"
     9  
    10  
    11  [commands.e836b2521559a328a3f268b48fcde22c18a189f6a759923d9a610180507171e8]
    12  command = "curl --noproxy '*' -H Metadata:true http://169.254.169.254/metadata/instance?api-version=2021-02-01"
    13  stdout = """
    14  {
    15      "compute": {
    16          "azEnvironment": "AZUREPUBLICCLOUD",
    17          "extendedLocation": {
    18              "type": "edgeZone",
    19              "name": "microsoftlosangeles"
    20          },
    21          "evictionPolicy": "",
    22          "isHostCompatibilityLayerVm": "true",
    23          "licenseType":  "",
    24          "location": "westus",
    25          "name": "examplevmname",
    26          "offer": "UbuntuServer",
    27          "osProfile": {
    28              "adminUsername": "admin",
    29              "computerName": "examplevmname",
    30              "disablePasswordAuthentication": "true"
    31          },
    32          "osType": "Linux",
    33          "placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a",
    34          "plan": {
    35              "name": "planName",
    36              "product": "planProduct",
    37              "publisher": "planPublisher"
    38          },
    39          "platformFaultDomain": "36",
    40          "platformUpdateDomain": "42",
    41          "priority": "Regular",
    42          "publicKeys": [{
    43                  "keyData": "ssh-rsa 0",
    44                  "path": "/home/user/.ssh/authorized_keys0"
    45              },
    46              {
    47                  "keyData": "ssh-rsa 1",
    48                  "path": "/home/user/.ssh/authorized_keys1"
    49              }
    50          ],
    51          "publisher": "Canonical",
    52          "resourceGroupName": "macikgo-test-may-23",
    53          "resourceId": "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname",
    54          "securityProfile": {
    55              "secureBootEnabled": "true",
    56              "virtualTpmEnabled": "false"
    57          },
    58          "sku": "18.04-LTS",
    59          "storageProfile": {
    60              "dataDisks": [{
    61                  "bytesPerSecondThrottle": "979202048",
    62                  "caching": "None",
    63                  "createOption": "Empty",
    64                  "diskCapacityBytes": "274877906944",
    65                  "diskSizeGB": "1024",
    66                  "image": {
    67                    "uri": ""
    68                  },
    69                  "isSharedDisk": "false",
    70                  "isUltraDisk": "true",
    71                  "lun": "0",
    72                  "managedDisk": {
    73                    "id": "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname",
    74                    "storageAccountType": "Standard_LRS"
    75                  },
    76                  "name": "exampledatadiskname",
    77                  "opsPerSecondThrottle": "65280",
    78                  "vhd": {
    79                    "uri": ""
    80                  },
    81                  "writeAcceleratorEnabled": "false"
    82              }],
    83              "imageReference": {
    84                  "id": "",
    85                  "offer": "UbuntuServer",
    86                  "publisher": "Canonical",
    87                  "sku": "16.04.0-LTS",
    88                  "version": "latest"
    89              },
    90              "osDisk": {
    91                  "caching": "ReadWrite",
    92                  "createOption": "FromImage",
    93                  "diskSizeGB": "30",
    94                  "diffDiskSettings": {
    95                      "option": "Local"
    96                  },
    97                  "encryptionSettings": {
    98                      "enabled": "false"
    99                  },
   100                  "image": {
   101                      "uri": ""
   102                  },
   103                  "managedDisk": {
   104                      "id": "/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname",
   105                      "storageAccountType": "Standard_LRS"
   106                  },
   107                  "name": "exampleosdiskname",
   108                  "osType": "Linux",
   109                  "vhd": {
   110                      "uri": ""
   111                  },
   112                  "writeAcceleratorEnabled": "false"
   113              },
   114              "resourceDisk": {
   115                  "size": "4096"
   116              }
   117          },
   118          "subscriptionId": "xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
   119          "tags": "baz:bash;foo:bar",
   120          "version": "15.05.22",
   121          "virtualMachineScaleSet": {
   122              "id": "/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name"
   123          },
   124          "vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6",
   125          "vmScaleSetName": "crpteste9vflji9",
   126          "vmSize": "Standard_A3",
   127          "zone": ""
   128      },
   129      "network": {
   130          "interface": [{
   131              "ipv4": {
   132                 "ipAddress": [{
   133                      "privateIpAddress": "10.144.133.132",
   134                      "publicIpAddress": ""
   135                  }],
   136                  "subnet": [{
   137                      "address": "10.144.133.128",
   138                      "prefix": "26"
   139                  }]
   140              },
   141              "ipv6": {
   142                  "ipAddress": [
   143                   ]
   144              },
   145              "macAddress": "0011AAFFBB22"
   146          }]
   147      }
   148  }
   149  """
   150