Skip to content

Instantly share code, notes, and snippets.

View sebader's full-sized avatar

Sebastian sebader

View GitHub Profile
@sebader
sebader / dummy_nic.bicep
Last active September 7, 2022 11:44
Azure Subnet IP address space exhaustion failure experiment
param prefix string = 'fillup'
param location string = resourceGroup().location
param vnetName string = 'my-vnet'
param subnetName string = 'my-snet'
param ipAddressesToCreate int = 600
resource subnet 'Microsoft.Network/virtualNetworks/subnets@2022-01-01' existing = {
name: '${vnetName}/${subnetName}'
}
@sebader
sebader / ping_test.tf
Created November 8, 2021 16:54
Terraform example Application Insights ping test
resource "azurerm_application_insights_web_test" "cluster_ping" {
name = "${local.prefix}-appinsights-webtest-cluster-${local.location_short}"
location = azurerm_resource_group.stamp.location
resource_group_name = var.monitoring_resource_group_name
application_insights_id = data.azurerm_application_insights.stamp.id
kind = "ping"
frequency = 300
timeout = 30
enabled = true
geo_locations = ["us-tx-sn1-azr", "us-il-ch1-azr", "emea-fr-pra-edge", "emea-se-sto-edge", "apac-hk-hkn-azr"]