Azure资源图浏览器-查询Azure虚拟机描述、操作系统、sku-我需要加入列(操作系统和sku在一个列中)

Azure资源图浏览器-查询Azure虚拟机描述、操作系统、sku-我需要加入列(操作系统和sku在一个列中),azure,graph,kql,Azure,Graph,Kql,我有个问题。我想知道如何将两列连成一列 我想将“OS”和“sku”列合并为一个名为“OS”的列 这是我的KQL: 这是我的结果: 我需要这样: 谁能帮帮我,非常感谢 我试过使用“联合”操作符,但无法使其工作 我使用了以下参考链接: 如果要组合两个字符串,可以使用strcat()函数: Resources | where type == "microsoft.compute/virtualmachines" | extend OS = properties.stor

我有个问题。我想知道如何将两列连成一列

我想将“OS”和“sku”列合并为一个名为“OS”的列

这是我的KQL:

这是我的结果:

我需要这样:

谁能帮帮我,非常感谢

我试过使用“联合”操作符,但无法使其工作

我使用了以下参考链接:


如果要组合两个字符串,可以使用strcat()函数:

 Resources
| where type == "microsoft.compute/virtualmachines"
| extend OS = properties.storageProfile.imageReference.offer
| extend sku = properties.storageProfile.imageReference.sku
| project OS, sku, name, nic = (properties.networkProfile.networkInterfaces)
| mvexpand nic
| project OS, sku, name, nic_id = tostring(nic.id)
| join (
    Resources 
    | where type == "microsoft.network/networkinterfaces" 
    | project nic_id = tostring(id), properties) on nic_id
    | mvexpand ipconfig = (properties.ipConfigurations)
    | extend subnet_resource_id = split(tostring(ipconfig.properties.subnet.id), '/'), ipAddress = ipconfig.properties.privateIPAddress
    | order by name desc
| project vmName=(name), OS = strcat(OS, ' ', sku), vnetName=subnet_resource_id[8], subnetName=subnet_resource_id[10], ipAddress

www@Alexander Sloutsky,非常感谢!它工作!!!上帝保佑你。
 Resources
| where type == "microsoft.compute/virtualmachines"
| extend OS = properties.storageProfile.imageReference.offer
| extend sku = properties.storageProfile.imageReference.sku
| project OS, sku, name, nic = (properties.networkProfile.networkInterfaces)
| mvexpand nic
| project OS, sku, name, nic_id = tostring(nic.id)
| join (
    Resources 
    | where type == "microsoft.network/networkinterfaces" 
    | project nic_id = tostring(id), properties) on nic_id
    | mvexpand ipconfig = (properties.ipConfigurations)
    | extend subnet_resource_id = split(tostring(ipconfig.properties.subnet.id), '/'), ipAddress = ipconfig.properties.privateIPAddress
    | order by name desc
| project vmName=(name), OS = strcat(OS, ' ', sku), vnetName=subnet_resource_id[8], subnetName=subnet_resource_id[10], ipAddress