![]() This article’s objective was to demonstrate how to send any kind of events to Azure Application through a real use case. | project timestamp, SubnetName, SubnetAddressPrefix, SubnetIPaddressesCount, SubnetIPaddressesLimit | extend SubnetName = customDimensions.SubnetName | extend SubnetIPaddressesLimit = customDimensions.SubnetIPaddressesLimit | extend SubnetIPaddressesCount = customDimensions.SubnetIPaddressesCount | extend SubnetAddressPrefix = customDimensions.SubnetAddressPrefix | where name = "dld_telemetry_azure_vnets_counter" We can now view the result from Azure Application Insights. ConnectionString $APPLICATIONINSIGHTS_CONNECTION_STRING | Out-Null EventName 'dld_telemetry_azure_vnets_counter' ` Write-Host "Send custom event telemetry for the subnet located in the virtual network " SubnetIPaddressesLimit = $subnetUsageList.Limit SubnetIPaddressesCount = $subnetUsageList.CurrentValue ![]() SubnetAddressPrefix = $subnet.AddressPrefix Write-Host "IPaddressesCount under AddressPrefix for resourceId " function Send- DldAzAppInsightsEventTelemetry The following code is a PowerShell function that calls this API, we will use it for our audit. ![]() The reference documentation is available here: Application Insights API for custom events and metrics. The Databricks subnet is being used regularly and we can clearly view a usage trend.Īn API to send custom event telemetry to an Azure Application Insights instanceĪzure Application Insights has an endpoint where all incoming telemetry is processed.The Azure Bastion and Firewall subnets didn’t scale, they have regular quantity of used IP addresses,.For example, in the following screenshot we can see that: With those information being tracked on a regular basis we will be able to graph our IP addresses consumption. The IP addresses limit in order to track if the subnet is reaching out his number of available IP addresses – > with this information (Get-AzVirtualNetworkUsageList) we will be able to send Azure Monitor alerts when a subnet is almost full :light_bulb.The number of IP addresses that are used.We need to track the number of IP addresses that are used on our subnet, to do that we will need to send custom event telemetry with the following information: We will track our Azure Virtual Network IP addresses consumption but note that after reading this article you will be able to track any kind of information. In this article we will demonstrate how to send custom event telemetry to an Azure Application Insights instance through PowerShell.
0 Comments
Leave a Reply. |