Notification

Icon
Error

Azure: Resource Groups virtual networks (Built-in)

Posted: Tuesday, March 5, 2019 1:13:36 PM(UTC)
Esben.D

Esben.D

Member Administration Original PosterPosts: 1,977
0
Like
The report below gives back a list of Azure resource groups virtual networks.

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

Code:
Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tsysAssetTypes.AssetTypeIcon10 As icon,
  tblAzureResourceGroup.SubscriptionId,
  tblAzureResourceGroup.Region,
  tblAzureResourceGroup.Tags,
  tblAzureNetwork.Name As NetworkName,
  tblAzureNetwork.Region As NetworkRegion,
  tblAzureNetwork.Tags As NetworkTags,
  tblAzureNetwork.IsDdosProtectionEnabled,
  tblAzureNetwork.IsVmProtectionEnabled,
  tblAzureSubnet.Name As SubnetName,
  tblAzureSubnet.Region As SubnetRegion,
  tblAzureSubnet.AddressPrefix,
  tblAssets.Lastseen,
  tblAssets.Lasttried
From tblAssets
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
  Inner Join tblState On tblState.State = tblAssetCustom.State
  Inner Join tblAzureResourceGroup On tblAzureResourceGroup.AssetId =
    tblAssets.AssetID
  Inner Join tblAzureNetwork On tblAzureNetwork.AzureResourceGroupId =
    tblAzureResourceGroup.Id
  Inner Join tblAzureSubnet On tblAzureSubnet.AzureNetworkId =
    tblAzureNetwork.Id
Where tblState.Statename = 'Active'
Order By tblAssets.AssetName

Active Discussions

Lansweeper Report on clients with no LSAgent
by  RobertB   Go to last post Go to first unread
Last post: Today at 6:55:32 PM(UTC)
Lansweeper Report for one asset - a Router - need 5 fields only in report
by  milty  
Go to last post Go to first unread
Last post: Yesterday at 4:51:48 PM(UTC)
Lansweeper Lansweeper report to match computer name
by  RC62N   Go to last post Go to first unread
Last post: 2/19/2020 5:02:27 PM(UTC)
Lansweeper Distinct user logins per PC
by  Bruce Garoutte   Go to last post Go to first unread
Last post: 2/17/2020 6:36:29 PM(UTC)
Lansweeper Software version report issue
by  RC62N  
Go to last post Go to first unread
Last post: 2/17/2020 4:07:20 PM(UTC)
Lansweeper Patch Tuesday - Exclude Win 2008 & Win7
by  doone128   Go to last post Go to first unread
Last post: 2/17/2020 1:34:36 PM(UTC)
Lansweeper Performance statistics combined into one report
by  djs1789  
Go to last post Go to first unread
Last post: 2/15/2020 1:50:32 AM(UTC)