Skip to content

Instantly share code, notes, and snippets.

View tombuildsstuff's full-sized avatar
🌴
On Holiday

Tom Harvey tombuildsstuff

🌴
On Holiday
View GitHub Profile
@tombuildsstuff
tombuildsstuff / replies.md
Last active January 20, 2020 13:42
Github Replies

Ask Questions Elsewhere

hi @XXX

Thanks for opening this issue.

This forum is intended to be used for feature enhancements and bugs in the Azure Provider - so that we can keep this forum focused on that we instead ask that broader questions are raised [using one of the Community Resources](https://www.terraform.io/docs/extend/community/index.html). As such I'm going to close this issue for the moment, but I believe you should be able to get an answer for this [using one of the Community Resources](https://www.terraform.io/docs/extend/community/index.html) (such as Stack Overflow).

Thanks!
#!/bin/bash
echo "hello world"
{
"name": "tom-devnetwork",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tom-devrg78/providers/Microsoft.Network/virtualNetworks/tom-devnetwork",
"etag": "W/\"588344cf-6616-4a6c-ab6a-db7eefea17b7\"",
"type": "Microsoft.Network/virtualNetworks",
"location": "westeurope",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "ea4e8735-f1e6-4b35-b0c2-361c7ff735cf",
@tombuildsstuff
tombuildsstuff / crash.md
Last active April 16, 2018 08:18
Terraform Console crash with an empty statefile
$ terraform console
> azurerm_resource_group.test.name
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1755a04]

goroutine 1 [running]:
github.com/hashicorp/terraform/config/module.(*Tree).Config(...)
	/Users/tharvey/code/src/github.com/hashicorp/terraform/config/module/tree.go:78
github.com/hashicorp/terraform/terraform.(*Interpolater).resourceVariableInfo(0xc420434440, 0xc4204058d0, 0xc42046e000, 0xc4202f4400, 0x2e5ef00, 0x396bb60, 0x0)
@tombuildsstuff
tombuildsstuff / gist:cce55e70dd2ec16bfc8bdcbaa0866170
Created October 5, 2017 10:59
Container Registry Provider Registry
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry",
"namespace": "Microsoft.ContainerRegistry",
"authorization": {
"applicationId": "00000000-0000-0000-0000-000000000000",
"roleDefinitionId": "00000000-0000-0000-0000-000000000000"
},
"resourceTypes": [
{
"resourceType": "registries",
variable "prefix" {
default = "issue199"
}
variable "configuration_json" {
default = "{\"diagnosticMonitorConfiguration\":{\"metrics\":{\"resourceId\":\"%VirtualMachineResourceId%\",\"metricAggregation\":[{\"scheduledTransferPeriod\":\"PT1H\"},{\"scheduledTransferPeriod\":\"PT1M\"}]},\"performanceCounters\":{\"performanceCounterConfiguration\":[{\"class\":\"Memory\",\"counterSpecifier\":\"PercentAvailableMemory\",\"table\":\"LinuxMemory\"},{\"class\":\"Memory\",\"counterSpecifier\":\"AvailableMemory\",\"table\":\"LinuxMemory\"},{\"class\":\"Memory\",\"counterSpecifier\":\"UsedMemory\",\"table\":\"LinuxMemory\"},{\"class\":\"Memory\",\"counterSpecifier\":\"PercentUsedSwap\",\"table\":\"LinuxMemory\"},{\"class\":\"Processor\",\"counterSpecifier\":\"PercentProcessorTime\",\"table\":\"LinuxCpu\"},{\"class\":\"Processor\",\"counterSpecifier\":\"PercentIOWaitTime\",\"table\":\"LinuxCpu\"},{\"class\":\"Processor\",\"counterSpecifier\":\"PercentIdleTime\",\"table\":\"LinuxCpu\"},{\"class\":\"PhysicalDisk\",\"cou
<WadCfg><DiagnosticMonitorConfiguration overallQuotaInMB="4096"><DiagnosticInfrastructureLogs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Warning"/><PerformanceCounters scheduledTransferPeriod="PT1M"><PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT15S" unit="Percent"><annotation displayName="CPU utilization" locale="en-us"/></PerformanceCounterConfiguration><PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Privileged Time" sampleRate="PT15S" unit="Percent"><annotation displayName="CPU privileged time" locale="en-us"/></PerformanceCounterConfiguration><PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% User Time" sampleRate="PT15S" unit="Percent"><annotation displayName="CPU user time" locale="en-us"/></PerformanceCounterConfiguration><PerformanceCounterConfiguration counterSpecifier="\Processor Information(_Total)\Processor Frequency" sampleRate="PT15S" unit="Count"><annotation displayName="CPU
@tombuildsstuff
tombuildsstuff / main.tf
Created July 28, 2017 20:45
azurerm-99
variable "prefix" {
default = "bug199"
}
resource "azurerm_resource_group" "test" {
name = "${var.prefix}-dev"
location = "West Europe"
}
resource "azurerm_virtual_network" "test" {
resource "azurerm_resource_group" "test" {
name = "bug-test21"
location = "West Europe"
}
resource "azurerm_virtual_network" "vnet" {
name = "mynetwork"
resource_group_name = "${azurerm_resource_group.test.name}"
address_space = ["10.0.0.0/8"]
location = "${azurerm_resource_group.test.location}"
resource "azurerm_resource_group" "test" {
name = "tharvey-dev7986"
location = "West Europe"
}
resource "azurerm_virtual_network" "test" {
name = "tharveydev7986nw"
address_space = ["10.0.0.0/16"]
resource_group_name = "${azurerm_resource_group.test.name}"
location = "${azurerm_resource_group.test.location}"