This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_version = "~> 1.6" | |
required_providers { | |
azapi = { | |
source = "azure/azapi" | |
version = "~> 2.0" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<rendertheme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" map-background="#fffcfa" | |
version="1" xmlns="http://opensciencemap.org/rendertheme" | |
xsi:schemaLocation="http://opensciencemap.org/rendertheme https://raw.githubusercontent.com/mapsforge/vtm/master/resources/rendertheme.xsd"> | |
<!--###### | |
TRANSFORM tags ######--> | |
<tag-transform k="roof:colour" k-lib="roof:colour" v="blue" v-lib="#4e7ee0" /> | |
<tag-transform k="roof:colour" k-lib="roof:colour" v="green" v-lib="#3ed889" /> | |
<tag-transform k="roof:colour" k-lib="roof:colour" v="red" v-lib="#ad4340" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
my_string = "Hello World!" | |
my_empty_string = "" | |
my_number_as_string = "1234" | |
my_bool = true | |
my_number = 1234 | |
my_number_2 = 12.34 | |
my_list = ["Hello", "World", "!"] | |
my_set_of_strings = toset(["Hello", "World", "!"]) | |
my_nested_list = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "scenario" { | |
type = string | |
description = "Scenario to deploy. Must be one of 'simple', or 'complex'." | |
default = "simple" | |
validation { | |
condition = contains(["simple", "complex"], var.scenario) | |
error_message = "Scenario must be one of 'simple', or 'complex'." | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"description": "Deploys NSG flow logs and traffic analytics to a storageaccountid with a specified retention period. This must be assigned once for each in-scope region because the storage account and NSG must be in the same region.", | |
"displayName": "Deploys NSG flow logs and traffic analytics", | |
"mode": "all", | |
"parameters": { | |
"effect": { | |
"allowedValues": [ | |
"DeployIfNotExists", | |
"Disabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"displayName": "Disallowed Log Analytics solutions", | |
"policyType": "Custom", | |
"mode": "All", | |
"description": "This policy enables you to specify the resource types that your organization cannot deploy.", | |
"metadata": { | |
"category": "General", | |
}, | |
"parameters": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"name": { | |
"type": "String" | |
}, | |
"location": { | |
"type": "String" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export KEYVAULT=<<<CHANGEME>>> | |
# Configure ssh forwarding | |
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock | |
# need `ps -ww` to get non-truncated command for matching | |
# use square brackets to generate a regex match for the process we want but that doesn't match the grep command running it! | |
ALREADY_RUNNING=$(ps -auxww | grep -q "[n]piperelay.exe -ei -s //./pipe/openssh-ssh-agent"; echo $?) | |
if [[ $ALREADY_RUNNING != "0" ]]; then | |
if [[ -S $SSH_AUTH_SOCK ]]; then | |
# not expecting the socket to exist as the forwarding command isn't running (http://www.tldp.org/LDP/abs/html/fto.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mode": "All", | |
"policyRule": { | |
"if": { | |
"allOf": [ | |
{ | |
"equals": "Microsoft.Compute/virtualMachines", | |
"field": "type" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mode": "All", | |
"policyRule": { | |
"if": { | |
"equals": "Microsoft.Network/networkSecurityGroups", | |
"field": "type" | |
}, | |
"then": { | |
"details": { | |
"deployment": { |
NewerOlder