Skip to main content

virtual_networks_usages

Creates, updates, deletes, gets or lists a virtual_networks_usages resource.

Overview

Namevirtual_networks_usages
TypeResource
Idazure.network.virtual_networks_usages

Fields

The following fields are returned by SELECT queries:

Usage stats for vnet.

NameDatatypeDescription
idstringSubnet identifier.
nameobjectThe name containing common and localized value for usage.
currentValuenumber (double)Indicates number of IPs used from the Subnet.
limitnumber (double)Indicates the size of the subnet.
unitstringUsage units. Returns 'Count'.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, virtualNetworkName, subscriptionIdLists usage stats.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualNetworkNamestringThe name of the virtual network.

SELECT examples

Lists usage stats.

SELECT
id,
name,
currentValue,
limit,
unit
FROM azure.network.virtual_networks_usages
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND virtualNetworkName = '{{ virtualNetworkName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;