Notification

Icon
Error

Azure: Linux Virtual Machines overview (Built-in)

Posted: Tuesday, March 5, 2019 1:14:26 PM(UTC)
Esben.D

Esben.D

Member Administration Original PosterPosts: 1,827
0
Like
The report below gives back a list of Azure virtual machine assets.

The report will only list assets when the following criteria are met:
  • You have Lansweeper 7.1 or higher.
  • There is Azure Linux virtual machine data scanned.
  • The asset state is active.

Code:
Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tsysAssetTypes.AssetTypeIcon10 As icon,
  tblAssets.IPAddress,
  tsysIPLocations.IPLocation,
  tblAzureVirtualMachine.PowerState,
  tblAzureVirtualMachine.OsType As [OS Type],
  tblAzureVirtualMachine.Region,
  tblAzureVirtualMachine.Tags,
  tblAzureResourceGroup.Name As ResourceGroupName,
  tblAzureResourceGroup.SubscriptionId,
  tblAssets.Lastseen,
  tblAssets.Lasttried
From tblAssets
  Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
  Inner Join tblAssetCustom On tblAssetCustom.AssetID = tblAssets.AssetID
  Inner Join tblState On tblState.State = tblAssetCustom.State
  Inner Join tblAzureVirtualMachine On tblAzureVirtualMachine.AssetId =
    tblAssets.AssetID
  Inner Join tblAzureResourceGroup On tblAzureResourceGroup.Id =
    tblAzureVirtualMachine.AzureResourceGroupId
  Left Join tsysIPLocations On tsysIPLocations.LocationID = tblAssets.LocationID
Where tblAzureVirtualMachine.OsType = 'Linux' And tblState.Statename = 'Active'
Order By tblAssets.AssetName,
  tblAssets.IPNumeric

Active Discussions

Lansweeper Windows 7 EOL
by  Esben.D   Go to last post Go to first unread
Last post: Today at 12:22:43 PM(UTC)
Lansweeper Patch Tuesday report, last 3 months
by  Esben.D  
Go to last post Go to first unread
Last post: Today at 10:55:07 AM(UTC)
Lansweeper Thunderbird 68 Vulnerability
by  Esben.D   Go to last post Go to first unread
Last post: Today at 8:41:29 AM(UTC)
Lansweeper Drive Encryption statuses
by  JacobH  
Go to last post Go to first unread
Last post: Yesterday at 5:41:10 PM(UTC)
Report Center Local admin group report based on domain role
by  JacobH   Go to last post Go to first unread
Last post: Yesterday at 5:24:13 PM(UTC)
Lansweeper Number of scanned IPs
by  wayneRex  
Go to last post Go to first unread
Last post: Yesterday at 10:21:01 AM(UTC)
Lansweeper Ticket Summary by Agent?
by  susan.starr   Go to last post Go to first unread
Last post: 9/17/2019 4:41:26 PM(UTC)
Report Center Virtual machines and their host
by  klaus  
Go to last post Go to first unread
Last post: 9/17/2019 8:44:57 AM(UTC)