Notification

Icon
Error

Azure: Asset resources for subscriptions (Built-in)

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

Esben.D

Member Administration Original PosterPosts: 1,982
0
Like
The report below gives back a list of Azure assets per subscription.

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

Code:
Select Top 1000000 *
From (Select tblAssets.AssetID,
        tblAzureResourceGroup.SubscriptionId,
        tblAssets.AssetName,
        tsysAssetTypes.AssetTypeIcon10 As icon,
        tsysAssetTypes.AssetTypename As AssetType,
        tblAzureResourceGroup.Region,
        tblAzureResourceGroup.Tags,
        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 tblAzureResourceGroup On tblAzureResourceGroup.AssetId =
          tblAssets.AssetID
      Where tblState.Statename = 'Active'
      Union All
      Select tblAssets.AssetID,
        tblAzureResourceGroup.SubscriptionId,
        tblAssets.AssetName,
        tsysAssetTypes.AssetTypeIcon10 As icon,
        tsysAssetTypes.AssetTypename As AssetType,
        tblAzureVirtualMachine.Region,
        tblAzureVirtualMachine.Tags,
        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
      Where tblState.Statename = 'Active') SQ
Order By SQ.SubscriptionId,
  SQ.AssetType,
  SQ.AssetName

Active Discussions

Installer Deploy SolarWinds Take Control Agent
by  Corey Lambert   Go to last post Go to first unread
Last post: 8/6/2020 2:23:22 PM(UTC)
Installer Microsoft Edge (Chromium) 84.0.522.44
by  PLSJohnJohn   Go to last post Go to first unread
Last post: 7/24/2020 10:22:19 PM(UTC)
Installer Windows 10 Upgrade
by  CyberCitizen  
Go to last post Go to first unread
Last post: 7/8/2020 1:07:47 AM(UTC)
Installer Installer - Microsoft Office
by  Florian_Eigsi   Go to last post Go to first unread
Last post: 6/29/2020 3:33:20 PM(UTC)
Installer Firefox ESR 68.8.0 MSI Installer
by  PLSJohnJohn  
Go to last post Go to first unread
Last post: 5/11/2020 4:33:50 PM(UTC)
Installer Update Chrome browser with GoogleUpdate.exe ?
by  Inna Ptushkina   Go to last post Go to first unread
Last post: 5/4/2020 8:39:29 PM(UTC)
Installer Bios Update for Dell all in one
by  Florian_Eigsi  
Go to last post Go to first unread
Last post: 4/2/2020 11:36:43 AM(UTC)